#ifndef _evt_Header_h_ #define _evt_Header_h_ #include #include namespace evt { /** \class Header Header.h evt/Header.h \brief Global event header Holder for event time and event identifier. The event identifier is concocted as follows: - if IoSd, use IoSdEvent::Id with "sd_" prepended - if FD, combine eye Id i, run number j, event number k for each eye in the event, in form: eyei_runj_eventk - if IoAuger, use AugerEvent::Id() with "auger_" prepended - if Monte Carlo, compose an event identifier using a library identifier, a run number, a simulated shower number, and a counter specifying the number of times the shower was used. The precise arrangement of this information is controllable from the EventGeneratorOG::EventGenerator module. See EventGeneratorOG::EventGenerator for details. \author Tom Paul \date 13 May 2004 \version $Id$ \ingroup evt */ class Header { public: /// Get the event identifier const std::string& GetId() const { return fId; } const utl::TimeStamp& GetTime() const { return fTimeStamp; } /// Set the event identifier void SetId(const std::string& id) { fId = id; } void SetTime(const utl::TimeStamp& t) { fTimeStamp = t; } private: utl::TimeStamp fTimeStamp; std::string fId; }; } #endif // _evt_Header_h_ // Configure (x)emacs for this file ... // Local Variables: // mode: c++ // End: