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
7
class
EventHeaderv1
:
public
EventHeader
8
{
9
public
:
10
12
EventHeaderv1
();
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
EventHeader.h
EventHeader
base class for EventHeaders
Definition:
EventHeader.h:10
EventHeaderv1
simple event header with ID and time
Definition:
EventHeaderv1.h:8
EventHeaderv1::get_EvtType
int get_EvtType() const
get Event Type (Data,rejected,EOR,BOR,...)
Definition:
EventHeaderv1.h:40
EventHeaderv1::EvtSequence
int EvtSequence
Definition:
EventHeaderv1.h:52
EventHeaderv1::EventHeaderv1
EventHeaderv1()
ctor
EventHeaderv1::RunNumber
int RunNumber
Definition:
EventHeaderv1.h:51
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
EventHeaderv1::get_RunNumber
int get_RunNumber() const
get Run Number
Definition:
EventHeaderv1.h:30
EventHeaderv1::get_EvtSequence
int get_EvtSequence() const
get Event Number
Definition:
EventHeaderv1.h:35
EventHeaderv1::get_TimeStamp
time_t get_TimeStamp() const
get ATP TimeStamp (unix time, convert with ctime() to date string
Definition:
EventHeaderv1.h:45
EventHeaderv1::set_RunNumber
void set_RunNumber(const int run)
set Run Number
Definition:
EventHeaderv1.h:32
EventHeaderv1::set_EvtType
void set_EvtType(const int ival)
set Event Type (Data,rejected,EOR,BOR,...)
Definition:
EventHeaderv1.h:42
EventHeaderv1::EvtType
int EvtType
Definition:
EventHeaderv1.h:53
EventHeaderv1::clone
EventHeaderv1 * clone() const
Virtual copy constructor.
Definition:
EventHeaderv1.h:16
EventHeaderv1::TimeStamp
time_t TimeStamp
Definition:
EventHeaderv1.h:54
EventHeaderv1::~EventHeaderv1
virtual ~EventHeaderv1()
dtor
Definition:
EventHeaderv1.h:14
EventHeaderv1::set_EvtSequence
void set_EvtSequence(const int evtno)
set Event Number
Definition:
EventHeaderv1.h:37
EventHeaderv1::set_TimeStamp
void set_TimeStamp(const time_t evttime)
set ATP TimeStamp
Definition:
EventHeaderv1.h:47
e1039-core
framework
ffaobjects
EventHeaderv1.h
Built by
Haiwang Yu
. updated:
Thu Jan 30 2025 10:15:15
using
1.9.1 with
SeaQuest GitHub integration