74 #include "StRootEventManager.hh"
80 StRootEventManager::~StRootEventManager() { }
83 StRootEventManager::openEvent(
const char* name)
87 if (!mCurrentChain)
return oocError;
88 St_DataSet *dsDst = mCurrentChain->GetDataSet(name);
89 if (!dsDst)
return oocError;
96 StRootEventManager::readEvent() {
return oocSuccess;}
98 void StRootEventManager::closeEvent() { }
100 void StRootEventManager::setup() { }
102 void StRootEventManager::shutdown() { }
104 #define RETURN_TABLE(TABLE_TYPE,TABLE_NAME) \
105 _NAME2_(TABLE_TYPE,_st)* StRootEventManager::_NAME2_(returnTable_,TABLE_TYPE)(long& nentries) const\
108 _NAME2_(TABLE_TYPE,_st)* table = NULL;\
109 _NAME2_(St_,TABLE_TYPE) *tableWrap;\
110 const char *nm = _QUOTE_(TABLE_NAME);\
111 const char *nt = _QUOTE_(TABLE_TYPE);\
112 St_DataSetIter *Dst = (St_DataSetIter*)&mDst;\
113 if (! Dst->Pwd()) {nentries = 0; return table;}\
114 tableWrap = (_NAME2_(St_,TABLE_TYPE) *) (*Dst)[nt];\
115 if (!tableWrap && nm[0]!='-') tableWrap = (_NAME2_(St_,TABLE_TYPE) *) (*Dst)[nm];\
117 table = tableWrap->GetTable();\
118 nentries = tableWrap->GetNRows();\
122 LOG_INFO << "StRootEventManager: Table type " << nt << \
123 " - name " << nm << " not found in DataSet " << Dst->Pwd()->GetName() << endm;}\
130 RETURN_TABLE(dst_TrgDet,TrgDet)
131 RETURN_TABLE(dst_L0_Trigger,L0_Trigger)
132 RETURN_TABLE(dst_L1_Trigger,L1_Trigger)
virtual void Reset(TDataSet *l=0, Int_t depth=0)