Ignore:
Timestamp:
11/12/08 16:16:11 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mpedestal
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc

    r8795 r9157  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.38 2007-12-19 18:53:02 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.39 2008-11-12 16:04:18 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    491491        fExtractor->SetNoiseCalculation(fRandomCalculation);
    492492
    493     const Int_t rc = Calc();
     493    Calc();
    494494
    495495    if (fExtractor)
    496496        fExtractor->SetNoiseCalculation(kFALSE);
    497497
    498     return rc;
     498    fPedestalsOut->SetNumEvents(fCounter);
     499
     500    return kTRUE;
    499501}
    500502
     
    624626Int_t MExtractPedestal::PostProcess()
    625627{
    626     fPedestalsOut->SetNumEvents(fCounter);
    627 
    628628    return fExtractor ? fExtractor->CallPostProcess() : kTRUE;
    629629}
  • trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.h

    r8788 r9157  
    100100
    101101  // Interface to be overwritten by a new class
    102   virtual void  ResetArrays();
    103   virtual Int_t Calc() = 0;
     102  virtual void ResetArrays();
     103  virtual void Calc() = 0;
    104104
    105105  // Helper functions
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc

    r8788 r9157  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MPedCalcFromLoGain.cc,v 1.39 2007-12-14 09:56:03 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MPedCalcFromLoGain.cc,v 1.40 2008-11-12 16:04:18 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    199199// calculate the overall mean and rms in the PostProcess()
    200200//
    201 Int_t MPedCalcFromLoGain::Calc()
     201void MPedCalcFromLoGain::Calc()
    202202{
    203203    const Int_t nhi = fRunHeader->GetNumSamplesHiGain();
     
    242242    if (fPedestalUpdate)
    243243        fPedestalsOut->SetReadyToSave();
    244 
    245   return kTRUE;
    246244}
    247245
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.h

    r8490 r9157  
    3434
    3535    // MExtractPedestal
    36     Int_t  Calc();
     36    void   Calc();
    3737
    3838public:
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc

    r8999 r9157  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MPedCalcPedRun.cc,v 1.53 2008-07-14 19:59:12 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MPedCalcPedRun.cc,v 1.54 2008-11-12 16:04:18 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    256256// calculate the overall mean and rms in the PostProcess()
    257257//
    258 Int_t MPedCalcPedRun::Calc()
     258void MPedCalcPedRun::Calc()
    259259{
    260260    if (fIsNotPedRun && !IsPedBitSet())
    261         return kTRUE;
     261        return;
    262262
    263263    MRawEvtPixelIter pixel(fRawEvt);
     
    268268
    269269    fPedestalsOut->SetReadyToSave();
    270 
    271     return kTRUE;
    272270}
    273271
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.h

    r8490 r9157  
    2525    Bool_t ReInit(MParList *pList);
    2626    Int_t  PreProcess(MParList *pList);
    27     Int_t  Calc();
     27    void   Calc();
    2828    Int_t  PostProcess();
    2929
Note: See TracChangeset for help on using the changeset viewer.