Ignore:
Timestamp:
01/27/05 09:43:34 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpedestal/MPedPhotPix.h

    r4384 r6031  
    55#include <TObject.h>
    66#endif
     7#include "MMath.h"
    78
    89class MPedPhotPix : public TObject
     
    2425
    2526    //void SetMean(Float_t f) { fMean = f; }
    26     void SetRms(Float_t f)  { fRms  = f; }
    27     void Set(Float_t m, Float_t r, UInt_t n=1) { fMean = m; fRms = r; fNumEvents=n; }
     27    void SetRms(Float_t f)  {MMath::TruncatePrecision(f); fRms  = f; }
     28    void Set(Float_t m, Float_t r, UInt_t n=1) { MMath::TruncatePrecision(r); MMath::TruncatePrecision(m); fMean = m; fRms = r; fNumEvents=n; }
    2829
    2930    Bool_t IsValid() const { return fRms>=0; }
Note: See TracChangeset for help on using the changeset viewer.