Changeset 6031 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 01/27/05 09:43:34 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc
r4702 r6031 68 68 fIsSaturated(kFALSE), fIsHGSaturated(kFALSE) 69 69 { 70 MMath::TruncatePrecision(fPhot); 71 MMath::TruncatePrecision(fErrPhot); 70 72 } 71 73 … … 78 80 // 79 81 // Here: 80 // Index numbers are compared 82 // Index numbers are compared --> This allows sorting by index 81 83 // 82 84 Int_t MCerPhotPix::Compare(const TObject *o) const -
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h
r5690 r6031 5 5 #include "MParContainer.h" 6 6 #endif 7 7 #include "MMath.h" 8 8 class MCerPhotPix : public MParContainer 9 9 { … … 45 45 Bool_t IsPixelCore() const { return fIsCore; } 46 46 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; } 50 50 51 51 void SetPixelSaturated() { fIsSaturated = kTRUE; }
Note:
See TracChangeset
for help on using the changeset viewer.