Go to the documentation of this file.
6 #include <FairLogger.h>
7 #include <FairRootManager.h>
43 map<TString, CbmMCDataArray*>::const_iterator p;
48 map<TString, CbmMCDataObject*>::const_iterator o;
70 if (number < 0)
return -1111;
73 for (
i = n;
i <= number;
i++)
84 map<TString, CbmMCDataArray*>::const_iterator p;
85 map<TString, CbmMCDataObject*>::const_iterator o;
88 p->second->FinishEvent();
90 o->second->FinishEvent();
96 FairRootManager* fManager = FairRootManager::Instance();
97 if (!fManager)
return kFATAL;
99 fManager->Register(
"MCDataManager",
"Stack", (TNamed*)
this, kFALSE);
109 map<Int_t, Int_t>::const_iterator p;
112 LOG(info) <<
"InitBranch: " << nm <<
" " <<
fActive[nm];
123 if (FairRootManager::Instance()->
GetObject(brname) !=
nullptr) {
126 LOG(info) <<
"InitBranch: " << nm <<
" " << arr;
129 LOG(info) <<
"InitBranch: " << nm <<
" could not be initialised.";
140 map<Int_t, Int_t>::const_iterator p;
143 LOG(info) <<
"InitBranch: " << nm <<
" " <<
fActiveObj[nm];
155 LOG(info) <<
"InitBranch: " << nm <<
" " << arr;
std::map< Int_t, Int_t > fFriends
CbmMCDataObject * GetObject(const char *name)
void AddFriend(Int_t chainNum1, Int_t chainNum2)
std::map< TString, CbmMCDataObject * > fActiveObj
CbmMCDataArray * InitBranch(const char *name)
void AddFriend(Int_t chainNum1, Int_t chainNum2)
Access to a MC data branch for time-based analysis.
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
virtual InitStatus Init()
Int_t AddFileToChain(const char *fileName, Int_t chainNumber)
Task class creating and managing CbmMCDataArray objects.
std::map< TString, CbmMCDataArray * > fActive
Array of filename chains.
Access to a MC data branch for time-based analysis.
Int_t fLegacy
If true, use FairRootManager in event-by-event mode.
virtual void FinishEvent()
std::vector< std::list< TString > > fFileList
Int_t AddFile(const char *fileName)