Changeset 7130 for trunk/MagicSoft/Mars/mpedestal
- Timestamp:
- 06/03/05 18:02:36 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc ¶
r7126 r7130 242 242 // is not the first anymore 243 243 // 244 if (fRunHeader->GetRunType()==MRawRunHeader::kRTPedestal) 245 { 244 switch (fRunHeader->GetRunType()) 245 { 246 case MRawRunHeader::kRTPedestal: 247 case MRawRunHeader::kRTMonteCarlo: 246 248 fIsFirstPedRun = kFALSE; 247 249 fIsNotPedRun = kFALSE; 248 250 return kTRUE; 249 } 250 251 if (fRunHeader->GetRunType()==MRawRunHeader::kRTCalibration) 252 { 253 TString proj(fRunHeader->GetProjectName()); 254 proj.ToLower(); 255 256 // test if a continuous light run has been declared as calibration... 257 if (proj.Contains("cl")) 258 { 259 fIsFirstPedRun = kFALSE; 260 fIsNotPedRun = kFALSE; 261 return kTRUE; 262 } 263 } 264 265 251 252 case MRawRunHeader::kRTCalibration: 253 { 254 TString proj(fRunHeader->GetProjectName()); 255 proj.ToLower(); 256 257 // test if a continuous light run has been declared as calibration... 258 if (proj.Contains("cl")) 259 { 260 fIsFirstPedRun = kFALSE; 261 fIsNotPedRun = kFALSE; 262 return kTRUE; 263 } 264 } 265 } 266 266 267 267 fIsNotPedRun = kTRUE; 268 268 269 // 269 270 // If this is the first call to ReInit (before reading the first file) … … 464 465 } 465 466 466 //------------------------------------------------------------- 467 //----------------------------------------------------------------------- 467 468 // 468 469 // Return if the pedestal bit was set from the calibration trigger box. … … 473 474 Bool_t MPedCalcPedRun::IsPedBitSet() 474 475 { 476 if (fRunHeader->GetRunNumber()<gkFirstRunWithFinalBits) 477 return kFALSE; 478 475 479 if (!fTrigPattern) 476 return kFALSE;477 478 if (fRunHeader->GetRunNumber() < gkFirstRunWithFinalBits)479 480 return kFALSE; 480 481
Note:
See TracChangeset
for help on using the changeset viewer.