Ignore:
Timestamp:
08/11/04 10:35:11 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/merpp.cc

    r4452 r4575  
    88#include "MSqlInsertRun.h"
    99#include "MRawFileWrite.h"
    10 
    11 #include "MReportFileRead.h"
     10#include "MReportFileReadCC.h"
    1211#include "MWriteRootFile.h"
    1312
     
    7776    gLog << "     --start=yyyy-mm-dd/hh:mm:ss.mmm  Start event time for merpping report files" << endl;
    7877    gLog << "     --stop=yyyy-mm-dd/hh:mm:ss.mmm   Stop  event time for merpping report files" << endl;
    79     gLog << "     --run=#                          Only data corresponding to this run number" << endl;
     78    gLog << "     --run=#                          Only data corresponding to this run number (from RUN-REPORT)" << endl;
     79    gLog << "     --runfile=#                      Check that CC file corresponds to this run (from .rep header)" << endl;
     80    gLog << "     --sumfile                        Check that CC file is a all night summary (from .rep header)" << endl;
     81    gLog << "     --allfiles                       Don't check file type for CC files <default>" << endl;
    8082    gLog << "     --debug[=n]                      Enable root debugging (Default: gDebug=1)" << endl;
    8183    gLog << "     -?, -h, --help                   This help" << endl << endl;
     
    133135    const Int_t   kRunNumber   = arg.HasOption("--run=") ? arg.GetIntAndRemove("--run=") : -1;
    134136    const TString kSqlDataBase(arg.GetStringAndRemove("--sql="));
     137
     138    Int_t kRunFile = arg.HasOption("--runfile=") ? arg.GetIntAndRemove("--runfile=") : -1;
     139    if (arg.HasOnlyAndRemove("--sumfile"))
     140        kRunFile = 0;
    135141
    136142    if (kTimeStart)
     
    284290        write = w;
    285291
    286         MReportFileRead *r = new MReportFileRead(kNamein);
     292        MReportFileReadCC *r = new MReportFileReadCC(kNamein);
    287293        r->SetTimeStart(kTimeStart);
    288294        r->SetTimeStop(kTimeStop);
     
    294300        else
    295301        {
     302            r->SetRunNumber(kRunFile);
    296303            r->AddToList("MReportCC");
    297304            //r->AddToList("MReportDAQ");
Note: See TracChangeset for help on using the changeset viewer.