Class Reference for E1039 Core & Analysis Software
EventHeaderv1.cc
Go to the documentation of this file.
1 #include "EventHeaderv1.h"
2 
3 #include <iostream>
4 
5 using namespace std;
6 
8 
10 {
11  Reset();
12  return;
13 }
14 
16 {
17  RunNumber = 0;
18  TimeStamp = 0;
19  EvtSequence = -999999;
20  EvtType = -999999;
21  return;
22 }
23 
24 void EventHeaderv1::identify(ostream& out) const
25 {
26  out << "identify yourself: I am an EventHeaderv1 Object" << endl;
27  out << "Run Number: " << RunNumber
28  << ", Event no: " << EvtSequence
29  << ", Type: " << EvtType
30  << ", DAQ arrival time: " << ctime(&TimeStamp)
31  << endl;
32 
33  return;
34 }
35 
37 {
38  return((TimeStamp) ? 1:0); // return 1 if TimeStamp is not zero
39 }
40 
ClassImp(EventHeaderv1) EventHeaderv1
Definition: EventHeaderv1.cc:7
simple event header with ID and time
Definition: EventHeaderv1.h:8
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