Changeset 3818 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
04/23/04 09:43:13 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mreport/MReportRun.cc

    r3817 r3818  
    4747// is expected.
    4848//
    49 MReportRun::MReportRun() : MReport("RUN-REPORT", kFALSE), fRunNumber(0)
     49MReportRun::MReportRun() : MReport("RUN-REPORT", kFALSE), fRunNumber(-1)
    5050{
    5151    fName  = "MReportRun";
     
    5959Int_t MReportRun::InterpreteBody(TString &str)
    6060{
    61     const Int_t pos = str.First(' ');
    62     if (pos<0)
     61    const Int_t ws = str.First(' ');
     62    if (ws<0)
    6363    {
    6464        *fLog << warn << "WARNING - Token not found." << endl;
    6565        return kCONTINUE;
    6666    }
    67     const TString tok=str(0, pos);
     67    const TString tok=str(0, ws);
    6868
    69     str.Remove(0, pos);
     69    str.Remove(0, ws);
    7070    str = str.Strip(TString::kBoth);
    7171
     
    8282    {
    8383        if (fRunNumber!=-1)
    84             *fLog << warn << "WARNING - RUN-REPORT STOP missing." << endl;
     84            *fLog << warn << "WARNING - RUN-REPORT STOP missing for run #" << dec << fRunNumber << endl;
    8585        fRunNumber = run;
    8686    }
     
    8888    {
    8989        if (fRunNumber==-1)
    90             *fLog << warn << "WARNING - RUN-REPORT START missing." << endl;
     90            *fLog << warn << "WARNING - RUN-REPORT START missing for run #" << dec << fRunNumber << endl;
    9191        fRunNumber = -1;
    9292    }
Note: See TracChangeset for help on using the changeset viewer.