21 #include <TGenericClassInfo.h>
33 std::map<ECbmModuleId, CbmDigiBranchBase*>();
47 if (entry.second)
delete entry.second;
58 return fBranches[systemId]->GetDigiMatch(index);
65 return fBranches[systemId]->GetNofDigis();
75 std::cout << std::endl << std::endl;
76 LOG(info) <<
"==================================================";
77 LOG(info) <<
"DigiManager: Initialising...";
79 SetBranch<CbmMvdDigi>();
80 SetBranch<CbmStsDigi>();
81 SetBranch<CbmRichDigi>();
83 SetBranch<CbmMuchBeamTimeDigi>();
85 SetBranch<CbmMuchDigi>();
86 SetBranch<CbmTrdDigi>();
87 SetBranch<CbmTofDigi>();
88 SetBranch<CbmPsdDigi>();
89 LOG(info) <<
"Present branches:";
91 LOG(info) <<
" " << branch.second->ToString();
95 LOG(info) <<
"==================================================";
96 std::cout << std::endl << std::endl;
106 return fBranches[systemId]->HasMatches();
125 string className = Digi::GetClassName();
129 className =
"CbmMuchBeamTimeDigi";
133 LOG(warn) <<
"DigiManager: Branch for system " << systemId
134 <<
" is already set.";
140 string branchName {};
145 if (className.substr(0, 3) ==
"Cbm")
146 branchName = className.substr(3);
148 branchName = className;
154 LOG(info) <<
"DigiManager: Search branch " << branchName <<
" for class "
155 << className <<
": successful";
158 LOG(info) <<
"DigiManager: Search branch " << branchName <<
" for class "
159 << className <<
": failed";
166 branchName =
"TofCalDigi";
169 LOG(info) <<
"DigiManager: Search branch " << branchName
170 <<
" for class " << className <<
": successful";
173 LOG(info) <<
"DigiManager: Search branch " << branchName
174 <<
" for class " << className <<
": failed";
179 branchName =
"CbmTofDigi";
182 LOG(info) <<
"DigiManager: Search branch " << branchName
183 <<
" for class " << className <<
": successful";
186 LOG(info) <<
"DigiManager: Search branch " << branchName
187 <<
" for class " << className <<
": failed";
192 branchName =
"CbmTofCalDigi";