#include <TEvtHeader.h>
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 () |
Private Attributes | |
Int_t | m_eventId |
Event Number. | |
Int_t | m_runId |
Run number. | |
UInt_t | m_time |
UInt_t | m_eventTag |
UInt_t | m_flag1 |
UInt_t | m_flag2 |
Definition at line 8 of file TEvtHeader.h.
TEvtHeader::TEvtHeader | ( | ) |
TEvtHeader::~TEvtHeader | ( | ) | [virtual] |
void TEvtHeader::Clear | ( | Option_t * | option = "" |
) |
Definition at line 30 of file TEvtHeader.cxx.
References m_eventId, m_eventTag, m_flag1, m_flag2, m_runId, and m_time.
Referenced by RootCnvSvc::commitOutput(), and BesClient::GetRecEvent().
00030 { 00031 00032 m_eventId = 0; 00033 m_runId = 0; 00034 m_eventTag=0; 00035 m_time = 0; 00036 m_flag1 = 0; 00037 m_flag2 = 0; 00038 }
Int_t TEvtHeader::getEventId | ( | ) | [inline] |
Access the TEvtHeader number.
Definition at line 23 of file TEvtHeader.h.
References m_eventId.
Referenced by EventWriter::execute(), and BesEvent::SetEvent().
00023 { return m_eventId; };
UInt_t TEvtHeader::getEventTag | ( | ) | [inline] |
UInt_t TEvtHeader::getFlag1 | ( | ) | [inline] |
UInt_t TEvtHeader::getFlag2 | ( | ) | [inline] |
Int_t TEvtHeader::getRunId | ( | ) | [inline] |
Access the run number.
Definition at line 26 of file TEvtHeader.h.
References m_runId.
Referenced by BesEvent::SetEvent().
00026 { return m_runId; };
void TEvtHeader::initialize | ( | Int_t | Id, | |
Int_t | runId, | |||
UInt_t | evenTag | |||
) |
Definition at line 23 of file TEvtHeader.cxx.
References m_eventId, m_eventTag, and m_runId.
Referenced by EvtHeaderCnv::DataObjectToTObject().
00023 { 00024 m_eventId = event; 00025 m_runId = runId; 00026 m_eventTag=eventTag; 00027 }
void TEvtHeader::Print | ( | Option_t * | option = "" |
) | const |
Definition at line 41 of file TEvtHeader.cxx.
References m_eventId, m_eventTag, and m_runId.
00041 { 00042 TObject::Print(option); 00043 std::cout.precision(2); 00044 std::cout << "Run, Event, TotEvtNum, EventTag: " << m_runId << ", " << m_eventId<<", "<< std::hex<<m_eventTag<<std::dec<<std::endl; 00045 }
void TEvtHeader::setFlag1 | ( | int | value | ) | [inline] |
Definition at line 34 of file TEvtHeader.h.
References m_flag1.
Referenced by EvtHeaderCnv::DataObjectToTObject().
00034 { m_flag1 = value; }
void TEvtHeader::setFlag2 | ( | int | value | ) | [inline] |
Definition at line 35 of file TEvtHeader.h.
References m_flag2.
Referenced by EvtHeaderCnv::DataObjectToTObject().
00035 { m_flag2 = value; }
void TEvtHeader::setTime | ( | int | value | ) | [inline] |
Definition at line 30 of file TEvtHeader.h.
References m_time.
Referenced by EvtHeaderCnv::DataObjectToTObject().
00030 { m_time = value; }
UInt_t TEvtHeader::time | ( | void | ) | const [inline] |
Definition at line 28 of file TEvtHeader.h.
References m_time.
Referenced by BesEvent::SetEvent().
00028 { return m_time; }
Int_t TEvtHeader::m_eventId [private] |
Event Number.
Definition at line 43 of file TEvtHeader.h.
Referenced by Clear(), getEventId(), initialize(), and Print().
UInt_t TEvtHeader::m_eventTag [private] |
Definition at line 51 of file TEvtHeader.h.
Referenced by Clear(), getEventTag(), initialize(), and Print().
UInt_t TEvtHeader::m_flag1 [private] |
UInt_t TEvtHeader::m_flag2 [private] |
Int_t TEvtHeader::m_runId [private] |
Run number.
Definition at line 46 of file TEvtHeader.h.
Referenced by Clear(), getRunId(), initialize(), and Print().
UInt_t TEvtHeader::m_time [private] |