Index: trunk/MagicSoft/Mars/mgui/MCamEvent.cc
===================================================================
--- trunk/MagicSoft/Mars/mgui/MCamEvent.cc	(revision 3927)
+++ trunk/MagicSoft/Mars/mgui/MCamEvent.cc	(revision 4577)
@@ -40,3 +40,17 @@
 #include "MCamEvent.h"
 
+#include "MGeomCam.h"
+
 ClassImp(MCamEvent);
+
+// --------------------------------------------------------------------------
+//
+// You can overwrite this function if you want the container to be
+// initialized by MGeomApply with the geometry. If it is not overloaded
+// it calls InitSize with the corresponding pixel number. If this information
+// is enough for you it is enough to overload InitSize.
+//
+void MCamEvent::Init(const MGeomCam &geom)
+{
+    InitSize(geom.GetNumPixels());
+}
Index: trunk/MagicSoft/Mars/mgui/MCamEvent.h
===================================================================
--- trunk/MagicSoft/Mars/mgui/MCamEvent.h	(revision 3927)
+++ trunk/MagicSoft/Mars/mgui/MCamEvent.h	(revision 4577)
@@ -14,4 +14,7 @@
     virtual void   DrawPixelContent(Int_t num) const = 0;
 
+    virtual void   Init(const MGeomCam &geom);
+    virtual void   InitSize(const UInt_t i) { } // Used by MGeomApply see Init()
+
     ClassDef(MCamEvent, 0) // A camera event
 };
