Changeset 5550 for trunk


Ignore:
Timestamp:
12/03/04 09:13:56 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5548 r5550  
    2020
    2121                                                 -*-*- END OF LINE -*-*-
     22
     23 2004/12/02: Markus Gaug
     24 
     25   * mpedestal/MPedCalcPedRun.[h,cc]
     26     - replaced CallPostProcess by public member function Finalize()
     27
    2228
    2329 2004/12/02: Thomas Bretz
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc

    r5507 r5550  
    237237          *fLog << endl;
    238238          *fLog << inf << GetDescriptor() << " : Finalize pedestal calculations..." << flush;
    239           CallPostProcess();
     239          Finalize();
    240240          Reset();
    241241        }
     
    260260Int_t MPedCalcPedRun::Process()
    261261{
    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   */
    273262
    274263  fUsedEvents++;
     
    383372}
    384373
     374Int_t MPedCalcPedRun::PostProcess()
     375{
     376  Finalize();
     377  return kTRUE;
     378}
     379
    385380// --------------------------------------------------------------------------
    386381//
    387382// Compute signal mean and rms in the whole run and store it in MPedestalCam
    388383//
    389 Int_t MPedCalcPedRun::PostProcess()
     384void MPedCalcPedRun::Finalize()
    390385{
    391386
    392387  if (fUsedEvents == 0)
    393     return kTRUE;
     388    return;
    394389
    395390  MRawEvtPixelIter pixel(fRawEvt);
     
    428423  fPedestalsOut->SetReadyToSave();
    429424
    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;
    447426}
    448427
     
    457436{
    458437
    459   if (fRunHeader->GetRunNumber() == 38996)
    460     return kTRUE;
    461  
    462438  if (fRunHeader->GetRunNumber() < gkFirstRunWithFinalBits)
    463439    return kFALSE;
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.h

    r5487 r5550  
    4343  MPedCalcPedRun(const char *name=NULL, const char *title=NULL);
    4444 
    45   Int_t CallPostProcess(); 
     45  void Finalize(); 
    4646
    4747  void Print(Option_t *o="") const;
Note: See TracChangeset for help on using the changeset viewer.