Ignore:
Timestamp:
05/11/07 14:35:35 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mpedestal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpedestal/MPedestalCam.cc

    r8490 r8497  
    548548    const Float_t ped = (*this)[idx].GetPedestal();
    549549    const Float_t rms = (*this)[idx].GetPedestalRms();
     550    const UInt_t  num = (*this)[idx].GetNumEvents()*fNumSlices;
    550551
    551552    switch (type)
     
    555556        break;
    556557    case 1:
    557         val = fNumSlices>0 ?
    558             rms/TMath::Sqrt((Float_t)fNumSlices*(*this)[idx].GetNumEvents())
     558        val = fNumSlices>0 ? rms/TMath::Sqrt((Float_t)num)
    559559            : (*this)[idx].GetPedestalError();
    560560        break;
     
    563563        break;
    564564    case 3:
    565         val = fNumSlices>0 ?
    566           rms/TMath::Sqrt((Float_t)fNumSlices*(*this)[idx].GetNumEvents()*2.)
    567           : (*this)[idx].GetPedestalRmsError();
     565        val = fNumSlices>0 ? rms/TMath::Sqrt((Float_t)num*2.)
     566            : (*this)[idx].GetPedestalRmsError();
    568567        break;
    569568    default:
  • trunk/MagicSoft/Mars/mpedestal/MPedestalPix.cc

    r5502 r8497  
    9999  pix.fPedestalRms      = fPedestalRms      ;
    100100  pix.fPedestalABoffset = fPedestalABoffset ;
     101  pix.fNumEvents        = fNumEvents;
    101102}
    102103
Note: See TracChangeset for help on using the changeset viewer.