Changeset 2324
- Timestamp:
- 09/07/03 16:26:36 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2321 r2324 1 1 -*-*- END OF LINE -*-*- 2 3 2003/09/07: Abelardo Moralejo 4 * manalysis/MCerPhotCalc.cc: 5 - removed normalization of array fWeight introduced on 30/06. For 6 now, this array is intended only to select the FADC slices which 7 we want to integrate to get the signal. The use of this feature 8 of MCerPhotCalc is explained in the example macro MagicHillas.C 9 The array fWeight must contain 0's and 1's. If we normalize 10 these values, the signal units is no longer ADC counts (but 11 "average ADC counts per slice"). As David realized, this was the 12 reason for the discrepancies in the gamma/hadron separation 13 results we were observing lately. The meaning of Size was 14 different among the different people working on the matter, and 15 hence, when we compared samples with a given Size cut we were 16 actually comparing different energy ranges. 17 2 18 3 19 2003/08/27: Thomas Bretz -
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc
r2253 r2324 117 117 118 118 // Calculate quadratic sum of weights: 119 Double_t sum = 0;120 121 119 fSumQuadWeights = 0; 122 120 for (Int_t i=0; i<fWeight.GetSize(); i++) 123 sum += fWeight[i]; 124 125 for (Int_t i=0; i<fWeight.GetSize(); i++) 126 { 127 fWeight[i] /= sum; 128 fSumQuadWeights += fWeight[i]*fWeight[i]; 129 } 121 fSumQuadWeights += fWeight[i]*fWeight[i]; 122 123 fSumQuadWeights = sqrt(fSumQuadWeights); 130 124 131 125 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.