FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairEventHeader.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 // -------------------------------------------------------------------------
9 // ----- FairEventHeader header file -----
10 // ----- Created 08/09/04 D.Bertini -----
11 // -------------------------------------------------------------------------
12 
13 #ifndef FAIREVENTHEADER_H
14 #define FAIREVENTHEADER_H
15 
16 #include <Rtypes.h> // for Int_t, Double_t, UInt_t, ClassDef, etc
17 #include <TNamed.h> // for TNamed
18 
24 class FairEventHeader : public TNamed
25 {
26  public:
29 
31  UInt_t GetRunId() { return fRunId; }
32 
34  Double_t GetEventTime() { return fEventTime; }
35 
37  Int_t GetInputFileId() { return fInputFileId; }
38 
40  Int_t GetMCEntryNumber() { return fMCEntryNo; }
41 
45  void SetRunId(UInt_t runid) { fRunId = runid; }
46 
50  void SetEventTime(Double_t time) { fEventTime = time; }
51 
53  void SetInputFileId(Int_t id) { fInputFileId = id; }
54 
56  void SetMCEntryNumber(Int_t id) { fMCEntryNo = id; }
57 
61  virtual ~FairEventHeader();
62  virtual void Register(Bool_t Persistance = kTRUE);
63 
64  protected:
66  UInt_t fRunId;
68  Double_t fEventTime;
70  Int_t fInputFileId;
72  Int_t fMCEntryNo;
73 
75 };
76 
77 #endif
void SetMCEntryNumber(Int_t id)
Int_t GetMCEntryNumber()
void SetEventTime(Double_t time)
Double_t GetEventTime()
virtual void Register(Bool_t Persistance=kTRUE)
void SetInputFileId(Int_t id)
Int_t GetInputFileId()
void SetRunId(UInt_t runid)
virtual ~FairEventHeader()
ClassDef(FairEventHeader, 3)