// ------------------------------------------------------------------------- // ----- FairEventHeader header file ----- // ----- Created 08/09/04 D.Bertini ----- // ------------------------------------------------------------------------- #ifndef FAIREVENTHEADER_H #define FAIREVENTHEADER_H #include "TNamed.h" /** * Event Header Class **@author D.Bertini **@author M.Al-Turany */ class FairEventHeader : public TNamed { public: /** Default constructor */ FairEventHeader(); /** Get the run ID for this run*/ UInt_t GetRunId() {return fRunId;} /** Get the MC time for this event*/ Double_t GetEventTime() {return fEventTime;} /** Get the MC input file Id for this event*/ Int_t GetInputFileId() {return fInputFileId;} /**The entry number in the original MC chain */ Int_t GetMCEntryNumber() {return fMCEntryNo;} /** Set the run ID for this run * @param runid : unique run id */ void SetRunId(UInt_t runid) {fRunId=runid;} /** Set the MC time for this event * @param time : time in ns */ void SetEventTime(Double_t time) {fEventTime=time;} /** Set the Signal file Id for this event*/ void SetInputFileId(Int_t id) {fInputFileId=id;} /**The entry number in the original MC chain */ void SetMCEntryNumber(Int_t id) {fMCEntryNo=id;} /** * Destructor */ virtual ~FairEventHeader(); virtual void Register(); protected: /** Run Id */ UInt_t fRunId; /** Event Time **/ Double_t fEventTime; /** Input file identifier, the file description is in the File header*/ Int_t fInputFileId; /**MC entry number from input chain*/ Int_t fMCEntryNo; ClassDef(FairEventHeader,3) }; #endif