|
CbmRoot
|
#include <Run.h>
Public Member Functions | |
| Run () | |
| Constructor. | |
| virtual | ~Run () |
| Destructor. | |
| void | AllowOverwrite () |
| Allow overwriting if output file already exists. | |
| void | Exec () |
| Run digitization. | |
| const Config & | GetConfig () const |
| Settings object. | |
| std::string | GetFileName (const TString file) |
| Get file name without ending. | |
| 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 file name. | |
| void | SetParFile (const char *fileName) |
| Set parameter file name. | |
Public Attributes | |
| Config | fConfig = {} |
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. | |
Private Attributes | |
| CbmDigitization | fRun {} |
| TString | fOutput = "" |
| std::vector< TString > | fTra |
| TString | fPar = "" |
| TString | fSetupTag = "" |
| CbmSetup * | fSetup = nullptr |
| bool | fOverwrite = false |
Definition at line 29 of file sim/response/steer/Run.h.
| cbm::sim::digitization::Run::Run | ( | ) |
Constructor.
Definition at line 35 of file sim/response/steer/Run.cxx.
Referenced by operator=(), and Run().
|
virtual |
Destructor.
Definition at line 40 of file sim/response/steer/Run.cxx.
|
privatedelete |
Copy constructor forbidden.
References Run().
|
inline |
Allow overwriting if output file already exists.
Definition at line 41 of file sim/response/steer/Run.h.
References fOverwrite.
|
private |
Check existence of a file.
| fileName | File name (absolute or relative to current directory) |
Definition at line 45 of file sim/response/steer/Run.cxx.
References buffer.
Referenced by Exec().
| void cbm::sim::digitization::Run::Exec | ( | ) |
Run digitization.
Definition at line 54 of file sim/response/steer/Run.cxx.
References CheckFile(), cbm::sim::EventByEvent, fConfig, fOutput, fOverwrite, fPar, fRun, fSetup, fSetupTag, fTra, GetFileName(), CbmSetup::Instance(), kNotExist, and cbm::sim::Timebased.
|
inline |
| std::string cbm::sim::digitization::Run::GetFileName | ( | const TString | file | ) |
Get file name without ending.
| file | full file name including ending |
Definition at line 143 of file sim/response/steer/Run.cxx.
Referenced by Exec().
| void cbm::sim::digitization::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 155 of file sim/response/steer/Run.cxx.
References fConfig.
Assignment operator forbidden.
References Run().
|
inline |
Set configuration.
| fileName | Configuration object |
Definition at line 69 of file sim/response/steer/Run.h.
References fConfig.
|
inline |
Set geometry setup tag.
| tag | Geometry setup tag |
Definition at line 75 of file sim/response/steer/Run.h.
References fSetupTag.
|
inline |
Set output file name.
| fileName | Output file name |
Definition at line 81 of file sim/response/steer/Run.h.
References fOutput.
|
inline |
Set parameter file name.
| fileName | Parameter file name |
Definition at line 93 of file sim/response/steer/Run.h.
References fPar.
| void cbm::sim::digitization::Run::SetTraFiles | ( | const std::vector< std::string > | files | ) |
Set transport file name.
| files | Transport input sources |
Definition at line 169 of file sim/response/steer/Run.cxx.
References fTra.
| Config cbm::sim::digitization::Run::fConfig = {} |
Definition at line 122 of file sim/response/steer/Run.h.
Referenced by Exec(), GetConfig(), LoadConfig(), and SetConfig().
|
private |
Definition at line 114 of file sim/response/steer/Run.h.
Referenced by Exec(), and SetOutput().
|
private |
Definition at line 119 of file sim/response/steer/Run.h.
Referenced by AllowOverwrite(), and Exec().
|
private |
Definition at line 116 of file sim/response/steer/Run.h.
Referenced by Exec(), and SetParFile().
|
private |
Definition at line 113 of file sim/response/steer/Run.h.
Referenced by Exec().
|
private |
Definition at line 118 of file sim/response/steer/Run.h.
Referenced by Exec().
|
private |
Definition at line 117 of file sim/response/steer/Run.h.
Referenced by Exec(), and SetGeoSetupTag().
|
private |
Definition at line 115 of file sim/response/steer/Run.h.
Referenced by Exec(), and SetTraFiles().