00001 #include "RootEventData/TTrigEvent.h" 00002 #include "TCollection.h" // Declares TIter 00003 00004 ClassImp(TTrigEvent) 00005 00006 // Allocate the TObjArray just once 00007 TTrigData *TTrigEvent::s_staticTrigData = 0; 00008 00009 //*************************************************************** 00010 TTrigEvent::TTrigEvent() 00011 : m_trigData(0) 00012 { 00013 if (! s_staticTrigData ) { 00014 s_staticTrigData = new TTrigData(); 00015 } 00016 00017 m_trigData = s_staticTrigData; 00018 00019 Clear(); 00020 } 00021 00022 //***************************************************************** 00023 TTrigEvent::~TTrigEvent() { 00024 if(m_trigData == s_staticTrigData ) s_staticTrigData = 0; 00025 delete m_trigData; 00026 m_trigData = 0; 00027 } 00028 00029 //***************************************************************** 00030 //o void TTrigEvent::initialize(Bool_t fromMc){ 00031 //o m_fromMc = fromMc; 00032 //o } 00033 00034 //***************************************************************** 00035 void TTrigEvent::Clear(Option_t *option) { 00036 00037 } 00038 00039 //***************************************************************************** 00040 void TTrigEvent::Print(Option_t *option) const { 00041 TObject::Print(option); 00042 } 00043 00045 void TTrigEvent::addTrigData(TTrigData * trigData){ 00046 m_trigData = trigData; 00047 } 00048 00049 00050 const TTrigData* TTrigEvent::getTrigData() const { 00051 return (TTrigData*)m_trigData ; 00052 }