00001 #include "TGsiAug12UnpackEvent.h" 00002 00003 #include "TGo4Log.h" 00004 00005 #include "TTriglogEvent.h" 00006 #include "MBSUNPACK/TMbsCrateEvent.h" 00007 #include "GET4V10/TGet4v1Event.h" 00008 #include "TEpicsEvent.h" 00009 00010 //*********************************************************** 00011 TGsiAug12UnpackEvent::TGsiAug12UnpackEvent() : 00012 TCBMBeamtimeEvent() 00013 { 00014 } 00015 00016 //*********************************************************** 00017 TGsiAug12UnpackEvent::TGsiAug12UnpackEvent(const char* name) : 00018 TCBMBeamtimeEvent(name) 00019 { 00020 TGo4Log::Info("TGsiAug12UnpackEvent: Create instance %s", name); 00021 // here we compose event from subevents: 00022 Short_t subid=0; 00023 AddSubEvent(new TTriglogEvent("TRIGLOG", subid++)); 00024 AddSubEvent(new TMbsCrateEvent("MBSCRATE", subid++)); 00025 AddSubEvent(new TGet4v1Event("ROCGET4V10", subid++)); 00026 AddSubEvent(new TEpicsEvent("EPICS", subid++)); 00027 } 00028 00029 //*********************************************************** 00030 TGsiAug12UnpackEvent::~TGsiAug12UnpackEvent() 00031 { 00032 } 00033 00034 //----------------------------------------------------------- 00035 void TGsiAug12UnpackEvent::Clear(Option_t *t) 00036 { 00037 TCBMBeamtimeEvent::Clear(t); // will clear all subevents 00038 00039 // put additional clear actions here: 00040 }