Ignore:
Timestamp:
12/19/01 14:13:31 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MMcPedestalNSBAdd.cc

    r1125 r1130  
    180180    pedestals->InitSize(num);
    181181
    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();
    184183
    185184    for (int i=0; i<num; i++)
     
    188187        MGeomPix     &pixgeom = (*geometry)[i];
    189188
    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;
    192191
    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));
    194195    }
    195196
Note: See TracChangeset for help on using the changeset viewer.