10#include <FairRootManager.h>
48 map<TString, CbmMCDataArray*>::const_iterator p;
53 map<TString, CbmMCDataObject*>::const_iterator o;
77 if (number < 0)
return -1111;
80 for (i = n; i <= number; i++)
92 map<TString, CbmMCDataArray*>::const_iterator p;
93 map<TString, CbmMCDataObject*>::const_iterator o;
96 p->second->FinishEvent();
98 o->second->FinishEvent();
105 FairRootManager* fManager = FairRootManager::Instance();
106 if (!fManager)
return kFATAL;
108 fManager->Register(
"MCDataManager",
"Stack", (TNamed*)
this, kFALSE);
119 map<Int_t, Int_t>::const_iterator p;
122 LOG(info) <<
"InitBranch: " << nm <<
" " <<
fActive[nm];
133 if (FairRootManager::Instance()->
GetObject(brname) !=
nullptr) {
136 LOG(info) <<
"InitBranch: " << nm <<
" " << arr;
139 LOG(info) <<
"InitBranch: " << nm <<
" could not be initialised.";
151 map<Int_t, Int_t>::const_iterator p;
154 LOG(info) <<
"InitBranch: " << nm <<
" " <<
fActiveObj[nm];
167 LOG(info) <<
"InitBranch: " << nm <<
" " << arr;
ClassImp(CbmConverterManager)
Access to a MC data branch for time-based analysis.
void AddFriend(Int_t chainNum1, Int_t chainNum2)
Task class creating and managing CbmMCDataArray objects.
std::vector< std::list< TString > > fFileList
std::map< TString, CbmMCDataArray * > fActive
Array of filename chains.
virtual void FinishEvent()
Int_t AddFileToChain(const char *fileName, Int_t chainNumber)
virtual InitStatus Init()
std::map< TString, CbmMCDataObject * > fActiveObj
Int_t fLegacy
If true, use FairRootManager in event-by-event mode.
std::map< Int_t, Int_t > fFriends
CbmMCDataObject * GetObject(const char *name)
CbmMCDataArray * InitBranch(const char *name)
Int_t AddFile(const char *fileName)
Access to a MC data branch for time-based analysis.
void AddFriend(Int_t chainNum1, Int_t chainNum2)