Changeset 5529 for trunk/MagicSoft


Ignore:
Timestamp:
11/30/04 20:23:31 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc

    r5528 r5529  
    180180// --------------------------------------------------------------------------
    181181//
    182 // ReInit
    183 //
    184 // Calls:
    185 // - MExtractor::ReInit(pList);
    186 // - Creates new arrays according to the extraction range
    187 //
    188 Bool_t MExtractTimeAndChargeDigitalFilter::ReInit(MParList *pList)
    189 {
    190   if (!MExtractTimeAndCharge::ReInit(pList))
    191     return kFALSE;
    192 
    193   fTimeShiftHiGain = (Float_t)fHiGainFirst + 0.5 + 1./fBinningResolutionHiGain;
    194   fTimeShiftLoGain = (Float_t)fLoGainFirst + 0.5 + 1./fBinningResolutionLoGain;
    195  
    196   return kTRUE;
    197 }
    198 
    199 // --------------------------------------------------------------------------
    200 //
    201182// InitArrays
    202183//
     
    218199      return kFALSE;
    219200
     201  fTimeShiftHiGain = (Float_t)fHiGainFirst + 0.5 + 1./fBinningResolutionHiGain;
     202  fTimeShiftLoGain = (Float_t)fLoGainFirst + 0.5 + 1./fBinningResolutionLoGain;
     203 
    220204  return kTRUE;
    221205}
     
    384368    const Int_t   idx = fBinningResolutionHiGain*sample + fBinningResolutionHalfHiGain + t_iter;
    385369    const Int_t   ids = max_p + sample;
    386    
    387370    const Float_t pex = ids < 0 ? 0. : ( ids >= range ? 0. : fHiGainSignal[ids]);
    388371    sum              += fAmpWeightsHiGain [idx]*pex;
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h

    r5528 r5529  
    5252  UInt_t  fRandomIter;                          // Counter used to randomize weights for noise calculation
    5353
    54   Bool_t ReInit(MParList *pList);
     54  Bool_t  InitArrays();
    5555
    56   Bool_t InitArrays();
    57 
    58   Int_t  ReadEnv(const TEnv &env, TString prefix, Bool_t print);
     56  Int_t   ReadEnv(const TEnv &env, TString prefix, Bool_t print);
    5957
    6058public:
Note: See TracChangeset for help on using the changeset viewer.