Ignore:
Timestamp:
06/02/08 10:36:33 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mpedestal
Files:
2 edited

Legend:

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

    r8497 r8911  
    2020!   Author(s): Florian Goebel 06/2004 <mailto:fgoebel@mppmu.mpg.de>
    2121!
    22 !   Copyright: MAGIC Software Development, 2000-2004
     22!   Copyright: MAGIC Software Development, 2000-2008
    2323!
    2424!
     
    7373{
    7474    Clear();
     75}
     76
     77// ------------------------------------------------------------------------
     78//
     79//  return fNumEvents>0 ? fPedestalRms/TMath::Sqrt((Float_t)fNumEvents)   : 0;
     80//
     81Float_t MPedestalPix::GetPedestalError() const
     82{
     83    return fNumEvents>0 ? fPedestalRms/TMath::Sqrt((Float_t)fNumEvents)   : 0;
     84}
     85
     86// ------------------------------------------------------------------------
     87//
     88// return fNumEvents>0 ? fPedestalRms/TMath::Sqrt((Float_t)fNumEvents*2) : 0;
     89//
     90Float_t MPedestalPix::GetPedestalRmsError() const
     91{
     92    return fNumEvents>0 ? fPedestalRms/TMath::Sqrt((Float_t)fNumEvents*2) : 0;
    7593}
    7694
  • trunk/MagicSoft/Mars/mpedestal/MPedestalPix.h

    r5464 r8911  
    3535    Float_t GetPedestalRms() const { return fPedestalRms; }
    3636    Float_t GetPedestalABoffset() const { return fPedestalABoffset; }
    37     Float_t GetPedestalError()    const { return fNumEvents>0 ? fPedestalRms/TMath::Sqrt((Float_t)fNumEvents)   : 0; }
    38     Float_t GetPedestalRmsError() const { return fNumEvents>0 ? fPedestalRms/TMath::Sqrt((Float_t)fNumEvents*2) : 0; }
     37
     38    Float_t GetPedestalError() const;
     39    Float_t GetPedestalRmsError() const;
    3940
    4041    UInt_t  GetNumEvents() const { return fNumEvents; }
Note: See TracChangeset for help on using the changeset viewer.