|
CbmRoot
|
#include <Run.h>
Public Member Functions | |
| Run () | |
| Constructor. | |
| virtual | ~Run () |
| Destructor. | |
| void | AddTask (FairTask *task) |
| Add a task to the run. | |
| void | AllowOverwrite () |
| Allow overwriting if output file already exists. | |
| void | Exec () |
| Run reconstruction. | |
| const Config & | GetConfig () const |
| Settings object. | |
| bool | IsDataPresent (ECbmModuleId detector) const |
| Presence of input digi data. | |
| void | LoadConfig (const char *fileName) |
| Set configuration file name. | |
| void | SetConfig (const Config &config) |
| Set configuration. | |
| void | SetGeoSetupTag (const char *tag) |
| Set geometry setup tag. | |
| void | SetOutput (const char *fileName) |
| Set output file name. | |
| void | SetTraFiles (const std::vector< std::string > files) |
| Set transport input files. | |
| void | SetRawFile (const char *fileName) |
| Set digitizazion (raw) file name. | |
| void | SetParFile (const char *fileName) |
| Set parameter file name. | |
| void | SetRecoFile (const char *fileName) |
| Set reconstruction file name. | |
Public Attributes | |
| Config | fConfig = {} |
| std::set< ECbmModuleId > | fDataPresent = {} |
Private Member Functions | |
| Run (const Run &)=delete | |
| Copy constructor forbidden. | |
| Run | operator= (const Run &)=delete |
| Assignment operator forbidden. | |
| bool | CheckFile (const char *fileName) |
| Check existence of a file. | |
| void | CheckRecoBranch (TTree *tree, ECbmModuleId detector) |
| Check and mark presence of reco branches. | |
| void | CheckInputBranches (FairFileSource *source) |
| Check the presence of reco input branches. | |
| void | CreateTopology () |
| Create the reconstruction task topology (chain) | |
Private Attributes | |
| FairRunAna | fRun {} |
| TString | fOutput = "" |
| std::vector< TString > | fTra |
| TString | fRaw = "" |
| TString | fPar = "" |
| TString | fReco = "" |
| TString | fSetupTag = "" |
| CbmSetup * | fSetup = nullptr |
| bool | fOverwrite = false |
Definition at line 31 of file analysis/common/analysis_tree_converter/steer/Run.h.
| cbm::atconverter::Run::Run | ( | ) |
Constructor.
Definition at line 41 of file analysis/common/analysis_tree_converter/steer/Run.cxx.
Referenced by operator=(), and Run().
|
virtual |
Destructor.
Definition at line 46 of file analysis/common/analysis_tree_converter/steer/Run.cxx.
|
privatedelete |
Copy constructor forbidden.
References Run().
| void cbm::atconverter::Run::AddTask | ( | FairTask * | task | ) |
Add a task to the run.
Definition at line 51 of file analysis/common/analysis_tree_converter/steer/Run.cxx.
|
inline |
Allow overwriting if output file already exists.
Definition at line 47 of file analysis/common/analysis_tree_converter/steer/Run.h.
References fOverwrite.
|
private |
Check existence of a file.
| fileName | File name (absolute or relative to current directory) |
Definition at line 60 of file analysis/common/analysis_tree_converter/steer/Run.cxx.
References buffer.
Referenced by Exec().
|
private |
Check the presence of reco input branches.
Definition at line 82 of file analysis/common/analysis_tree_converter/steer/Run.cxx.
References CheckRecoBranch(), kMvd, and kNofSystems.
Referenced by Exec().
|
private |
Check and mark presence of reco branches.
| tree | Pointer to ROOT tree |
| detector | ECbmModuleId |
Definition at line 69 of file analysis/common/analysis_tree_converter/steer/Run.cxx.
References fDataPresent, and cbm::util::ToString().
Referenced by CheckInputBranches().
|
private |
Create the reconstruction task topology (chain)
Definition at line 96 of file analysis/common/analysis_tree_converter/steer/Run.cxx.
References fConfig, fOutput, fTra, cbm::atconverter::TaskFactory::RegisterCaTracking(), cbm::atconverter::TaskFactory::RegisterConverterManager(), cbm::atconverter::TaskFactory::RegisterMCDataManager(), cbm::atconverter::TaskFactory::RegisterTrackMatching(), and cbm::atconverter::TaskFactory::RegisterTrdPid().
Referenced by Exec().
| void cbm::atconverter::Run::Exec | ( | ) |
Run reconstruction.
Definition at line 111 of file analysis/common/analysis_tree_converter/steer/Run.cxx.
References CheckFile(), CheckInputBranches(), CreateTopology(), fConfig, fOutput, fOverwrite, fPar, fRaw, fReco, fRun, fSetup, fSetupTag, fTra, and CbmSetup::Instance().
|
inline |
Settings object.
Definition at line 55 of file analysis/common/analysis_tree_converter/steer/Run.h.
References fConfig.
|
inline |
Presence of input digi data.
| detector | Detector data to check |
Definition at line 62 of file analysis/common/analysis_tree_converter/steer/Run.h.
References fDataPresent.
| void cbm::atconverter::Run::LoadConfig | ( | const char * | fileName | ) |
Set configuration file name.
| fileName | Configuration file name |
Legacy interface for running from ROOT prompt. In the executable, the config is read in by the application.
Definition at line 206 of file analysis/common/analysis_tree_converter/steer/Run.cxx.
References fConfig.
Assignment operator forbidden.
References Run().
|
inline |
Set configuration.
| fileName | Configuration object |
Definition at line 77 of file analysis/common/analysis_tree_converter/steer/Run.h.
References fConfig.
|
inline |
Set geometry setup tag.
| tag | Geometry setup tag |
Definition at line 83 of file analysis/common/analysis_tree_converter/steer/Run.h.
References fSetupTag.
|
inline |
Set output file name.
| fileName | Output file name |
Definition at line 89 of file analysis/common/analysis_tree_converter/steer/Run.h.
References fOutput.
|
inline |
Set parameter file name.
| fileName | Parameter file name |
Definition at line 107 of file analysis/common/analysis_tree_converter/steer/Run.h.
References fPar.
|
inline |
Set digitizazion (raw) file name.
| fileName | Digitization file name |
Definition at line 101 of file analysis/common/analysis_tree_converter/steer/Run.h.
References fRaw.
|
inline |
Set reconstruction file name.
| fileName | Reconstruction file name |
Definition at line 113 of file analysis/common/analysis_tree_converter/steer/Run.h.
References fReco.
| void cbm::atconverter::Run::SetTraFiles | ( | const std::vector< std::string > | files | ) |
Set transport input files.
| files | Vector of transport input file names |
Definition at line 221 of file analysis/common/analysis_tree_converter/steer/Run.cxx.
References fTra.
| Config cbm::atconverter::Run::fConfig = {} |
Definition at line 159 of file analysis/common/analysis_tree_converter/steer/Run.h.
Referenced by CreateTopology(), Exec(), GetConfig(), LoadConfig(), and SetConfig().
| std::set<ECbmModuleId> cbm::atconverter::Run::fDataPresent = {} |
Definition at line 160 of file analysis/common/analysis_tree_converter/steer/Run.h.
Referenced by CheckRecoBranch(), and IsDataPresent().
|
private |
Definition at line 149 of file analysis/common/analysis_tree_converter/steer/Run.h.
Referenced by CreateTopology(), Exec(), and SetOutput().
|
private |
Definition at line 156 of file analysis/common/analysis_tree_converter/steer/Run.h.
Referenced by AllowOverwrite(), and Exec().
|
private |
Definition at line 152 of file analysis/common/analysis_tree_converter/steer/Run.h.
Referenced by Exec(), and SetParFile().
|
private |
Definition at line 151 of file analysis/common/analysis_tree_converter/steer/Run.h.
Referenced by Exec(), and SetRawFile().
|
private |
Definition at line 153 of file analysis/common/analysis_tree_converter/steer/Run.h.
Referenced by Exec(), and SetRecoFile().
|
private |
Definition at line 148 of file analysis/common/analysis_tree_converter/steer/Run.h.
|
private |
Definition at line 155 of file analysis/common/analysis_tree_converter/steer/Run.h.
Referenced by Exec().
|
private |
Definition at line 154 of file analysis/common/analysis_tree_converter/steer/Run.h.
Referenced by Exec(), and SetGeoSetupTag().
|
private |
Definition at line 150 of file analysis/common/analysis_tree_converter/steer/Run.h.
Referenced by CreateTopology(), Exec(), and SetTraFiles().