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