BOSS 7.0.8
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 ()
 
void setEtsT1 (unsigned long value)
 
void setEtsT2 (unsigned long value)
 
ULong_t getEtsT1 ()
 
ULong_t getEtsT2 ()
 

Detailed Description

Definition at line 8 of file TEvtHeader.h.

Constructor & Destructor Documentation

◆ TEvtHeader()

TEvtHeader::TEvtHeader ( )

◆ ~TEvtHeader()

TEvtHeader::~TEvtHeader ( )
virtual

Definition at line 19 of file TEvtHeader.cxx.

19 {
20
21}

Member Function Documentation

◆ Clear()

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

Definition at line 31 of file TEvtHeader.cxx.

31 {
32
33 m_eventId = 0;
34 m_runId = 0;
35 m_eventTag=0;
36 m_time = 0;
37 m_flag1 = 0;
38 m_flag2 = 0;
39 m_etsT1 = 0;
40 m_etsT2 = 0;
41}

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

◆ getEtsT1()

ULong_t TEvtHeader::getEtsT1 ( )
inline

Definition at line 43 of file TEvtHeader.h.

43{ return m_etsT1; }

◆ getEtsT2()

ULong_t TEvtHeader::getEtsT2 ( )
inline

Definition at line 44 of file TEvtHeader.h.

44{ return m_etsT2; }

◆ 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 BesClient::GetEvent(), and BesEvent::SetEvent().

◆ initialize()

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

Definition at line 24 of file TEvtHeader.cxx.

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

Referenced by EvtHeaderCnv::DataObjectToTObject().

◆ Print()

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

Definition at line 44 of file TEvtHeader.cxx.

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

◆ setEtsT1()

void TEvtHeader::setEtsT1 ( unsigned long  value)
inline

Definition at line 40 of file TEvtHeader.h.

40{ m_etsT1 = value; }

Referenced by EvtHeaderCnv::DataObjectToTObject().

◆ setEtsT2()

void TEvtHeader::setEtsT2 ( unsigned long  value)
inline

Definition at line 41 of file TEvtHeader.h.

41{ m_etsT2 = value; }

Referenced by EvtHeaderCnv::DataObjectToTObject().

◆ 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: