#ifndef _INCLUDE_CORSIKA_MEVENTHEADER_ #define _INCLUDE_CORSIKA_MEVENTHEADER_ #include #include namespace crs { /** \class MEventHeader \brief CORSIKA event header (EVTH) sub-block This class knows how to access the data stored in this sub-block type. \author Ralf Ulrich \date Thu Feb 3 13:04:50 CET 2005 \version $Id: MEventHeader.h 5116 2016-01-04 19:09:04Z darko $ */ class MEventHeader : public TSubBlock { public: MEventHeader () {} MEventHeader (const TSubBlock &right); virtual ~MEventHeader () {} public: CINT GetEventNumber () const {return (int)fSubBlockData [1];} CREAL GetParticleId () const {return fSubBlockData [2];} CREAL GetEnergy () const {return fSubBlockData [3];} CREAL GetStartingAltitude () const {return fSubBlockData [4];}///< gcm^-2 CREAL GetFirstTarget () const {return fSubBlockData [5];} CREAL GetZFirst () const {return fSubBlockData [6];} ///< cm CREAL GetPx () const {return fSubBlockData [7];} ///< GeV CREAL GetPy () const {return fSubBlockData [8];} ///< GeV CREAL GetPz () const {return fSubBlockData [9];} ///< GeV CREAL GetTheta () const {return fSubBlockData [10];}///< zenith in rad CREAL GetPhi () const {return fSubBlockData [11];} ///< azimuth in rad CINT GetNRandomSequences () const {return (int)fSubBlockData [12];} CINT GetSeed (int index) const {return (index