From b99a75d156332ed3c3161079c7b9acb3393ded71 Mon Sep 17 00:00:00 2001 From: "Bastian M. Wojek" Date: Mon, 28 Jun 2010 08:11:01 +0000 Subject: [PATCH] Allow case insensitive 'run' as first entry in a runlist-file as input to msr2data --- src/classes/PMsr2Data.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classes/PMsr2Data.cpp b/src/classes/PMsr2Data.cpp index 3ad0ae70..fa540a58 100644 --- a/src/classes/PMsr2Data.cpp +++ b/src/classes/PMsr2Data.cpp @@ -255,7 +255,7 @@ int PMsr2Data::SetRunNumbers(const string &runListFile) strLine.clear(); strLine.str(splitVec[0]); strLine >> indvar; // "RUN" - if (indvar.compare("RUN")) { + if (to_lower_copy(indvar).compare("run")) { cerr << endl << ">> msr2data: **ERROR** The format of the runlist file " << runListFile << " is not correct! Please check!"; cerr << endl; } @@ -1522,7 +1522,7 @@ int PMsr2Data::WriteOutput(const string &outfile, bool db, bool withHeader, bool trim(line); if (line.empty()) continue; - else if (line.at(0) == '#' || !line.substr(0,3).compare("RUN")) + else if (line.at(0) == '#' || !to_lower_copy(line.substr(0,3)).compare("run")) continue; else { split( splitVec, line, is_any_of("#") ); // split the string if any comments appear on the line