00001 #include "TGsiAug12DetectorEvent.h" 00002 00003 #include "TFiberHodEvent.h" 00004 00005 #include "RPC/TRpcEvent.h" 00006 #include "PADRPC/TPadRpcEvent.h" 00007 #include "PLASTICS/TPlasticsEvent.h" 00008 #include "SCALERS/TScalersEvent.h" 00009 00010 #include "TGo4Version.h" 00011 #if __GO4BUILDVERSION__ > 40502 00012 #include "go4iostream.h" 00013 #else 00014 #include "Riostream.h" 00015 #endif 00016 00017 // New 00018 #include "GenericDefines.h" 00019 00020 TGsiAug12DetectorEvent::TGsiAug12DetectorEvent() : 00021 TCBMBeamtimeEvent() 00022 { 00023 } 00024 00025 TGsiAug12DetectorEvent::TGsiAug12DetectorEvent(const char* name) : 00026 TCBMBeamtimeEvent(name) 00027 { 00028 cout << "**** TGsiAug12DetectorEvent: Create instance " << name << endl; 00029 // here we compose event from subevents: 00030 Short_t subid=0; 00031 AddSubEvent(new TScalersEvent("SCALERS", subid++)); 00032 00033 // New 00034 for( UInt_t uRpcIndex = 0; uRpcIndex < NB_RPC; uRpcIndex++ ) 00035 AddSubEvent( new TRpcEvent( Form("RPC_%02d", uRpcIndex), subid++ ) ); 00036 for( UInt_t uPadRpcIndex = 0; uPadRpcIndex < NB_PAD_RPC; uPadRpcIndex++ ) 00037 AddSubEvent( new TPadRpcEvent( Form("PADRPC_%02d", uPadRpcIndex), subid++ ) ); 00038 for( UInt_t uPlasticIndex = 0; uPlasticIndex < NB_PLASTICS; uPlasticIndex++ ) 00039 AddSubEvent( new TPlasticsEvent( Form("PLASTICS_%02d", uPlasticIndex), subid++ ) ); 00040 } 00041 00042 TGsiAug12DetectorEvent::~TGsiAug12DetectorEvent() 00043 { 00044 } 00045 00046 void TGsiAug12DetectorEvent::Clear(Option_t *t) 00047 { 00048 TCBMBeamtimeEvent::Clear(t); // will clear all subevents 00049 00050 // put additional clear actions here: 00051 00052 }