Class Reference for E1039 Core & Analysis Software
EventHeaderv1 Class Reference

simple event header with ID and time More...

#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/framework/ffaobjects/EventHeaderv1.h>

+ Inheritance diagram for EventHeaderv1:
+ Collaboration diagram for EventHeaderv1:

Public Member Functions

 EventHeaderv1 ()
 ctor More...
 
virtual ~EventHeaderv1 ()
 dtor More...
 
EventHeaderv1clone () const
 Virtual copy constructor. More...
 
void Reset ()
 Clear Event. More...
 
void identify (std::ostream &os=std::cout) const
 
int isValid () const
 isValid returns non zero if object contains valid data More...
 
int get_RunNumber () const
 get Run Number More...
 
void set_RunNumber (const int run)
 set Run Number More...
 
int get_EvtSequence () const
 get Event Number More...
 
void set_EvtSequence (const int evtno)
 set Event Number More...
 
int get_EvtType () const
 get Event Type (Data,rejected,EOR,BOR,...) More...
 
void set_EvtType (const int ival)
 set Event Type (Data,rejected,EOR,BOR,...) More...
 
time_t get_TimeStamp () const
 get ATP TimeStamp (unix time, convert with ctime() to date string More...
 
void set_TimeStamp (const time_t evttime)
 set ATP TimeStamp More...
 
- Public Member Functions inherited from EventHeader
virtual ~EventHeader ()
 dtor More...
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor More...
 
virtual ~PHObject ()
 dtor More...
 
virtual int isValid (const float) const
 
virtual int isValid (const double) const
 
virtual int isValid (const int) const
 
virtual int isValid (const unsigned int) const
 
virtual int isImplemented (const float f) const
 
virtual int isImplemented (const double f) const
 
virtual int isImplemented (const int i) const
 
virtual int isImplemented (const unsigned int i) const
 
void SplitLevel (const int i)
 
int SplitLevel () const
 
void BufferSize (const int i)
 
int BufferSize () const
 

Protected Attributes

int RunNumber
 
int EvtSequence
 
int EvtType
 
time_t TimeStamp
 

Detailed Description

simple event header with ID and time

Definition at line 7 of file EventHeaderv1.h.

Constructor & Destructor Documentation

◆ EventHeaderv1()

EventHeaderv1::EventHeaderv1 ( )

ctor

Referenced by clone().

+ Here is the caller graph for this function:

◆ ~EventHeaderv1()

virtual EventHeaderv1::~EventHeaderv1 ( )
inlinevirtual

dtor

Definition at line 14 of file EventHeaderv1.h.

Member Function Documentation

◆ clone()

EventHeaderv1* EventHeaderv1::clone ( ) const
inlinevirtual

Virtual copy constructor.

Reimplemented from PHObject.

Definition at line 16 of file EventHeaderv1.h.

References EventHeaderv1().

+ Here is the call graph for this function:

◆ get_EvtSequence()

int EventHeaderv1::get_EvtSequence ( ) const
inlinevirtual

get Event Number

Reimplemented from EventHeader.

Definition at line 35 of file EventHeaderv1.h.

References EvtSequence.

◆ get_EvtType()

int EventHeaderv1::get_EvtType ( ) const
inlinevirtual

get Event Type (Data,rejected,EOR,BOR,...)

Reimplemented from EventHeader.

Definition at line 40 of file EventHeaderv1.h.

References EvtType.

◆ get_RunNumber()

int EventHeaderv1::get_RunNumber ( ) const
inlinevirtual

get Run Number

Reimplemented from EventHeader.

Definition at line 30 of file EventHeaderv1.h.

References RunNumber.

◆ get_TimeStamp()

time_t EventHeaderv1::get_TimeStamp ( ) const
inlinevirtual

get ATP TimeStamp (unix time, convert with ctime() to date string

Reimplemented from EventHeader.

Definition at line 45 of file EventHeaderv1.h.

References TimeStamp.

◆ identify()

void EventHeaderv1::identify ( std::ostream &  os = std::cout) const
virtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from EventHeader.

Definition at line 24 of file EventHeaderv1.cc.

◆ isValid()

int EventHeaderv1::isValid ( ) const
virtual

isValid returns non zero if object contains valid data

Reimplemented from EventHeader.

Definition at line 36 of file EventHeaderv1.cc.

◆ Reset()

void EventHeaderv1::Reset ( )
virtual

Clear Event.

Reimplemented from EventHeader.

Definition at line 15 of file EventHeaderv1.cc.

◆ set_EvtSequence()

void EventHeaderv1::set_EvtSequence ( const int  evtno)
inlinevirtual

set Event Number

Reimplemented from EventHeader.

Definition at line 37 of file EventHeaderv1.h.

References EvtSequence.

◆ set_EvtType()

void EventHeaderv1::set_EvtType ( const int  ival)
inlinevirtual

set Event Type (Data,rejected,EOR,BOR,...)

Reimplemented from EventHeader.

Definition at line 42 of file EventHeaderv1.h.

References EvtType.

◆ set_RunNumber()

void EventHeaderv1::set_RunNumber ( const int  run)
inlinevirtual

set Run Number

Reimplemented from EventHeader.

Definition at line 32 of file EventHeaderv1.h.

References RunNumber.

◆ set_TimeStamp()

void EventHeaderv1::set_TimeStamp ( const time_t  evttime)
inlinevirtual

set ATP TimeStamp

Reimplemented from EventHeader.

Definition at line 47 of file EventHeaderv1.h.

References TimeStamp.

Member Data Documentation

◆ EvtSequence

int EventHeaderv1::EvtSequence
protected

Definition at line 52 of file EventHeaderv1.h.

Referenced by get_EvtSequence(), and set_EvtSequence().

◆ EvtType

int EventHeaderv1::EvtType
protected

Definition at line 53 of file EventHeaderv1.h.

Referenced by get_EvtType(), and set_EvtType().

◆ RunNumber

int EventHeaderv1::RunNumber
protected

Definition at line 51 of file EventHeaderv1.h.

Referenced by get_RunNumber(), and set_RunNumber().

◆ TimeStamp

time_t EventHeaderv1::TimeStamp
protected

Definition at line 54 of file EventHeaderv1.h.

Referenced by get_TimeStamp(), and set_TimeStamp().


The documentation for this class was generated from the following files: