26#include <TGenericClassInfo.h>
52 if (entry.second)
delete entry.second;
63 return fBranches[systemId]->GetDigiMatch(index);
71 return fBranches[systemId]->GetNofDigis();
82 std::cout << std::endl << std::endl;
83 LOG(info) <<
"==================================================";
84 LOG(info) <<
"DigiManager: Initialising...";
97 LOG(info) <<
"Present branches:";
99 LOG(info) <<
" " << branch.second->ToString();
103 LOG(info) <<
"==================================================";
104 std::cout << std::endl << std::endl;
115 return fBranches[systemId]->HasMatches();
136 string className = Digi::GetClassName();
137 LOG(info) <<
"systemId= " << systemId <<
" className= " << className;
141 LOG(warn) <<
"DigiManager: Branch for system " << systemId <<
" is already set.";
147 string branchName {};
152 if (className.substr(0, 3) ==
"Cbm") branchName = className.substr(3);
154 branchName = className;
160 LOG(debug) <<
"DigiManager: Search branch " << branchName <<
" for class " << className <<
": successful";
164 LOG(debug) <<
"DigiManager: Search branch " << branchName <<
" for class " << className <<
": failed";
171 branchName =
"TofCalDigi";
174 LOG(info) <<
"DigiManager: Search branch " << branchName <<
" for class " << className <<
": successful";
178 LOG(info) <<
"DigiManager: Search branch " << branchName <<
" for class " << className <<
": failed";
183 branchName =
"CbmTofDigi";
186 LOG(info) <<
"DigiManager: Search branch " << branchName <<
" for class " << className <<
": successful";
190 LOG(info) <<
"DigiManager: Search branch " << branchName <<
" for class " << className <<
": failed";
195 branchName =
"CbmTofCalDigi";
ClassImp(CbmConverterManager)
@ kTof
Time-of-flight Detector.
Abstract base class for CBM digi branches.
virtual bool ConnectToTree()=0
Connect the branch to the ROOT tree.
Class template for CBM digi branches.
static std::map< ECbmModuleId, CbmDigiBranchBase * > fBranches
static Int_t GetNofDigis(ECbmModuleId systemId)
static Bool_t IsPresent(ECbmModuleId systemId)
Presence of a digi branch.
std::map< ECbmModuleId, std::string > fBranchNames
static Bool_t IsMatchPresent(ECbmModuleId systemId)
Presence of a digi match branch.
static Bool_t fUseMuchBeamTimeDigi
virtual ~CbmDigiManager()
static CbmDigiManager * fgInstance
InitStatus Init()
Initialisation.
static Bool_t fIsInitialised
const CbmMatch * GetMatch(ECbmModuleId systemId, UInt_t index) const
Get a match object.
void SetBranch()
Set a digi branch.