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