CbmRoot
|
#include <ProgramOptions.h>
Public Member Functions | |
ProgramOptions (int argc, char *argv[]) | |
Standard constructor with command line arguments. | |
ProgramOptions (const ProgramOptions &)=delete | |
Copy constructor forbidden. | |
ProgramOptions & | operator= (const ProgramOptions &)=delete |
Assignment operator forbidden. | |
~ProgramOptions ()=default | |
Destructor. | |
const std::string & | RawFile () const |
Get digitization (raw) file name. | |
const std::string & | OutputFile () const |
Get output file name (.root format) | |
const std::string & | ConfigFile () const |
Get configuration file name (YAML format) | |
bool | Overwrite () const |
Get overwrite option. | |
const std::string & | ParFile () const |
Get parameter file name. | |
const std::string & | SetupTag () const |
Get geometry setup tag. | |
Private Member Functions | |
void | ParseOptions (int argc, char *argv[]) |
Parse command line arguments using boost program_options. | |
Private Attributes | |
std::string | fRaw = "" |
Input raw (digi) file name (ROOT format) | |
std::string | fOutput = "" |
Output file name (ROOT format) | |
std::string | fPar = "" |
Parameter file name (ROOT format) | |
std::string | fConfig = "" |
Configuration file name (YAML format) | |
std::string | fSetup = "" |
Geometry setup tag. | |
bool | fOverwrite = false |
Enable overwriting of existing output file. | |
Program option class for the application cbmreco_offline
Definition at line 30 of file reco/offline/app/ProgramOptions.h.
|
inline |
Standard constructor with command line arguments.
Definition at line 33 of file reco/offline/app/ProgramOptions.h.
References ParseOptions().
|
delete |
Copy constructor forbidden.
|
default |
Destructor.
|
inlinenodiscard |
Get configuration file name (YAML format)
Definition at line 51 of file reco/offline/app/ProgramOptions.h.
References fConfig.
Referenced by cbm::reco::offline::Application::Exec().
|
delete |
Assignment operator forbidden.
|
inlinenodiscard |
Get output file name (.root format)
Definition at line 48 of file reco/offline/app/ProgramOptions.h.
References fOutput.
Referenced by cbm::reco::offline::Application::Exec().
|
inlinenodiscard |
Get overwrite option.
Definition at line 54 of file reco/offline/app/ProgramOptions.h.
References fOverwrite.
Referenced by cbm::reco::offline::Application::Exec().
|
inlinenodiscard |
Get parameter file name.
Definition at line 57 of file reco/offline/app/ProgramOptions.h.
References fPar.
Referenced by cbm::reco::offline::Application::Exec().
|
private |
Parse command line arguments using boost program_options.
Definition at line 28 of file reco/offline/app/ProgramOptions.cxx.
References DEFAULT_CONFIG, DEFAULT_SETUP, fConfig, fOutput, fOverwrite, fPar, fRaw, and fSetup.
Referenced by ProgramOptions().
|
inlinenodiscard |
Get digitization (raw) file name.
Definition at line 45 of file reco/offline/app/ProgramOptions.h.
References fRaw.
Referenced by cbm::reco::offline::Application::Exec().
|
inlinenodiscard |
Get geometry setup tag.
Definition at line 60 of file reco/offline/app/ProgramOptions.h.
References fSetup.
Referenced by cbm::reco::offline::Application::Exec().
|
private |
Configuration file name (YAML format)
Definition at line 72 of file reco/offline/app/ProgramOptions.h.
Referenced by ConfigFile(), and ParseOptions().
|
private |
Output file name (ROOT format)
Definition at line 70 of file reco/offline/app/ProgramOptions.h.
Referenced by OutputFile(), and ParseOptions().
|
private |
Enable overwriting of existing output file.
Definition at line 74 of file reco/offline/app/ProgramOptions.h.
Referenced by Overwrite(), and ParseOptions().
|
private |
Parameter file name (ROOT format)
Definition at line 71 of file reco/offline/app/ProgramOptions.h.
Referenced by ParFile(), and ParseOptions().
|
private |
Input raw (digi) file name (ROOT format)
Definition at line 69 of file reco/offline/app/ProgramOptions.h.
Referenced by ParseOptions(), and RawFile().
|
private |
Geometry setup tag.
Definition at line 73 of file reco/offline/app/ProgramOptions.h.
Referenced by ParseOptions(), and SetupTag().