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. | |
std::vector< std::list< TString > > | fFileList |
std::map< TString, CbmMCDataArray * > | fActive |
Array of filename chains. | |
std::map< TString, CbmMCDataObject * > | fActiveObj |
std::map< Int_t, Int_t > | fFriends |
Task class creating and managing CbmMCDataArray objects.
Definition at line 31 of file CbmMCDataManager.h.
CbmMCDataManager::CbmMCDataManager | ( | ) |
Default constructor
Definition at line 19 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 30 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 61 of file CbmMCDataManager.cxx.
References fFileList.
Referenced by cbm::atconverter::TaskFactory::RegisterMCDataManager().
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 72 of file CbmMCDataManager.cxx.
References fFileList.
|
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 68 of file CbmMCDataManager.h.
References fFriends.
|
private |
|
inlinevirtual |
Execution (empty; just to match FairTask structure)
Definition at line 71 of file CbmMCDataManager.h.
|
virtual |
End of event action
Definition at line 90 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 147 of file CbmMCDataManager.cxx.
References CbmMCDataObject::AddFriend(), fActiveObj, fFileList, fFriends, and fLegacy.
Referenced by CbmBuildEventsFromTracksIdeal::Init(), CbmEventBuilderQa::Init(), CbmHadronAnalysis::Init(), CbmKFParticleFinder::Init(), CbmKFParticleFinderQa::Init(), CbmKFTrackQa::Init(), CbmRecoQa::Init(), CbmRecoStsPixel::Init(), CbmRichRecoTbQa::Init(), CbmRichRingFinderIdeal::Init(), CbmSimEventHeaderConverter::Init(), CbmTrdHitProducerQa::Init(), InitBranch(), CbmMatchRecoToMC::ReadAndCreateDataBranches(), CbmLitClusteringQa::ReadDataBranches(), CbmLitFitQa::ReadDataBranches(), CbmLitMCTrackCreator::ReadDataBranches(), CbmLitTofQa::ReadDataBranches(), CbmLitTrackingQa::ReadDataBranches(), and CbmTofAnaTestbeam::RegisterInputs().
|
virtual |
Initialisation
Definition at line 103 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 115 of file CbmMCDataManager.cxx.
References CbmMCDataArray::AddFriend(), fActive, fFileList, fFriends, fLegacy, and GetObject().
Referenced by CbmBuildEventsFromTracksIdeal::Init(), CbmEventBuilderQa::Init(), CbmFsdHitsConverter::Init(), CbmHadronAnalysis::Init(), CbmKFParticleFinder::Init(), CbmKFParticleFinderQa::Init(), CbmKFTrackQa::Init(), CbmMuchDigitizerQa::Init(), CbmMuchHitFinderQa::Init(), CbmMuchTransportQa::Init(), CbmRecoQaTask::Init(), CbmRecoStsPixel::Init(), CbmRichRecoTbQa::Init(), CbmRichRingFinderIdeal::Init(), CbmSimTracksConverter::Init(), CbmStsFindTracksQa::Init(), CbmTofHitFinderTBQa::Init(), CbmTofHitsConverter::Init(), CbmTrackingTrdQa::Init(), CbmTrdHitProducerQa::Init(), Cbm::InitOrFatalMc(), CbmMatchRecoToMC::ReadAndCreateDataBranches(), CbmLitClusteringQa::ReadDataBranches(), CbmLitFitQa::ReadDataBranches(), CbmLitMCTrackCreator::ReadDataBranches(), CbmLitTofQa::ReadDataBranches(), CbmLitTrackingQa::ReadDataBranches(), CbmRecoQa::record(), CbmTofAnaTestbeam::RegisterInputs(), and CbmTrdCalibTracker::ReInit().
|
private |
Array of filename chains.
List of created CbmMCDataArrays
Definition at line 101 of file CbmMCDataManager.h.
Referenced by CbmMCDataManager(), CbmMCDataManager(), FinishEvent(), InitBranch(), and ~CbmMCDataManager().
|
private |
List of created CbmMCDataObjects
Definition at line 103 of file CbmMCDataManager.h.
Referenced by CbmMCDataManager(), CbmMCDataManager(), FinishEvent(), GetObject(), and ~CbmMCDataManager().
|
private |
Array of chains, each with a list of file names
Definition at line 98 of file CbmMCDataManager.h.
Referenced by AddFile(), AddFileToChain(), CbmMCDataManager(), CbmMCDataManager(), GetObject(), and InitBranch().
|
private |
Map of friends
Definition at line 105 of file CbmMCDataManager.h.
Referenced by AddFriend(), CbmMCDataManager(), CbmMCDataManager(), GetObject(), and InitBranch().
|
private |
If true, use FairRootManager in event-by-event mode.
Definition at line 95 of file CbmMCDataManager.h.
Referenced by GetObject(), and InitBranch().