Ignore:
Timestamp:
10/26/09 15:13:28 (15 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
2 edited

Legend:

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

    r9481 r9519  
    126126//
    127127MJCalibrateSignal::MJCalibrateSignal(const char *name, const char *title)
    128     : fExtractor(0), fIsInterlaced(kTRUE), fIsRelTimesUpdate(kTRUE), fIsMovieMode(kFALSE)
     128    : fExtractor(0), fIsInterlaced(kTRUE), fIsRelTimesUpdate(kTRUE), fIsMovieMode(kFALSE), fIsTestMode(kFALSE)
    129129{
    130130    fName  = name  ? name  : "MJCalibrateSignal";
     
    263263    if (fSequence.IsValid())
    264264    {
    265         if (fSequence.GetRuns(iter, MSequence::kRawDat)<=0)
     265        if (fSequence.GetRuns(iter, fIsTestMode?MSequence::kRawCal:MSequence::kRawDat)<=0)
    266266            return kFALSE;
    267267    }
     
    383383    read->AddFiles(iter);
    384384
    385     const TString fname(Form("s/(([0-9]+_)?(M[12]_)?[0-9.]+)_D_(.*[.])(raw|raw[.]gz|root)$/%s\\/$1_Y_$4root/",
     385    const TString fname(Form("s/(([0-9]+_)?(M[12]_)?[0-9.]+)_[CD]_(.*[.])(raw|raw[.]gz|root)$/%s\\/$1_Y_$4root/",
    386386                             Esc(fPathOut).Data()));
    387387
     
    460460    fcalped.AllowTriggerLvl2();
    461461    fcalped.AllowSumTrigger();
     462    if (fIsTestMode)
     463        fcalped.AllowCalibration();
    462464
    463465    // This will skip interleaved events with a cal- or ped-trigger
     
    810812
    811813    //MFDataPhrase filcalco("MCalibrationConstCam.IsReadyToSave>0.5", "CalibConstFilter");
    812     if (fIsInterlaced)
     814    if (fIsInterlaced && !fIsTestMode)
    813815    {
    814816        // The task list is executed for all events with the calibration
     
    867869    // Check if we have an extremely bright event (remove them,
    868870    // they are presumably errornous events or calibration events)
    869     tlist2.AddToList(&contbright);
     871    if (!fIsTestMode)
     872        tlist2.AddToList(&contbright);
    870873
    871874    /*
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.h

    r8518 r9519  
    2525    Bool_t fIsRelTimesUpdate;           // Choose to update relative times from interlaced
    2626    Bool_t fIsMovieMode;                // Choose to encode a movie
     27    Bool_t fIsTestMode;                 // Testmode to calibrate the cal run
    2728
    2829    Bool_t CheckEnvLocal();
     
    4647    void SetRelTimesUpdate(const Bool_t b=kTRUE) { fIsRelTimesUpdate = b; }
    4748    void SetMovieMode     (const Bool_t b=kTRUE) { fIsMovieMode      = b; }
     49    void SetTestMode      (const Bool_t b=kTRUE) { fIsTestMode       = b; }
    4850
    4951    void SetExtractor(const MExtractor *ext=NULL);
Note: See TracChangeset for help on using the changeset viewer.