Index: /trunk/MagicSoft/Mars/mgeom/MGeomPix.cc
===================================================================
--- /trunk/MagicSoft/Mars/mgeom/MGeomPix.cc	(revision 8908)
+++ /trunk/MagicSoft/Mars/mgeom/MGeomPix.cc	(revision 8909)
@@ -54,5 +54,5 @@
 #include "MGeomPix.h"
 
-#include <math.h>
+#include <TMath.h>
 
 #include "MLog.h"
Index: /trunk/MagicSoft/Mars/mgeom/MGeomPix.h
===================================================================
--- /trunk/MagicSoft/Mars/mgeom/MGeomPix.h	(revision 8908)
+++ /trunk/MagicSoft/Mars/mgeom/MGeomPix.h	(revision 8909)
@@ -73,7 +73,7 @@
     UInt_t  GetSector() const { return fSector; }
 
-    Float_t GetDist() const  { return TMath::Hypot(fX, fY); }
-    Float_t GetDist(const MGeomPix &pix) const  { return TMath::Hypot(fX-pix.fX, fY-pix.fY); }
-    Float_t GetAngle(const MGeomPix &pix) const { return TMath::ATan2(fX - pix.GetX(), fY - pix.GetY()); }
+    Float_t GetDist() const;
+    Float_t GetDist(const MGeomPix &pix) const;
+    Float_t GetAngle(const MGeomPix &pix) const;
 
     Float_t GetA() const    { return fA; /*fD*fD*gsTan60/2;*/ }
