Changeset 1552 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 10/19/02 08:55:39 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc
r1545 r1552 188 188 189 189 // Mean pedestal: 190 constDouble_t mean = fEnableFix ? ped.GetMean()-0.5 : ped.GetMean();190 Double_t mean = fEnableFix ? ped.GetMean()-0.5 : ped.GetMean(); 191 191 192 192 Byte_t *ptr = pixel.GetHiGainSamples(); 193 193 194 194 Float_t nphot = 0.; 195 196 for(Int_t i = 0; i<fWeight.GetSize(); i++) 195 Float_t nphoterr = 0.; 196 197 // Calculate pixel signal unless it has all FADC slices empty: 198 199 if (pixel.GetSumHiGainSamples()>0) 197 200 { 198 BinSignal[i] = (Float_t) ptr[i] - mean; 199 nphot += BinSignal[i] * fWeight[i]; 201 for(Int_t i = 0; i<fWeight.GetSize(); i++) 202 { 203 BinSignal[i] = (Float_t) ptr[i] - mean; 204 nphot += BinSignal[i] * fWeight[i]; 205 } 206 nphoterr = ped.GetSigma()* fSumQuadWeights; 200 207 } 201 202 Float_t nphoterr = ped.GetSigma()* fSumQuadWeights;203 208 204 209 fCerPhotEvt->AddPixel(pixid, nphot, nphoterr);
Note:
See TracChangeset
for help on using the changeset viewer.