Changeset 9519 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 10/26/09 15:13:28 (15 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r9481 r9519 126 126 // 127 127 MJCalibrateSignal::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) 129 129 { 130 130 fName = name ? name : "MJCalibrateSignal"; … … 263 263 if (fSequence.IsValid()) 264 264 { 265 if (fSequence.GetRuns(iter, MSequence::kRawDat)<=0)265 if (fSequence.GetRuns(iter, fIsTestMode?MSequence::kRawCal:MSequence::kRawDat)<=0) 266 266 return kFALSE; 267 267 } … … 383 383 read->AddFiles(iter); 384 384 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/", 386 386 Esc(fPathOut).Data())); 387 387 … … 460 460 fcalped.AllowTriggerLvl2(); 461 461 fcalped.AllowSumTrigger(); 462 if (fIsTestMode) 463 fcalped.AllowCalibration(); 462 464 463 465 // This will skip interleaved events with a cal- or ped-trigger … … 810 812 811 813 //MFDataPhrase filcalco("MCalibrationConstCam.IsReadyToSave>0.5", "CalibConstFilter"); 812 if (fIsInterlaced )814 if (fIsInterlaced && !fIsTestMode) 813 815 { 814 816 // The task list is executed for all events with the calibration … … 867 869 // Check if we have an extremely bright event (remove them, 868 870 // they are presumably errornous events or calibration events) 869 tlist2.AddToList(&contbright); 871 if (!fIsTestMode) 872 tlist2.AddToList(&contbright); 870 873 871 874 /* -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.h
r8518 r9519 25 25 Bool_t fIsRelTimesUpdate; // Choose to update relative times from interlaced 26 26 Bool_t fIsMovieMode; // Choose to encode a movie 27 Bool_t fIsTestMode; // Testmode to calibrate the cal run 27 28 28 29 Bool_t CheckEnvLocal(); … … 46 47 void SetRelTimesUpdate(const Bool_t b=kTRUE) { fIsRelTimesUpdate = b; } 47 48 void SetMovieMode (const Bool_t b=kTRUE) { fIsMovieMode = b; } 49 void SetTestMode (const Bool_t b=kTRUE) { fIsTestMode = b; } 48 50 49 51 void SetExtractor(const MExtractor *ext=NULL);
Note:
See TracChangeset
for help on using the changeset viewer.