Ignore:
Timestamp:
01/27/05 09:43:34 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
2 edited

Legend:

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

    r4702 r6031  
    6868    fIsSaturated(kFALSE), fIsHGSaturated(kFALSE)
    6969{
     70    MMath::TruncatePrecision(fPhot);
     71    MMath::TruncatePrecision(fErrPhot);
    7072}
    7173
     
    7880//
    7981// Here:
    80 //  Index numbers are compared
     82//  Index numbers are compared --> This allows sorting by index
    8183//
    8284Int_t MCerPhotPix::Compare(const TObject *o) const
  • trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h

    r5690 r6031  
    55#include "MParContainer.h"
    66#endif
    7 
     7#include "MMath.h"
    88class MCerPhotPix : public MParContainer
    99{
     
    4545    Bool_t  IsPixelCore() const         { return fIsCore;  }
    4646
    47     void    SetNumPhotons(Float_t f)    { fPhot    = f; }
    48     void    SetErrorPhot(Float_t f)     { fErrPhot = f; }
    49     void    Set(Float_t np, Float_t ep) { fPhot = np; fErrPhot = ep; }
     47    void    SetNumPhotons(Float_t f)    { MMath::TruncatePrecision(f); fPhot     = f; }
     48    void    SetErrorPhot(Float_t f)     { MMath::TruncatePrecision(f); fErrPhot = f; }
     49    void    Set(Float_t np, Float_t ep) { MMath::TruncatePrecision(np); MMath::TruncatePrecision(ep);  fPhot = np; fErrPhot = ep; }
    5050
    5151    void    SetPixelSaturated()         { fIsSaturated = kTRUE; }
Note: See TracChangeset for help on using the changeset viewer.