Changeset 4777 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
08/27/04 20:14:56 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4775 r4777  
    2222
    2323 2004/08/27: Hendrik Bartko
     24
    2425  * msignal/MExtractTime.cc
    2526    - check that the pixel has a low gain before calculating the time
     
    2930
    3031   * mcalib/MCalibrationChargeCalc.cc
     32   * mcalib/MCalibrationChargePix.[h,cc]
    3133     - change treatment of pixels with kSigmaNotValid
     34
     35   * mpedestal/MPedestalCam.cc
     36     - fixed a small bug in the calculation of the PedestalRms Error
     37       in GetPixelContent()
    3238
    3339   * macros/bootcampstandardanalysis.C
  • trunk/MagicSoft/Mars/mpedestal/MPedestalCam.cc

    r4609 r4777  
    384384        return kFALSE;
    385385
     386    const Float_t ped      = (*this)[idx].GetPedestal();
     387    const Float_t rms      = (*this)[idx].GetPedestalRms();
     388
    386389    switch (type)
    387390    {
    388391    case 0:
    389         val = (*this)[idx].GetPedestal();
     392        val = ped;
    390393        break;
    391394    case 1:
    392395        val = fTotalEntries > 0 ?
    393             (*this)[idx].GetPedestalRms()/TMath::Sqrt((Float_t)fTotalEntries)
    394             : (*this)[idx].GetPedestalError();
     396            rms/TMath::Sqrt((Float_t)fTotalEntries)
     397          : (*this)[idx].GetPedestalError();
    395398        break;
    396399    case 2:
    397         val = (*this)[idx].GetPedestalRms();
     400        val = rms;
    398401        break;
    399402    case 3:
    400403        val = fTotalEntries > 0 ?
    401             (*this)[idx].GetPedestalRms()/TMath::Sqrt((Float_t)fTotalEntries)/2.
    402             : (*this)[idx].GetPedestalRmsError();
     404          rms/TMath::Sqrt((Float_t)fTotalEntries*2.)
     405          : (*this)[idx].GetPedestalRmsError();
    403406        break;
    404407    default:
Note: See TracChangeset for help on using the changeset viewer.