BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
THltEvent.cxx
Go to the documentation of this file.
2#include "TCollection.h" // Declares TIter
3
5
6// Allocate the TObjArray just once
7TObjArray *THltEvent::s_staticHltRawCol = 0;
8//THltInf *THltEvent::s_staticHltInf = 0;
9//TDstHltInf *THltEvent::s_staticDstHltInf = 0;
10THltInf *THltEvent::s_staticHltInf = 0;
11TDstHltInf *THltEvent::s_staticDstHltInf = 0;
12
13//***************************************************************
15{
16 if (! s_staticHltRawCol ) {
17 s_staticHltRawCol = new TObjArray();
18 }
19 if (! s_staticHltInf ) {
20 s_staticHltInf = new THltInf();
21 }
22 if (! s_staticDstHltInf ) {
23 s_staticDstHltInf = new TDstHltInf();
24 }
25
26 m_hltRawCol = s_staticHltRawCol;
27 m_hltInf = s_staticHltInf;
28 m_dstHltInf = s_staticDstHltInf;
29
30 Clear();
31}
32
33//*****************************************************************
35 if(m_hltRawCol == s_staticHltRawCol ) s_staticHltRawCol = 0;
36 m_hltRawCol->Delete();
37 delete m_hltRawCol;
38 m_hltRawCol = 0;
39
40 if(m_hltInf == s_staticHltInf ) s_staticHltInf = 0;
41 delete m_hltInf;
42 m_hltInf = 0;
43
44 if(m_dstHltInf == s_staticDstHltInf ) s_staticDstHltInf = 0;
45 delete m_dstHltInf;
46 m_dstHltInf = 0;
47}
48
49//*****************************************************************
50//o void THltEvent::initialize(Bool_t fromMc){
51//o m_fromMc = fromMc;
52//o }
53
54//*****************************************************************
55void THltEvent::Clear(Option_t *option) {
56
57}
58
59//*****************************************************************************
60void THltEvent::Print(Option_t *option) const {
61 TObject::Print(option);
62}
63
64///HltRaw
66 m_hltRawCol->Add(hltRaw);
67}
68const THltRaw* THltEvent::getHltRaw(Int_t i) const {
69 if (Int_t(i) >= m_hltRawCol->GetEntries())
70 return 0;
71 return (THltRaw*)m_hltRawCol->At(i);
72}
73const TObjArray* THltEvent::getHltRawCol() const {
74 return (TObjArray*)m_hltRawCol ;
75}
77 m_hltInf = hltInf;
78}
80 return (THltInf*)m_hltInf ;
81}
83 m_dstHltInf = hltInf;
84}
86 return (TDstHltInf*)m_dstHltInf ;
87}
ClassImp(TBossFullEvent) TBossFullEvent
void Clear(Option_t *option="")
Definition: THltEvent.cxx:55
const TObjArray * getHltRawCol() const
Definition: THltEvent.cxx:73
void addHltRaw(THltRaw *hltRaw)
HltRaw.
Definition: THltEvent.cxx:65
void addDstHltInf(TDstHltInf *dstHltInf)
Definition: THltEvent.cxx:82
const TDstHltInf * getDstHltInf() const
Definition: THltEvent.cxx:85
void Print(Option_t *option="") const
Definition: THltEvent.cxx:60
void addHltInf(THltInf *hltInf)
Definition: THltEvent.cxx:76
virtual ~THltEvent()
Definition: THltEvent.cxx:34
const THltInf * getHltInf() const
Definition: THltEvent.cxx:79
const THltRaw * getHltRaw(int i) const
Definition: THltEvent.cxx:68
Definition: THltInf.h:9
Definition: THltRaw.h:7