Changeset 5334 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 11/02/04 12:40:38 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r5307 r5334 167 167 } 168 168 169 fNumHiGainSamples = (Float_t)fWindowSizeHiGain; 170 fNumLoGainSamples = (Float_t)fWindowSizeLoGain; 169 // 170 // We need here the effective number of samples which is about 2.5 in the case of a window 171 // size of 6. The exact numbers have to be found still. 172 // 173 fNumHiGainSamples = (Float_t)fWindowSizeHiGain/2.5; 174 fNumLoGainSamples = (Float_t)fWindowSizeLoGain/2.5; 171 175 fSqrtHiGainSamples = TMath::Sqrt(fNumHiGainSamples); 172 176 fSqrtLoGainSamples = TMath::Sqrt(fNumLoGainSamples); … … 803 807 // Low Gain histograms 804 808 // 809 TH1F *derivativelo = NULL; 805 810 if (shapelo) 806 811 { … … 808 813 binwidth = shapelo->GetBinWidth(1); 809 814 810 TH1F *derivativelo = new TH1F(Form("%s%s",shapelo->GetName(),"_der"),811 812 813 814 815 derivativelo = new TH1F(Form("%s%s",shapelo->GetName(),"_der"), 816 Form("%s%s",shapelo->GetTitle()," derivative"), 817 nbinslo, 818 shapelo->GetBinLowEdge(1), 819 shapelo->GetBinLowEdge(nbinslo)+binwidth); 815 820 816 821 // … … 923 928 } 924 929 925 926 930 ofstream fn(filename.Data()); 927 931 … … 937 941 for (Int_t i=0; i<nsizehi; i++) 938 942 fn << "\t" << fAmpWeightsLoGain[i] << "\t" << fTimeWeightsLoGain[i] << endl; 943 944 delete derivativehi; 945 if (derivativelo) 946 delete derivativelo; 939 947 940 948 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.