Go to the documentation of this file.00001 #include "TTrbEvent.h"
00002
00003 #include "TGo4Log.h"
00004
00005 UInt_t TTrbEvent::ConfigTRBS[TRB_TDC3_NUMBOARDS] = SET_TRBS;
00006
00007 TTrbData::TTrbData (const char* name, Short_t id) :
00008 TGo4EventElement (name,name,id)
00009 {
00010 TGo4Log::Info("TTrbData: Create instance %s with composite id %d", name, id);
00011 }
00012
00013 TTrbData::TTrbData () :
00014 TGo4EventElement ()
00015 {
00016 }
00017
00018 TTrbData::~TTrbData ()
00019 {
00020 }
00021
00022 void TTrbData::Clear (Option_t *t)
00023 {
00024 if (IsValid())
00025 fHits.clear();
00026 SetValid(kFALSE);
00027 }
00028
00029
00030
00031 TTrbEvent::TTrbEvent () :
00032 TGo4CompositeEvent ()
00033 {
00034 }
00035
00036 TTrbEvent::TTrbEvent (const char* name, Short_t id) :
00037 TGo4CompositeEvent (name, name, id)
00038 {
00039 TGo4Log::Info("TTrbEvent: Create instance %s with composite id %d", name, id);
00040
00042 TString modname;
00043 for (int sp = 0; sp < TRB_TDC3_NUMBOARDS; ++sp) {
00045 if (TTrbEvent::ConfigTRBS[sp] == 0) continue;
00046
00047
00048 modname.Form("TRB%02d", sp);
00049 addEventElement(new TTrbData(modname.Data(), sp));
00050 }
00051 }
00052
00053 TTrbEvent::~TTrbEvent ()
00054 {
00055 }