BOSS 7.0.2
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 ()
 
 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

Constructor & Destructor Documentation

◆ TEvtHeader() [1/2]

TEvtHeader::TEvtHeader ( )

◆ ~TEvtHeader() [1/2]

TEvtHeader::~TEvtHeader ( )
virtual

Definition at line 18 of file TEvtHeader.cxx.

18 {
19
20}

◆ TEvtHeader() [2/2]

TEvtHeader::TEvtHeader ( )

◆ ~TEvtHeader() [2/2]

virtual TEvtHeader::~TEvtHeader ( )
virtual

Member Function Documentation

◆ Clear() [1/2]

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().

◆ Clear() [2/2]

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

◆ getEventId() [1/2]

Int_t TEvtHeader::getEventId ( )
inline

Access the TEvtHeader number.

Definition at line 23 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TEvtHeader.h.

23{ return m_eventId; };

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

◆ getEventId() [2/2]

Int_t TEvtHeader::getEventId ( )
inline

Access the TEvtHeader number.

Definition at line 23 of file InstallArea/include/RootEventData/RootEventData/TEvtHeader.h.

23{ return m_eventId; };

◆ getEventTag() [1/2]

UInt_t TEvtHeader::getEventTag ( )
inline

Definition at line 32 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TEvtHeader.h.

32{ return m_eventTag;}

◆ getEventTag() [2/2]

UInt_t TEvtHeader::getEventTag ( )
inline

Definition at line 32 of file InstallArea/include/RootEventData/RootEventData/TEvtHeader.h.

32{ return m_eventTag;}

◆ getFlag1() [1/2]

UInt_t TEvtHeader::getFlag1 ( )
inline

Definition at line 37 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TEvtHeader.h.

37{ return m_flag1; }

◆ getFlag1() [2/2]

UInt_t TEvtHeader::getFlag1 ( )
inline

Definition at line 37 of file InstallArea/include/RootEventData/RootEventData/TEvtHeader.h.

37{ return m_flag1; }

◆ getFlag2() [1/2]

UInt_t TEvtHeader::getFlag2 ( )
inline

Definition at line 38 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TEvtHeader.h.

38{ return m_flag2; }

◆ getFlag2() [2/2]

UInt_t TEvtHeader::getFlag2 ( )
inline

Definition at line 38 of file InstallArea/include/RootEventData/RootEventData/TEvtHeader.h.

38{ return m_flag2; }

◆ getRunId() [1/2]

Int_t TEvtHeader::getRunId ( )
inline

Access the run number.

Definition at line 26 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TEvtHeader.h.

26{ return m_runId; };

Referenced by BesEvent::SetEvent().

◆ getRunId() [2/2]

Int_t TEvtHeader::getRunId ( )
inline

Access the run number.

Definition at line 26 of file InstallArea/include/RootEventData/RootEventData/TEvtHeader.h.

26{ return m_runId; };

◆ initialize() [1/2]

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().

◆ initialize() [2/2]

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

◆ Print() [1/2]

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}

◆ Print() [2/2]

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

◆ setFlag1() [1/2]

void TEvtHeader::setFlag1 ( int  value)
inline

◆ setFlag1() [2/2]

void TEvtHeader::setFlag1 ( int  value)
inline

Definition at line 34 of file InstallArea/include/RootEventData/RootEventData/TEvtHeader.h.

34{ m_flag1 = value; }

◆ setFlag2() [1/2]

void TEvtHeader::setFlag2 ( int  value)
inline

◆ setFlag2() [2/2]

void TEvtHeader::setFlag2 ( int  value)
inline

Definition at line 35 of file InstallArea/include/RootEventData/RootEventData/TEvtHeader.h.

35{ m_flag2 = value; }

◆ setTime() [1/2]

void TEvtHeader::setTime ( int  value)
inline

◆ setTime() [2/2]

void TEvtHeader::setTime ( int  value)
inline

Definition at line 30 of file InstallArea/include/RootEventData/RootEventData/TEvtHeader.h.

30{ m_time = value; }

◆ time() [1/2]

UInt_t TEvtHeader::time ( ) const
inline

Definition at line 28 of file Event/RootEventData/RootEventData-00-03-80/RootEventData/TEvtHeader.h.

28{ return m_time; }

Referenced by BesEvent::SetEvent().

◆ time() [2/2]

UInt_t TEvtHeader::time ( ) const
inline

Definition at line 28 of file InstallArea/include/RootEventData/RootEventData/TEvtHeader.h.

28{ return m_time; }

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