Index: trunk/MagicSoft/Simulation/Detector/include-MC/MCCphoton.hxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/include-MC/MCCphoton.hxx	(revision 295)
+++ trunk/MagicSoft/Simulation/Detector/include-MC/MCCphoton.hxx	(revision 302)
@@ -42,12 +42,12 @@
 // const char variables to use in MCCphoton::isA() function
 
-const char FLAG_START_OF_RUN[]   = "START-RUN-START-RUN-START-RUN-START-RUN-";
-const char FLAG_START_OF_EVENT[] = "START-EVENT-START-EVENT-START-EVENT-STAR";
-const char FLAG_END_OF_EVENT[] =   "END-EVENT-END-EVENT-END-EVENT-END-EVENT-";
-const char FLAG_END_OF_RUN[] =     "END-RUN-END-RUN-END-RUN-END-RUN-END-RUN-";
-const char FLAG_END_OF_FILE[] =    "END-FILE-END-FILE-END-FILE-END-FILE-END-";
-const char FLAG_END_OF_STDIN[] =   "END-STDIN-END-STDIN-END-STDIN-END-STDIN-";
+const char FLAG_START_OF_RUN[]   = "\nSTART---RUN\n";
+const char FLAG_START_OF_EVENT[] = "\nSTART-EVENT\n";
+const char FLAG_END_OF_EVENT[] =   "\nEND---EVENT\n";
+const char FLAG_END_OF_RUN[] =     "\nEND-----RUN\n";
+const char FLAG_END_OF_FILE[] =    "\nEND----FILE\n";
+const char FLAG_END_OF_STDIN[] =   "\nEND---STDIN\n";
 
-#define SIZE_OF_FLAGS  40
+#define SIZE_OF_FLAGS  13
 
 // @endcode
@@ -79,5 +79,4 @@
   // reads photon from binary input stream
   Int_t read ( ifstream &is ) {
-    int n;
     is.read (  (char *)this, mysize() );
     return is.gcount();
Index: trunk/MagicSoft/Simulation/Detector/include-MC/MCEventHeader.hxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/include-MC/MCEventHeader.hxx	(revision 295)
+++ trunk/MagicSoft/Simulation/Detector/include-MC/MCEventHeader.hxx	(revision 302)
@@ -144,4 +144,14 @@
                               ((CorePos[1][ncore])*(CorePos[1][ncore])) ) );
   }
+  
+  // get the core position in X 
+  inline Float_t get_coreX ( Int_t ncore = 0 ) {
+    return ( (Float_t) CorePos[0][ncore] );
+  }
+
+  // get the core position in Y 
+  inline Float_t get_coreY ( Int_t ncore = 0 ) {
+    return ( (Float_t) CorePos[1][ncore] );
+  }
 
   // transport from COREventHeader to MCEventHeader
