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