Class Reference for E1039 Core & Analysis Software
EventHeader.h
Go to the documentation of this file.
1 #ifndef EVENTHEADER_H
2 #define EVENTHEADER_H
3 
4 #include <phool/PHObject.h>
5 
6 #include <ctime>
7 
9 class EventHeader: public PHObject
10 {
11  public:
12 
14  virtual ~EventHeader() {}
15 
17  virtual void Reset();
18 
22  virtual void identify(std::ostream& os = std::cout) const;
23 
25  virtual int isValid() const;
26 
28  virtual int get_RunNumber() const {return -9999;}
30  virtual void set_RunNumber(const int run) {return;}
31 
33  virtual int get_EvtSequence() const {return -9999;}
35  virtual void set_EvtSequence(const int /*ival*/) {return;}
36 
38  virtual int get_EvtType() const {return -9999;}
40  virtual void set_EvtType(const int /*ival*/) {return;}
41 
43  virtual time_t get_TimeStamp() const {return 0;}
45  virtual void set_TimeStamp(const time_t /*evttime*/) {return;}
46 
47  private: // prevent doc++ from showing ClassDef
48  ClassDef(EventHeader,1)
49 
50 };
51 
52 #endif
53 
54 
55 
base class for EventHeaders
Definition: EventHeader.h:10
virtual time_t get_TimeStamp() const
get ATP TimeStamp (unix time, convert with ctime()
Definition: EventHeader.h:43
virtual int get_RunNumber() const
get Run Number
Definition: EventHeader.h:28
virtual void identify(std::ostream &os=std::cout) const
Definition: EventHeader.cc:19
virtual int get_EvtType() const
get Event Type (Data,rejected,EOR,BOR,...)
Definition: EventHeader.h:38
virtual void Reset()
Clear Event.
virtual void set_EvtSequence(const int)
set Event Number
Definition: EventHeader.h:35
virtual void set_EvtType(const int)
set Event Type (Data,rejected,EOR,BOR,...)
Definition: EventHeader.h:40
virtual ~EventHeader()
dtor
Definition: EventHeader.h:14
virtual void set_RunNumber(const int run)
set Run Number
Definition: EventHeader.h:30
virtual void set_TimeStamp(const time_t)
set TimeStamp
Definition: EventHeader.h:45
virtual int get_EvtSequence() const
get Event Number
Definition: EventHeader.h:33
virtual int isValid() const
isValid returns non zero if object contains valid data
Definition: EventHeader.cc:27