Index: trunk/MagicSoft/Simulation/Corsika/GuiSimone/MainFrameSimone.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Corsika/GuiSimone/MainFrameSimone.cxx	(revision 425)
+++ trunk/MagicSoft/Simulation/Corsika/GuiSimone/MainFrameSimone.cxx	(revision 426)
@@ -4,4 +4,5 @@
 #define  START_DIRECTORY  "/dat1"
 #define S_ISDIR(m) (((m)&(0170000)) == (0040000))  
+#define PI 3.1415926
 
 #include <TApplication.h>
@@ -261,6 +262,42 @@
 
   
-  fCanvasEvt =  new TRootEmbeddedCanvas("fCanvasEvt", fTabF3b, 300, 300 ) ; 
-  fTabF3b->AddFrame(fCanvasEvt, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsExpandY | kLHintsExpandX, 5, 5, 5, 5 ) ) ; 
+  fTabF3bI = new TGCompositeFrame (fTabF3b, 300, 300, kVerticalFrame) ; 
+  fTabF3b->AddFrame(fTabF3bI, 
+		   new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsExpandY, 5, 5, 5, 5 ) ) ; 
+  
+  fTabF3bII = new TGCompositeFrame (fTabF3b, 300, 300, kVerticalFrame) ; 
+  fTabF3b->AddFrame(fTabF3bII, 
+		   new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsExpandX | kLHintsExpandY, 5, 5, 5, 5 ) ) ; 
+
+  fLabelId = new TGLabel(fTabF3bI, new TGString("PartId: ------------") );       
+  fTabF3bI->AddFrame( fLabelId, new TGLayoutHints(kLHintsTop | kLHintsLeft , 5, 5, 5, 5 ) ) ;   
+
+  fLabelEner = new TGLabel(fTabF3bI, new TGString("Energy: ------------") );       
+  fTabF3bI->AddFrame( fLabelEner, new TGLayoutHints(kLHintsTop | kLHintsLeft , 5, 5, 5, 5 ) ) ;   
+  
+  fLabelNbPhot = new TGLabel(fTabF3bI, new TGString("NbPhot: ------------") );       
+  fTabF3bI->AddFrame( fLabelNbPhot, new TGLayoutHints(kLHintsTop | kLHintsLeft , 5, 5, 5, 5 ) ) ;   
+  
+  fLabelCoreX = new TGLabel(fTabF3bI, new TGString("CoreX: ------------") );       
+  fTabF3bI->AddFrame( fLabelCoreX, new TGLayoutHints(kLHintsTop | kLHintsLeft , 5, 5, 5, 5 ) ) ;   
+
+  fLabelCoreY = new TGLabel(fTabF3bI, new TGString("CoreY: ------------") );       
+  fTabF3bI->AddFrame( fLabelCoreY, new TGLayoutHints(kLHintsTop | kLHintsLeft , 5, 5, 5, 5 ) ) ;   
+
+  fLabelTheta = new TGLabel(fTabF3bI, new TGString("Theta: ------------") );       
+  fTabF3bI->AddFrame( fLabelTheta, new TGLayoutHints(kLHintsTop | kLHintsLeft , 5, 5, 5, 5 ) ) ;   
+
+  fLabelPhi = new TGLabel(fTabF3bI, new TGString("Phi: ------------") );       
+  fTabF3bI->AddFrame( fLabelPhi, new TGLayoutHints(kLHintsTop | kLHintsLeft , 5, 5, 5, 5 ) ) ;   
+
+  fLabelDireX = new TGLabel(fTabF3bI, new TGString("DireX: ------------") );       
+  fTabF3bI->AddFrame( fLabelDireX, new TGLayoutHints(kLHintsTop | kLHintsLeft , 5, 5, 5, 5 ) ) ;   
+
+  fLabelDireY = new TGLabel(fTabF3bI, new TGString("DireY: ------------") );       
+  fTabF3bI->AddFrame( fLabelDireY, new TGLayoutHints(kLHintsTop | kLHintsLeft , 5, 5, 5, 5 ) ) ;   
+
+
+  fCanvasEvt =  new TRootEmbeddedCanvas("fCanvasEvt", fTabF3bII, 300, 300 ) ; 
+  fTabF3bII->AddFrame(fCanvasEvt, new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsExpandY | kLHintsExpandX, 5, 5, 5, 5 ) ) ; 
 
 
@@ -617,4 +654,5 @@
 Bool_t MainFrameSimone::ReadinEvt()
 {
+  Char_t  wort[256] ; 
   FILE  *unit ; 
   Char_t  filename[256] ; 
@@ -665,4 +703,35 @@
   Event.read( cerfile );
   
+
+  //
+  //   fill the information labels
+  //
+  
+  sprintf( wort,"PartId: %5.0f", Event.get_primary() ) ; 
+  fLabelId->SetText(new TGString(wort) )  ; 
+
+  sprintf( wort,"Energy: %9.1f", Event.get_energy() ) ; 
+  fLabelEner->SetText(new TGString(wort) )  ; 
+
+  sprintf( wort,"CoreX: %9.1f", Event.get_coreX() ) ; 
+  fLabelCoreX->SetText(new TGString(wort) )  ; 
+
+  sprintf( wort,"CoreY: %9.1f", Event.get_coreY() ) ; 
+  fLabelCoreY->SetText(new TGString(wort) )  ; 
+
+
+  sprintf( wort,"Theta: %9.1f", Event.get_theta()*180./PI ) ; 
+  fLabelTheta->SetText(new TGString(wort) )  ; 
+
+  sprintf( wort,"Phi: %9.1f", Event.get_phi()*180./PI ) ; 
+  fLabelPhi->SetText(new TGString(wort) )  ; 
+
+  sprintf( wort,"DireX: %9.3f", Event.get_direX()  ) ; 
+  fLabelDireX->SetText(new TGString(wort) )  ; 
+
+  sprintf( wort,"DireY: %9.3f", Event.get_direY()  ) ; 
+  fLabelDireY->SetText(new TGString(wort) )  ; 
+  
+
   //
   //   loop over the particles
@@ -710,7 +779,7 @@
   cerfile.close();
  
-
-  cout << fNtupEvt->GetEntries()  << endl ;
-  
+  sprintf( wort,"NbPhot: %8d", iPhotonInShower ) ; 
+  fLabelNbPhot->SetText(new TGString(wort) )  ; 
+
   return (kTRUE) ; 
 
@@ -870,4 +939,5 @@
 
 	ReadinEvt() ; 
+
 	break; 	
 
@@ -883,5 +953,5 @@
 
 	ReadinEvt() ; 
-	
+
 	break; 	
 
Index: trunk/MagicSoft/Simulation/Corsika/GuiSimone/MainFrameSimone.hxx
===================================================================
--- trunk/MagicSoft/Simulation/Corsika/GuiSimone/MainFrameSimone.hxx	(revision 425)
+++ trunk/MagicSoft/Simulation/Corsika/GuiSimone/MainFrameSimone.hxx	(revision 426)
@@ -83,6 +83,13 @@
 
   TGCompositeFrame  *fTabF3a, *fTabF3b, *fTabF3c ; 
+  TGCompositeFrame  *fTabF3bI, *fTabF3bII ;   
   TGLabel           *fLabel3, *fLabel4 ;
   TGListBox         *fDir3, *fDirEvtNb ;
+  TGLabel           *fLabelId, *fLabelEner ;
+  TGLabel           *fLabelNbPhot ;
+  TGLabel           *fLabelCoreX, *fLabelCoreY ;
+  TGLabel           *fLabelTheta, *fLabelPhi, *fLabelDireX, *fLabelDireY ;
+
+
   TRootEmbeddedCanvas    *fCanvasEvt ;  
   TGTextButton      *fButtonPrev, *fButtonNext ; 
Index: trunk/MagicSoft/Simulation/Detector/include-CORSIKA/COREventHeader.hxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/include-CORSIKA/COREventHeader.hxx	(revision 425)
+++ trunk/MagicSoft/Simulation/Detector/include-CORSIKA/COREventHeader.hxx	(revision 426)
@@ -207,4 +207,14 @@
   inline Float_t get_firstInt () {
     return ( zFirstInt ) ; 
+  }
+
+  // get the xDirection part of the normalized direction vector
+  inline Float_t get_direX () {
+    return ( (Float_t) ( p[0] / sqrt( p[0]*p[0] + p[1]*p[1] + p[2]*p[2] )) ) ; 
+  }
+
+  // get the xDirection part of the normalized direction vector
+  inline Float_t get_direY () {
+    return ( (Float_t) ( p[1] / sqrt( p[0]*p[0] + p[1]*p[1] + p[2]*p[2] )) ) ; 
   }
 
