Changeset 5334
- Timestamp:
- 11/02/04 12:40:38 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5332 r5334 20 20 21 21 -*-*- END OF LINE -*-*- 22 23 2004/11/01: Markus Gaug 24 25 * msignal/MExtractTimeAndChageDigitalFilter.cc 26 - delete the pointer to derivativelo and derivativehi at the end of 27 the function 28 - reduce the effective number of high-gain samples (used for the 29 calculation of the pedestal RMS in the calibration) from 6. to 30 2.5 31 22 32 23 33 2004/11/01: Markus Meyer and Keiichi Mase -
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.