Index: trunk/MagicSoft/Simulation/Detector/include-CORSIKA/COREventHeader.hxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/include-CORSIKA/COREventHeader.hxx	(revision 421)
+++ 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] )) ) ; 
   }
 
