00001 /* Generated by Together */ 00002 00003 #include "TCosyJan12DetectorEvent.h" 00004 #include "TFiberHodEvent.h" 00005 #include "TBeamMonitorEvent.h" 00006 #include "STS/TSTSEvent.h" 00007 #include "GEM/TGEMEvent.h" 00008 00009 #include "TGo4Version.h" 00010 #if __GO4BUILDVERSION__ > 40502 00011 #include "go4iostream.h" 00012 #else 00013 #include "Riostream.h" 00014 #endif 00015 00016 TCosyJan12DetectorEvent::TCosyJan12DetectorEvent(const char* name) : 00017 TCBMBeamtimeEvent(name) 00018 { 00019 cout << "**** TCosyJan12DetectorEvent: Create instance " << name << endl; 00020 // here we compose event from subevents: 00021 Short_t subid=0; 00022 AddSubEvent(new TFiberHodEvent("Hodo1", subid++)); 00023 AddSubEvent(new TFiberHodEvent("Hodo2", subid++)); 00024 AddSubEvent(new TBeamMonitorEvent("BEAM", subid++)); 00025 AddSubEvent(new TSTSEvent("STS", subid++)); 00026 AddSubEvent(new TGEMEvent("GEM", subid++)); 00027 } 00028 00029 00030 TCosyJan12DetectorEvent::TCosyJan12DetectorEvent() : 00031 TCBMBeamtimeEvent() 00032 { 00033 } 00034 00035 TCosyJan12DetectorEvent::~TCosyJan12DetectorEvent() 00036 { 00037 } 00038 00039 00040 00041 void TCosyJan12DetectorEvent::Clear(Option_t *t) 00042 { 00043 TCBMBeamtimeEvent::Clear(); // will clear all subevents 00044 00045 // put additional clear actions here: 00046 00047 }