Changeset 5307 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 10/22/04 15:59:02 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r5298 r5307 94 94 // Sets fRuns to 0, fExtractor to NULL, fDataCheck to kFALSE 95 95 // 96 MJCalibrateSignal::MJCalibrateSignal(const char *name, const char *title) 96 MJCalibrateSignal::MJCalibrateSignal(const char *name, const char *title) 97 : fIsDataCheck(kFALSE) 97 98 { 98 99 fName = name ? name : "MJCalibrateSignal"; … … 170 171 cont.Add(&cam); 171 172 return ReadContainer(cont); 173 } 174 175 // -------------------------------------------------------------------------- 176 // 177 // MJCalibration allows to setup several option by a resource file: 178 // MJCalibration.Display: full, datacheck, normal 179 // MJCalibration.RelTimeCalibration: yes,no 180 // MJCalibration.DataCheck: yes,no 181 // MJCalibration.Debug: yes,no 182 // MJCalibration.Intensity: yes,no 183 // MJCalibration.UseBlindPixel: yes,no 184 // MJCalibration.UsePINDiode: yes,no 185 // MJCalibration.Geometry: MGeomCamMagic, MGeomCamECO1000 186 // 187 // For more details see the class description and the corresponding Getters 188 // 189 Bool_t MJCalibrateSignal::CheckEnvLocal() 190 { 191 SetDataCheck(GetEnv("DataCheck", IsDataCheck())); 192 return kTRUE; 172 193 } 173 194 … … 196 217 197 218 MDirIter iter; 198 const Int_t n0 = fSequence.SetupDatRuns(iter, fPathData );219 const Int_t n0 = fSequence.SetupDatRuns(iter, fPathData, "D", IsDataCheck()); 199 220 const Int_t n1 = fSequence.GetNumDatRuns(); 200 221 if (n0==0) … … 300 321 readreal.AddFiles(iter); 301 322 302 MReadMarsFile readmc("Events"); 303 readmc.DisableAutoScheme(); 304 readmc.AddFiles(iter); 305 306 MRawFileRead readraw(NULL); 307 readraw.AddFiles(iter); 323 MReadMarsFile read("Events"); 324 read.DisableAutoScheme(); 325 MRawFileRead rawread(NULL); 326 if (IsDataCheck()) 327 rawread.AddFiles(iter); 328 else 329 read.AddFiles(iter); 308 330 309 331 MGeomApply apply; // Only necessary to create geometry … … 413 435 414 436 // Now setup main tasklist 415 switch (filetype) 416 { 417 case 1: tlist.AddToList(&readraw); break; 418 case 2: tlist.AddToList(&readreal); break; 419 case 3: tlist.AddToList(&readmc); break; 420 } 421 422 tlist.AddToList(&tlist2, "Events"); 423 tlist.AddToList(&pcalc, "Drive"); 437 tlist.AddToList(IsDataCheck() ? (MTask*)&rawread : (MTask*)&read); 438 tlist.AddToList(&tlist2, IsDataCheck()?"All":"Events"); 439 if (!IsDataCheck()) 440 tlist.AddToList(&pcalc, "Drive"); 424 441 tlist.AddToList(&write); 425 442
Note:
See TracChangeset
for help on using the changeset viewer.