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 TGsiAug12DetectorEvent::TGsiAug12DetectorEvent() : 00018 TCBMBeamtimeEvent() 00019 { 00020 } 00021 00022 TGsiAug12DetectorEvent::TGsiAug12DetectorEvent(const char* name) : 00023 TCBMBeamtimeEvent(name) 00024 { 00025 cout << "**** TGsiAug12DetectorEvent: Create instance " << name << endl; 00026 // here we compose event from subevents: 00027 Short_t subid=0; 00028 AddSubEvent(new TRpcEvent("RPC_HD", subid++)); 00029 AddSubEvent(new TRpcEvent("RPC_BUC_REF", subid++)); 00030 AddSubEvent(new TRpcEvent("RPC_BUC_MOD1", subid++)); 00031 AddSubEvent(new TRpcEvent("RPC_BUC_MOD2", subid++)); 00032 AddSubEvent(new TRpcEvent("RPC_BUC_MOD3", subid++)); 00033 AddSubEvent(new TRpcEvent("RPC_BUC_MOD4", subid++)); 00034 AddSubEvent(new TPadRpcEvent("PADRPC", subid++)); 00035 AddSubEvent(new TPlasticsEvent("PLASTICS", subid++)); 00036 AddSubEvent(new TScalersEvent("SCALERS", subid++)); 00037 } 00038 00039 TGsiAug12DetectorEvent::~TGsiAug12DetectorEvent() 00040 { 00041 } 00042 00043 void TGsiAug12DetectorEvent::Clear(Option_t *t) 00044 { 00045 TCBMBeamtimeEvent::Clear(t); // will clear all subevents 00046 00047 // put additional clear actions here: 00048 00049 }