fixed bug in msr2data for global runlist, where the pos-error instead of the value has been written to the DB file.

This commit is contained in:
suter_a 2013-11-29 09:04:49 +00:00
parent da36e561b2
commit 03cf723199
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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 << ", ";