Class Reference for E1039 Core & Analysis Software
EventHeaderv1.h
Go to the documentation of this file.
1 #ifndef __EVENTHEADERv1_H
2 #define __EVENTHEADERv1_H
3 
4 #include "EventHeader.h"
5 
8 {
9  public:
10 
14  virtual ~EventHeaderv1() {}
15 
16  EventHeaderv1 * clone() const { return new EventHeaderv1(*this); }
17 
19  void Reset();
20 
24  void identify(std::ostream& os = std::cout) const;
25 
27  int isValid() const;
28 
30  int get_RunNumber() const {return RunNumber;}
32  void set_RunNumber(const int run) {RunNumber=run; return;}
33 
35  int get_EvtSequence() const {return EvtSequence;}
37  void set_EvtSequence(const int evtno) {EvtSequence=evtno; return;}
38 
40  int get_EvtType() const {return EvtType;}
42  void set_EvtType(const int ival) {EvtType = ival; return;}
43 
45  time_t get_TimeStamp() const {return TimeStamp;}
47  void set_TimeStamp(const time_t evttime) {TimeStamp = evttime; return;}
48 
49  protected:
50 
51  int RunNumber; // Run number
52  int EvtSequence; // Event number
53  int EvtType; // Data type (Data,Rejected,Scaler,PPG ...)
54  time_t TimeStamp; // TimeStamp of Evt from ATP in Ticks
55 
56  private: // prevent doc++ from showing ClassDef
57  ClassDef(EventHeaderv1,1)
58 };
59 
60 #endif
base class for EventHeaders
Definition: EventHeader.h:10
simple event header with ID and time
Definition: EventHeaderv1.h:8
int get_EvtType() const
get Event Type (Data,rejected,EOR,BOR,...)
Definition: EventHeaderv1.h:40
EventHeaderv1()
ctor
int isValid() const
isValid returns non zero if object contains valid data
void Reset()
Clear Event.
void identify(std::ostream &os=std::cout) const
int get_RunNumber() const
get Run Number
Definition: EventHeaderv1.h:30
int get_EvtSequence() const
get Event Number
Definition: EventHeaderv1.h:35
time_t get_TimeStamp() const
get ATP TimeStamp (unix time, convert with ctime() to date string
Definition: EventHeaderv1.h:45
void set_RunNumber(const int run)
set Run Number
Definition: EventHeaderv1.h:32
void set_EvtType(const int ival)
set Event Type (Data,rejected,EOR,BOR,...)
Definition: EventHeaderv1.h:42
EventHeaderv1 * clone() const
Virtual copy constructor.
Definition: EventHeaderv1.h:16
time_t TimeStamp
Definition: EventHeaderv1.h:54
virtual ~EventHeaderv1()
dtor
Definition: EventHeaderv1.h:14
void set_EvtSequence(const int evtno)
set Event Number
Definition: EventHeaderv1.h:37
void set_TimeStamp(const time_t evttime)
set ATP TimeStamp
Definition: EventHeaderv1.h:47