Changeset 2324 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 09/07/03 16:26:36 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.