Changeset 5550 for trunk/MagicSoft/Mars/mpedestal
- Timestamp:
- 12/03/04 09:13:56 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mpedestal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc
r5507 r5550 237 237 *fLog << endl; 238 238 *fLog << inf << GetDescriptor() << " : Finalize pedestal calculations..." << flush; 239 CallPostProcess();239 Finalize(); 240 240 Reset(); 241 241 } … … 260 260 Int_t MPedCalcPedRun::Process() 261 261 { 262 263 if (fSkip && !IsPedBitSet())264 return kTRUE;265 266 /*267 *fLog << err << dec << fEvtHeader->GetTriggerID() << endl;268 for (Int_t i=16; i>= 0; i--)269 *fLog << inf << (fEvtHeader->GetTriggerID() >> i & 1);270 *fLog << endl;271 *fLog << warn << hex << fEvtHeader->GetTriggerID() << endl;272 */273 262 274 263 fUsedEvents++; … … 383 372 } 384 373 374 Int_t MPedCalcPedRun::PostProcess() 375 { 376 Finalize(); 377 return kTRUE; 378 } 379 385 380 // -------------------------------------------------------------------------- 386 381 // 387 382 // Compute signal mean and rms in the whole run and store it in MPedestalCam 388 383 // 389 Int_t MPedCalcPedRun::PostProcess()384 void MPedCalcPedRun::Finalize() 390 385 { 391 386 392 387 if (fUsedEvents == 0) 393 return kTRUE;388 return; 394 389 395 390 MRawEvtPixelIter pixel(fRawEvt); … … 428 423 fPedestalsOut->SetReadyToSave(); 429 424 430 return kTRUE; 431 } 432 433 // ----------------------------------------------------------------------- 434 // 435 // Analogue to the MTask::CallPostProcess, but without the manipulation 436 // of the bit fIsPreProcessed. Needed in order to call PostProcess multiple 437 // times in the intensity calibration. 438 // 439 Int_t MPedCalcPedRun::CallPostProcess() 440 { 441 442 *fLog << all << fName << "... " << flush; 443 if (fDisplay) 444 fDisplay->SetStatusLine2(*this); 445 446 return PostProcess(); 425 return; 447 426 } 448 427 … … 457 436 { 458 437 459 if (fRunHeader->GetRunNumber() == 38996)460 return kTRUE;461 462 438 if (fRunHeader->GetRunNumber() < gkFirstRunWithFinalBits) 463 439 return kFALSE; -
trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.h
r5487 r5550 43 43 MPedCalcPedRun(const char *name=NULL, const char *title=NULL); 44 44 45 Int_t CallPostProcess();45 void Finalize(); 46 46 47 47 void Print(Option_t *o="") const;
Note:
See TracChangeset
for help on using the changeset viewer.