Ignore:
Timestamp:
11/30/04 19:40:18 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5526 r5527  
    205205Bool_t MExtractTimeAndChargeDigitalFilter::InitArrays()
    206206{
     207
    207208  Int_t range = (Int_t)(fHiGainLast - fHiGainFirst + 1 + fHiLoLast);
     209
    208210  fHiGainSignal.Set(range);
    209211  range = (Int_t)(fLoGainLast - fLoGainFirst + 1);
     212
    210213  fLoGainSignal.Set(range);
    211214
     
    10171020void MExtractTimeAndChargeDigitalFilter::Print(Option_t *o) const
    10181021{
    1019     *fLog << all;
    1020     *fLog << GetDescriptor() << ":" << endl;
    1021 
    1022     MExtractTimeAndCharge::Print(o);
    1023     *fLog << " Time Shift HiGain:  " << fTimeShiftHiGain << endl;
    1024     *fLog << " Time Shift LoGain:  " << fTimeShiftLoGain << endl;
    1025     *fLog << " Window Size HiGain: " << fWindowSizeHiGain << endl;
    1026     *fLog << " Window Size LoGain: " << fWindowSizeLoGain << endl;
    1027     *fLog << " Binning Res HiGain: " << fBinningResolutionHiGain << endl;
    1028     *fLog << " Binning Res LoGain: " << fBinningResolutionHiGain << endl;
    1029     *fLog << " Weights File:       " << fNameWeightsFile.Data << endl;
    1030 
    1031     TString opt(o);
    1032     if (!opt.Contains("weights"))
    1033       return;
    1034 
    1035     *fLog << endl;
    1036     *fLog << inf << "Using the following weights: " << endl;
    1037     *fLog << "Hi-Gain:" << endl;
    1038     for (Int_t i=0; i<fBinningResolutionHiGain*fWindowSizeHiGain; i++)
    1039       *fLog << " " << fAmpWeightsHiGain[i] << " \t " << fTimeWeightsHiGain[i] << endl;
    1040    
    1041     *fLog << "Lo-Gain:" << endl;
    1042     for (Int_t i=0; i<fBinningResolutionLoGain*fWindowSizeLoGain; i++)
    1043       *fLog << " " << fAmpWeightsLoGain[i] << " \t " << fTimeWeightsLoGain[i] << endl;
    1044    
     1022
     1023  *fLog << all;
     1024  *fLog << GetDescriptor() << ":" << endl;
     1025
     1026  MExtractTimeAndCharge::Print(o);
     1027  *fLog << " Time Shift HiGain:  " << fTimeShiftHiGain << endl;
     1028  *fLog << " Time Shift LoGain:  " << fTimeShiftLoGain << endl;
     1029  *fLog << " Window Size HiGain: " << fWindowSizeHiGain << endl;
     1030  *fLog << " Window Size LoGain: " << fWindowSizeLoGain << endl;
     1031  *fLog << " Binning Res HiGain: " << fBinningResolutionHiGain << endl;
     1032  *fLog << " Binning Res LoGain: " << fBinningResolutionHiGain << endl;
     1033  *fLog << " Weights File:       " << fNameWeightsFile.Data() << endl;
     1034 
     1035  TString opt(o);
     1036  if (!opt.Contains("weights"))
     1037    return;
     1038 
     1039  *fLog << endl;
     1040  *fLog << inf << "Using the following weights: " << endl;
     1041  *fLog << "Hi-Gain:" << endl;
     1042  for (Int_t i=0; i<fBinningResolutionHiGain*fWindowSizeHiGain; i++)
     1043    *fLog << " " << fAmpWeightsHiGain[i] << " \t " << fTimeWeightsHiGain[i] << endl;
     1044 
     1045  *fLog << "Lo-Gain:" << endl;
     1046  for (Int_t i=0; i<fBinningResolutionLoGain*fWindowSizeLoGain; i++)
     1047    *fLog << " " << fAmpWeightsLoGain[i] << " \t " << fTimeWeightsLoGain[i] << endl;
     1048 
    10451049}
Note: See TracChangeset for help on using the changeset viewer.