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
PHObject.h
EventHeader
base class for EventHeaders
Definition:
EventHeader.h:10
EventHeader::get_TimeStamp
virtual time_t get_TimeStamp() const
get ATP TimeStamp (unix time, convert with ctime()
Definition:
EventHeader.h:43
EventHeader::get_RunNumber
virtual int get_RunNumber() const
get Run Number
Definition:
EventHeader.h:28
EventHeader::identify
virtual void identify(std::ostream &os=std::cout) const
Definition:
EventHeader.cc:19
EventHeader::get_EvtType
virtual int get_EvtType() const
get Event Type (Data,rejected,EOR,BOR,...)
Definition:
EventHeader.h:38
EventHeader::Reset
virtual void Reset()
Clear Event.
EventHeader::set_EvtSequence
virtual void set_EvtSequence(const int)
set Event Number
Definition:
EventHeader.h:35
EventHeader::set_EvtType
virtual void set_EvtType(const int)
set Event Type (Data,rejected,EOR,BOR,...)
Definition:
EventHeader.h:40
EventHeader::~EventHeader
virtual ~EventHeader()
dtor
Definition:
EventHeader.h:14
EventHeader::set_RunNumber
virtual void set_RunNumber(const int run)
set Run Number
Definition:
EventHeader.h:30
EventHeader::set_TimeStamp
virtual void set_TimeStamp(const time_t)
set TimeStamp
Definition:
EventHeader.h:45
EventHeader::get_EvtSequence
virtual int get_EvtSequence() const
get Event Number
Definition:
EventHeader.h:33
EventHeader::isValid
virtual int isValid() const
isValid returns non zero if object contains valid data
Definition:
EventHeader.cc:27
PHObject
Definition:
PHObject.h:13
e1039-core
framework
ffaobjects
EventHeader.h
Built by
Haiwang Yu
. updated:
Thu Jan 30 2025 10:15:15
using
1.9.1 with
SeaQuest GitHub integration