Index: trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
===================================================================
--- trunk/MagicSoft/Mars/mgui/MCamDisplay.cc	(revision 975)
+++ trunk/MagicSoft/Mars/mgui/MCamDisplay.cc	(revision 976)
@@ -12,4 +12,5 @@
 #include "MGeomCam.h"
 
+#include "MCerPhotPix.h"
 #include "MCerPhotEvt.h"
 
@@ -85,4 +86,9 @@
     delete fLegend;
     delete fLegText;
+}
+
+inline void MCamDisplay::SetPixColor(const MCerPhotPix &pix)
+{
+    (*this)[pix.GetPixId()].SetFillColor(GetColor(pix.GetNumPhotons()));
 }
 
Index: trunk/MagicSoft/Mars/mgui/MCamDisplay.h
===================================================================
--- trunk/MagicSoft/Mars/mgui/MCamDisplay.h	(revision 975)
+++ trunk/MagicSoft/Mars/mgui/MCamDisplay.h	(revision 976)
@@ -4,13 +4,4 @@
 #ifndef MAGIC_H
 #include "MAGIC.h"
-#endif
-#ifndef MHEXAGON_H
-#include "MHexagon.h"
-#endif
-#ifndef MCERPHOTPIX_H
-#include "MCerPhotPix.h"
-#endif
-#ifndef MCERPHOTEVT_H
-#include "MCerPhotEvt.h"
 #endif
 #ifndef ROOT_TClonesArray
@@ -23,6 +14,8 @@
 class TClonesArray;
 
+class MGeomCam;
+class MHexagon;
 class MCerPhotEvt;
-class MGeomCam;
+class MCerPhotPix;
 
 class MCamDisplay : public TObject
@@ -47,8 +40,5 @@
     TText *GetText(Int_t i) { return (TText*)fLegText->At(i); }
 
-    void SetPixColor(const MCerPhotPix &pix)
-    {
-        (*this)[pix.GetPixId()].SetFillColor( GetColor(pix.GetNumPhotons()));
-    }
+    void SetPixColor(const MCerPhotPix &pix);
 
     MHexagon &operator[](int i) { return *((MHexagon*)fPixels->At(i)); }
