• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

onlinemonitor/trbmonitor/TTrbEvent.cxx (r4864/r3721)

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()) // only clear if real data from previous event exists
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       //modname.Form("TRB%02d%02d",id,sp);// branch names should be unique in complete tree!
00048       modname.Form("TRB%02d", sp); // however, for better readibility of tree...
00049       addEventElement(new TTrbData(modname.Data(), sp));
00050    }
00051 }
00052 
00053 TTrbEvent::~TTrbEvent ()
00054 {
00055 }

Generated on Tue Dec 10 2013 04:52:23 for ROCsoft by  doxygen 1.7.1