CbmRoot
|
Task class creating and managing CbmMCDataArray objects. More...
#include <CbmMCDataManager.h>
Public Member Functions | |
CbmMCDataManager () | |
CbmMCDataManager (const char *name, Int_t legacy=0) | |
~CbmMCDataManager () | |
Int_t | AddFile (const char *fileName) |
Int_t | AddFileToChain (const char *fileName, Int_t chainNumber) |
void | AddFriend (Int_t chainNum1, Int_t chainNum2) |
virtual void | Exec (Option_t *) |
virtual void | FinishEvent () |
virtual InitStatus | Init () |
CbmMCDataArray * | InitBranch (const char *name) |
CbmMCDataObject * | GetObject (const char *name) |
Private Member Functions | |
ClassDef (CbmMCDataManager, 1) | |
Private Attributes | |
Int_t | fLegacy |
If true, use FairRootManager in event-by-event mode. More... | |
std::vector< std::list< TString > > | fFileList |
std::map< TString, CbmMCDataArray * > | fActive |
Array of filename chains. More... | |
std::map< TString, CbmMCDataObject * > | fActiveObj |
std::map< Int_t, Int_t > | fFriends |
Task class creating and managing CbmMCDataArray objects.
Definition at line 27 of file CbmMCDataManager.h.
CbmMCDataManager::CbmMCDataManager | ( | ) |
Default constructor
Definition at line 15 of file CbmMCDataManager.cxx.
References fActive, fActiveObj, fFileList, and fFriends.
CbmMCDataManager::CbmMCDataManager | ( | const char * | name, |
Int_t | legacy = 0 |
||
) |
Standard constructor
name | Task name |
legacy | If true, run in legacy mode (using FairRootManager) |
Definition at line 27 of file CbmMCDataManager.cxx.
References fActive, fActiveObj, fFileList, and fFriends.
CbmMCDataManager::~CbmMCDataManager | ( | ) |
Int_t CbmMCDataManager::AddFile | ( | const char * | fileName | ) |
Add a MC input file
fileName | Input file name @value Running number of input (chain) |
A new input chain will be started with this file.
Definition at line 56 of file CbmMCDataManager.cxx.
References fFileList.
Int_t CbmMCDataManager::AddFileToChain | ( | const char * | fileName, |
Int_t | chainNumber | ||
) |
Add a MC file to an existing input chain
fileName | Input file name |
chainNumber | Number of input chain to which the file will be added @value Size of input chain (number of files in chain) |
Definition at line 66 of file CbmMCDataManager.cxx.
|
inline |
Make TChain number chainNum2 friend of TChain number chainNum2
chainNum1 | a number of chain for which AddFriend is called |
chainNum2 | number of chain which became a friend |
Definition at line 64 of file CbmMCDataManager.h.
References fFriends.
|
private |
|
inlinevirtual |
Execution (empty; just to match FairTask structure)
Definition at line 69 of file CbmMCDataManager.h.
|
virtual |
End of event action
Definition at line 83 of file CbmMCDataManager.cxx.
References fActive, and fActiveObj.
CbmMCDataObject * CbmMCDataManager::GetObject | ( | const char * | name | ) |
Create a CbmMCDataObject for a given branch name
branchName | Name of data branch @value Pointer to CbmMCDataObject object for this branch |
Definition at line 137 of file CbmMCDataManager.cxx.
References CbmMCDataObject::AddFriend(), fActiveObj, fFileList, fFriends, and fLegacy.
Referenced by CbmMuchToTofVectors::Init(), CbmTrdToTofVector::Init(), CbmRichRecoTbQa::Init(), CbmKFParticleFinderQA::Init(), CbmMuchFindVectorsGem::Init(), CbmTrdFindVectors::Init(), CbmKFParticleFinder::Init(), CbmRichRingFinderIdeal::Init(), CbmKFParticleFinderPID::Init(), CbmRichUrqmdTest::Init(), CbmBuildEventsFromTracksIdeal::Init(), CbmKFTrackQA::Init(), CbmEventBuilderQA::Init(), CbmRichGeoTest::Init(), CbmL1::Init(), InitBranch(), CbmMatchRecoToMC::ReadAndCreateDataBranches(), CbmLitClusteringQa::ReadDataBranches(), CbmLitTofQa::ReadDataBranches(), CbmLitFitQa::ReadDataBranches(), CbmLitMCTrackCreator::ReadDataBranches(), CbmLitTrackingQa::ReadDataBranches(), and CbmTofAnaTestbeam::RegisterInputs().
|
virtual |
Initialisation
Definition at line 95 of file CbmMCDataManager.cxx.
CbmMCDataArray * CbmMCDataManager::InitBranch | ( | const char * | name | ) |
Create a CbmMCDataArray for a given branch name
branchName | Name of data branch @value Pointer to CbmMCDataArray object for this branch |
Definition at line 106 of file CbmMCDataManager.cxx.
References CbmMCDataArray::AddFriend(), fActive, fFileList, fFriends, fLegacy, and GetObject().
Referenced by CbmBinnedDebug::CbmBinnedDebug(), CbmTofHitFinderTBQA::Init(), CbmMuchToTofVectors::Init(), CbmBinnedTrackerQANew::Init(), CbmTrdToTofVector::Init(), CbmBinnedTrackerQA::Init(), CbmRichRecoTbQa::Init(), CbmKFParticleFinderQA::Init(), CbmMuchFindVectorsGem::Init(), CbmTrdFindVectors::Init(), CbmKFParticleFinder::Init(), CbmKFParticleFinderPID::Init(), CbmRichRingFinderIdeal::Init(), CbmStsFindTracksQa::Init(), CbmRichUrqmdTest::Init(), CbmBuildEventsFromTracksIdeal::Init(), CbmKFTrackQA::Init(), LxTBTrdFinder::Init(), CbmEventBuilderQA::Init(), CbmRichGeoTest::Init(), LxTBMLFinder::Init(), LxTBFinder::Init(), CbmGlobalTrackingQA::Init(), CbmL1::Init(), CbmHadronAnalysis::Init(), CbmMatchRecoToMC::ReadAndCreateDataBranches(), CbmLitClusteringQa::ReadDataBranches(), CbmLitTofQa::ReadDataBranches(), CbmLitFitQa::ReadDataBranches(), CbmLitMCTrackCreator::ReadDataBranches(), CbmLitTrackingQa::ReadDataBranches(), CbmRecoQa::record(), and CbmTofAnaTestbeam::RegisterInputs().
|
private |
Array of filename chains.
List of created CbmMCDataArrays
Definition at line 99 of file CbmMCDataManager.h.
Referenced by CbmMCDataManager(), FinishEvent(), InitBranch(), and ~CbmMCDataManager().
|
private |
List of created CbmMCDataObjects
Definition at line 101 of file CbmMCDataManager.h.
Referenced by CbmMCDataManager(), FinishEvent(), GetObject(), and ~CbmMCDataManager().
|
private |
Array of chains, each with a list of file names
Definition at line 96 of file CbmMCDataManager.h.
Referenced by AddFile(), AddFileToChain(), CbmMCDataManager(), GetObject(), and InitBranch().
|
private |
Map of friends
Definition at line 103 of file CbmMCDataManager.h.
Referenced by AddFriend(), CbmMCDataManager(), GetObject(), and InitBranch().
|
private |
If true, use FairRootManager in event-by-event mode.
Definition at line 93 of file CbmMCDataManager.h.
Referenced by GetObject(), and InitBranch().