Changeset 1130 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 12/19/01 14:13:31 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MMcPedestalNSBAdd.cc
r1125 r1130 180 180 pedestals->InitSize(num); 181 181 182 MGeomPix &pixgeom0 = (*geometry)[0]; 183 const Float_t size0 = pixgeom0.GetR()*pixgeom0.GetR(); 182 const Float_t size0 = (*geometry)[0].GetR()*(*geometry)[0].GetR(); 184 183 185 184 for (int i=0; i<num; i++) … … 188 187 MGeomPix &pixgeom = (*geometry)[i]; 189 188 190 const Float_t pedrms = pix.GetSigma();191 const Float_t size= pixgeom.GetR()*pixgeom.GetR()/size0;189 const Float_t pedrms = pix.GetSigma(); 190 const Float_t size = pixgeom.GetR()*pixgeom.GetR()/size0; 192 191 193 pix.SetSigma(sqrt(pedrms*pedrms+fDnsbPixel*fadc->GetAmplitud()*fadc->GetAmplitud()*size)); 192 const Float_t ampl = fadc->GetAmplitud(); 193 194 pix.SetSigma(sqrt(pedrms*pedrms + fDnsbPixel*ampl*ampl*size)); 194 195 } 195 196
Note:
See TracChangeset
for help on using the changeset viewer.