Index: trunk/MagicSoft/Mars/manalysis/MEventRate.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MEventRate.cc	(revision 8709)
+++ trunk/MagicSoft/Mars/manalysis/MEventRate.cc	(revision 8907)
@@ -46,4 +46,6 @@
 #include "MEventRate.h"
 
+#include <TMath.h>
+
 #include "MLog.h"
 #include "MLogManip.h"
@@ -62,2 +64,7 @@
     fTitle = title ? title : "Storage container for the event rate [Hz]";
 }
+
+Double_t MEventRate::GetError() const
+{
+    return TMath::Sqrt(1./fNumEvents);
+}
Index: trunk/MagicSoft/Mars/manalysis/MEventRate.h
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MEventRate.h	(revision 8709)
+++ trunk/MagicSoft/Mars/manalysis/MEventRate.h	(revision 8907)
@@ -17,5 +17,5 @@
     void SetRate(Double_t r, UInt_t n) { fRate = r; fNumEvents = n; }
     Double_t GetRate() const { return fRate; }
-    Double_t GetError() const { return TMath::Sqrt(1./fNumEvents); }
+    Double_t GetError() const;// { return TMath::Sqrt(1./fNumEvents); }
     UInt_t GetNumEvents() const { return fNumEvents; }
 
Index: trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc	(revision 8709)
+++ trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc	(revision 8907)
@@ -47,4 +47,6 @@
 #include <fstream>
 
+#include <math.h>
+
 #include <TVector.h>
 
