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:
2013-11-29 09:04:49 +00:00
parent da36e561b2
commit 03cf723199
2 changed files with 4 additions and 1 deletions

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