CGEM BOSS 6.6.5.g
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_eventTag(0),m_time(0),m_flag1(0),m_flag2(0)
13{
14
15}
16
17//*****************************************************************
19
20}
21
22//*****************************************************************
23void TEvtHeader::initialize(Int_t event, Int_t runId, UInt_t eventTag){
24 m_eventId = event;
25 m_runId = runId;
26 m_eventTag=eventTag;
27}
28
29//*****************************************************************
30void TEvtHeader::Clear(Option_t *option) {
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}
39
40//*****************************************************************************
41void TEvtHeader::Print(Option_t *option) const {
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}
46
ClassImp(TEvtHeader) TEvtHeader
Definition: TEvtHeader.cxx:5
void initialize(Int_t Id, Int_t runId, UInt_t evenTag)
Definition: TEvtHeader.cxx:23
virtual ~TEvtHeader()
Definition: TEvtHeader.cxx:18
void Print(Option_t *option="") const
Definition: TEvtHeader.cxx:41
void Clear(Option_t *option="")
Definition: TEvtHeader.cxx:30