BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
TEvtHeader.cxx
Go to the documentation of this file.
2#include <iostream>
3#include "TCollection.h" // Declares TIter
4
6
7// Allocate the TObjArray just once
8
9
10//***************************************************************
12 :m_eventId(-1),m_runId(-1),m_time(0),m_eventTag(0),m_flag1(0),m_flag2(0),
13 m_etsT1(0),m_etsT2(0)
14{
15
16}
17
18//*****************************************************************
22
23//*****************************************************************
24void TEvtHeader::initialize(Int_t event, Int_t runId, UInt_t eventTag){
25 m_eventId = event;
26 m_runId = runId;
27 m_eventTag=eventTag;
28}
29
30//*****************************************************************
31void TEvtHeader::Clear(Option_t *option) {
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}
40
41//*****************************************************************************
42void TEvtHeader::Print(Option_t *option) const {
43 TObject::Print(option);
44 std::cout.precision(2);
45 std::cout << "Run, Event, TotEvtNum, EventTag: " << m_runId << ", " << m_eventId<<", "<< std::hex<<m_eventTag<<std::dec<<std::endl;
46}
47
ClassImp(TEvtHeader) TEvtHeader
Definition TEvtHeader.cxx:5
void initialize(Int_t Id, Int_t runId, UInt_t evenTag)
virtual ~TEvtHeader()
void Print(Option_t *option="") const
void Clear(Option_t *option="")