Index: trunk/MagicSoft/Mars/mpedestal/MPedPhotPix.h
===================================================================
--- trunk/MagicSoft/Mars/mpedestal/MPedPhotPix.h	(revision 5887)
+++ trunk/MagicSoft/Mars/mpedestal/MPedPhotPix.h	(revision 6031)
@@ -5,4 +5,5 @@
 #include <TObject.h>
 #endif
+#include "MMath.h"
 
 class MPedPhotPix : public TObject
@@ -24,6 +25,6 @@
 
     //void SetMean(Float_t f) { fMean = f; }
-    void SetRms(Float_t f)  { fRms  = f; }
-    void Set(Float_t m, Float_t r, UInt_t n=1) { fMean = m; fRms = r; fNumEvents=n; }
+    void SetRms(Float_t f)  {MMath::TruncatePrecision(f);  fRms  = f; }
+    void Set(Float_t m, Float_t r, UInt_t n=1) { MMath::TruncatePrecision(r); MMath::TruncatePrecision(m); fMean = m; fRms = r; fNumEvents=n; }
 
     Bool_t IsValid() const { return fRms>=0; }
