BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
TEvtHeader Class Reference

#include <TEvtHeader.h>

+ Inheritance diagram for TEvtHeader:

Public Member Functions

 TEvtHeader ()
 
virtual ~TEvtHeader ()
 
void initialize (Int_t Id, Int_t runId, UInt_t evenTag)
 
void Clear (Option_t *option="")
 
void Print (Option_t *option="") const
 
Int_t getEventId ()
 Access the TEvtHeader number.
 
Int_t getRunId ()
 Access the run number.
 
UInt_t time () const
 
void setTime (int value)
 
UInt_t getEventTag ()
 
void setFlag1 (int value)
 
void setFlag2 (int value)
 
UInt_t getFlag1 ()
 
UInt_t getFlag2 ()
 

Detailed Description

Definition at line 8 of file TEvtHeader.h.

Constructor & Destructor Documentation

◆ TEvtHeader()

TEvtHeader::TEvtHeader ( )

◆ ~TEvtHeader()

TEvtHeader::~TEvtHeader ( )
virtual

Definition at line 18 of file TEvtHeader.cxx.

18 {
19
20}

Member Function Documentation

◆ Clear()

void TEvtHeader::Clear ( Option_t *  option = "")

Definition at line 30 of file TEvtHeader.cxx.

30 {
31
32 m_eventId = 0;
33 m_runId = 0;
34 m_eventTag=0;
35 m_time = 0;
36 m_flag1 = 0;
37 m_flag2 = 0;
38}

Referenced by RootCnvSvc::commitOutput(), and BesClient::GetRecEvent().

◆ getEventId()

Int_t TEvtHeader::getEventId ( )
inline

Access the TEvtHeader number.

Definition at line 23 of file TEvtHeader.h.

23{ return m_eventId; };

Referenced by EventWriter::execute(), and BesEvent::SetEvent().

◆ getEventTag()

UInt_t TEvtHeader::getEventTag ( )
inline

Definition at line 32 of file TEvtHeader.h.

32{ return m_eventTag;}

◆ getFlag1()

UInt_t TEvtHeader::getFlag1 ( )
inline

Definition at line 37 of file TEvtHeader.h.

37{ return m_flag1; }

◆ getFlag2()

UInt_t TEvtHeader::getFlag2 ( )
inline

Definition at line 38 of file TEvtHeader.h.

38{ return m_flag2; }

◆ getRunId()

Int_t TEvtHeader::getRunId ( )
inline

Access the run number.

Definition at line 26 of file TEvtHeader.h.

26{ return m_runId; };

Referenced by BesEvent::SetEvent().

◆ initialize()

void TEvtHeader::initialize ( Int_t  Id,
Int_t  runId,
UInt_t  evenTag 
)

Definition at line 23 of file TEvtHeader.cxx.

23 {
24 m_eventId = event;
25 m_runId = runId;
26 m_eventTag=eventTag;
27}

Referenced by EvtHeaderCnv::DataObjectToTObject().

◆ Print()

void TEvtHeader::Print ( Option_t *  option = "") const

Definition at line 41 of file TEvtHeader.cxx.

41 {
42 TObject::Print(option);
43 std::cout.precision(2);
44 std::cout << "Run, Event, TotEvtNum, EventTag: " << m_runId << ", " << m_eventId<<", "<< std::hex<<m_eventTag<<std::dec<<std::endl;
45}

◆ setFlag1()

void TEvtHeader::setFlag1 ( int  value)
inline

Definition at line 34 of file TEvtHeader.h.

34{ m_flag1 = value; }

Referenced by EvtHeaderCnv::DataObjectToTObject().

◆ setFlag2()

void TEvtHeader::setFlag2 ( int  value)
inline

Definition at line 35 of file TEvtHeader.h.

35{ m_flag2 = value; }

Referenced by EvtHeaderCnv::DataObjectToTObject().

◆ setTime()

void TEvtHeader::setTime ( int  value)
inline

Definition at line 30 of file TEvtHeader.h.

30{ m_time = value; }

Referenced by EvtHeaderCnv::DataObjectToTObject().

◆ time()

UInt_t TEvtHeader::time ( ) const
inline

Definition at line 28 of file TEvtHeader.h.

28{ return m_time; }

Referenced by BesEvent::SetEvent().


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