CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
TTrigEvent.cxx
Go to the documentation of this file.
2#include "TCollection.h" // Declares TIter
3
5
6// Allocate the TObjArray just once
7TTrigData *TTrigEvent::s_staticTrigData = 0;
8
9//***************************************************************
11 : m_trigData(0)
12{
13 if (! s_staticTrigData ) {
14 s_staticTrigData = new TTrigData();
15 }
16
17 m_trigData = s_staticTrigData;
18
19 Clear();
20}
21
22//*****************************************************************
24 if(m_trigData == s_staticTrigData ) s_staticTrigData = 0;
25 delete m_trigData;
26 m_trigData = 0;
27}
28
29//*****************************************************************
30//o void TTrigEvent::initialize(Bool_t fromMc){
31//o m_fromMc = fromMc;
32//o }
33
34//*****************************************************************
35void TTrigEvent::Clear(Option_t *option) {
36
37}
38
39//*****************************************************************************
40void TTrigEvent::Print(Option_t *option) const {
41 TObject::Print(option);
42}
43
44///TrigData
46 m_trigData = trigData;
47}
48
49
51 return (TTrigData*)m_trigData ;
52}
ClassImp(TBossFullEvent) TBossFullEvent
const TTrigData * getTrigData() const
Definition: TTrigEvent.cxx:50
void Clear(Option_t *option="")
Definition: TTrigEvent.cxx:35
void addTrigData(TTrigData *trigData)
TrigData.
Definition: TTrigEvent.cxx:45
virtual ~TTrigEvent()
Definition: TTrigEvent.cxx:23
void Print(Option_t *option="") const
Definition: TTrigEvent.cxx:40