From 03cf7231997b618d279a0496153260ef17c3d579 Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Fri, 29 Nov 2013 09:04:49 +0000 Subject: [PATCH] fixed bug in msr2data for global runlist, where the pos-error instead of the value has been written to the DB file. --- ChangeLog | 3 +++ src/classes/PMsr2Data.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 79295dd8..9e1b8d45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -38,6 +38,9 @@ NEW 2012-05-12 added dump_header. This is a little program which dumps the NEW 2012-04-24 added a first version for negative muon fitting. At the same time substaintial bug fixing has been carried out (mainly the logx/logy handling). +FIXED 2013-11-29 in the global mode of msr2data for run lists, instread of the + value of the global parameter, the positive error was written into + the DB file. This is fixed now. FIXED 2013-11-20 suppress automatic N0 esitmate for chisq-only calculation MUSR-270. FIXED 2013-01-21 fixed any2many bug concerning input file lists as described diff --git a/src/classes/PMsr2Data.cpp b/src/classes/PMsr2Data.cpp index 44335e7f..81d88432 100644 --- a/src/classes/PMsr2Data.cpp +++ b/src/classes/PMsr2Data.cpp @@ -2157,7 +2157,7 @@ int PMsr2Data::WriteOutput(const string &outfile, bool db, unsigned int withHead if (loc == tempName.length() - fRunNumberDigits) { outFile << tempName.substr(0, loc) << " = "; if ((*msrParamList)[idx].fPosErrorPresent) { - WriteValue(outFile, (*msrParamList)[idx].fPosError, (*msrParamList)[idx].fPosError, outFile.width(), db); + WriteValue(outFile, (*msrParamList)[idx].fValue, (*msrParamList)[idx].fPosError, outFile.width(), db); outFile << ", "; } else { outFile << (*msrParamList)[idx].fValue << ", ";