Ignore:
Timestamp:
07/20/08 16:26:05 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJMerpp.cc

    r9018 r9020  
    129129    // write.AddContainer("MTimeDAQ",           "DAQ");
    130130
    131     if (fReportRun<=0)
     131    if (fReportRun==(UInt_t)-1)
    132132        return 0;
    133133
    134     const TString f1 = fReportRun>0  ? Form("MReportRun.fRunNumber==%d",  fReportRun)  : "";
    135     const TString f2 = fReportFile>0 ? Form("MReportRun.fFileNumber==%d", fReportFile) : "";
    136 
    137     const TString f = Form(fReportRun>0 && fReportFile>0 ? "%s && %s" : "%s%s",
     134    const TString f1 = fReportRun>0   ? Form("MReportRun.fRunNumber==%ud",  fReportRun)  : "";
     135    const TString f2 = fReportFile>=0 ? Form("MReportRun.fFileNumber==%ud", fReportFile) : "";
     136
     137    const TString f = Form(fReportRun>0 && fReportFile>=0 ? "%s && %s" : "%s%s",
    138138                           f1.Data(), f2.Data());
    139139
     
    355355            return 6;
    356356
    357         // FIXME: When to do what???
    358         /*
    359             if (fHeaderRun)
    360                 SetConstrainRunRep(run, file);
    361             else
    362                 SetConstrainHeader(seq.GetTelescope(), run, file);
    363         */
     357        // FIXME: check runcallisto
     358        if (fHeaderRun==0)                 // extract valid range from summary file
     359            SetConstrainRunRep(run, file); // (this is not guranteed to work :-( )
     360        else                               // check for the correct header
     361            SetConstrainHeader(seq.GetTelescope(), run, file);
    364362
    365363        SetTime(MTime(), MTime()); // Raise error if set?
  • trunk/MagicSoft/Mars/mjobs/MJMerpp.h

    r9018 r9020  
    2828
    2929    UInt_t   fReportRun;
    30     UInt_t   fReportFile;
     30     Int_t   fReportFile;
    3131
    3232    TString  fOnly;
     
    6060    void SetConstrainHeader(Short_t tel, Int_t run, Int_t file)
    6161    { fTelescope=tel; fHeaderRun=run; fHeaderFile=file; }
    62     void SetConstrainRunRep(Int_t run, Int_t file)
     62    void SetConstrainRunRep(UInt_t run, Int_t file)
    6363    { fReportRun=run; fReportFile=file; }
    6464    void SetTime(const MTime &start, const MTime &stop)
Note: See TracChangeset for help on using the changeset viewer.