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
7
ClassImp
(
EventHeaderv1
)
8
9
EventHeaderv1::EventHeaderv1
()
10
{
11
Reset();
12
return
;
13
}
14
15
void
EventHeaderv1::Reset
()
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
36
int
EventHeaderv1::isValid
()
const
37
{
38
return
((TimeStamp) ? 1:0);
// return 1 if TimeStamp is not zero
39
}
40
ClassImp
ClassImp(EventHeaderv1) EventHeaderv1
Definition:
EventHeaderv1.cc:7
EventHeaderv1.h
EventHeaderv1
simple event header with ID and time
Definition:
EventHeaderv1.h:8
EventHeaderv1::EventHeaderv1
EventHeaderv1()
ctor
EventHeaderv1::isValid
int isValid() const
isValid returns non zero if object contains valid data
Definition:
EventHeaderv1.cc:36
EventHeaderv1::Reset
void Reset()
Clear Event.
Definition:
EventHeaderv1.cc:15
EventHeaderv1::identify
void identify(std::ostream &os=std::cout) const
Definition:
EventHeaderv1.cc:24
e1039-core
framework
ffaobjects
EventHeaderv1.cc
Built by
Haiwang Yu
. updated:
Thu Jan 30 2025 10:15:15
using
1.9.1 with
SeaQuest GitHub integration