Ignore:
Timestamp:
11/28/04 18:22:38 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5488 r5493  
    180180// --------------------------------------------------------------------------
    181181//
     182// PreProcess
     183//
     184// Calls:
     185// - ReadWeightsFile(fNameWeightsFile) if the weights have not yet been set.
     186// - Creates new arrays according to the extraction range
     187//
     188Int_t MExtractTimeAndChargeDigitalFilter::PreProcess(MParList *pList)
     189{
     190
     191  if (!fWeightsSet)
     192    if (!ReadWeightsFile(fNameWeightsFile));
     193  return kFALSE;
     194
     195  Print();
     196
     197  return MExtractTimeAndCharge::PreProcess(pList);
     198}
     199
     200// --------------------------------------------------------------------------
     201//
    182202// ReInit
    183203//
     
    191211        return kFALSE;
    192212
    193     if (!fWeightsSet)
    194       if (!ReadWeightsFile(fNameWeightsFile));
    195         return kFALSE;
    196 
    197213    fHiGainSignal.Set(fHiGainLast - fHiGainFirst + 1 + fHiLoLast);
    198214    fLoGainSignal.Set(fLoGainLast - fLoGainFirst + 1);
     
    204220}
    205221
    206 Int_t MExtractTimeAndChargeDigitalFilter::PreProcess(MParList *pList)
    207 {
    208     *fLog << endl;
    209     *fLog << inf << "Using the following weights: " << endl;
    210     *fLog << "Hi-Gain:" << endl;
    211 
    212     for (Int_t i=0; i<fBinningResolutionHiGain*fWindowSizeHiGain; i++)
    213         *fLog << " " << fAmpWeightsHiGain[i] << " \t " << fTimeWeightsHiGain[i] << endl;
    214 
    215     *fLog << "Lo-Gain:" << endl;
    216 
    217     for (Int_t i=0; i<fBinningResolutionLoGain*fWindowSizeLoGain; i++)
    218         *fLog << " " << fAmpWeightsLoGain[i] << " \t " << fTimeWeightsLoGain[i] << endl;
    219 
    220     return MExtractTimeAndCharge::PreProcess(pList);
    221 }
    222222
    223223void MExtractTimeAndChargeDigitalFilter::FindTimeAndChargeHiGain(Byte_t *ptr, Byte_t *logain, Float_t &sum, Float_t &dsum,
     
    994994    *fLog << " Binning Res LoGain: " << fBinningResolutionHiGain << endl;
    995995 
     996    *fLog << endl;
     997    *fLog << inf << "Using the following weights: " << endl;
     998    *fLog << "Hi-Gain:" << endl;
     999    for (Int_t i=0; i<fBinningResolutionHiGain*fWindowSizeHiGain; i++)
     1000      *fLog << " " << fAmpWeightsHiGain[i] << " \t " << fTimeWeightsHiGain[i] << endl;
     1001   
     1002    *fLog << "Lo-Gain:" << endl;
     1003    for (Int_t i=0; i<fBinningResolutionLoGain*fWindowSizeLoGain; i++)
     1004      *fLog << " " << fAmpWeightsLoGain[i] << " \t " << fTimeWeightsLoGain[i] << endl;
     1005   
    9961006    MExtractTimeAndCharge::Print(o);
    9971007}
Note: See TracChangeset for help on using the changeset viewer.