![]() |
MaCh3 2.2.1
Reference Guide
|
The manager class is responsible for managing configurations and settings. More...
#include <Manager/Manager.h>
Public Member Functions | |
manager (std::string const &filename) | |
Constructs a manager object with the specified file name. | |
manager (const YAML::Node ConfigNode) | |
Constructs a manager object with the specified YAML. | |
virtual | ~manager () |
Destroys the manager object. | |
void | SaveSettings (TFile *const OutputFile) |
Add manager useful information's to TFile, in most cases to Fitter. | |
void | Print () |
Print currently used config. | |
int | GetMCStatLLH () |
Get likelihood type defined in the config. | |
std::string | GetFileName () |
Return name of config. | |
YAML::Node const & | raw () |
Return config. | |
std::string | GetName () const |
Get class name. | |
template<typename... Args> | |
void | OverrideSettings (Args &&... args) |
Overrides the configuration settings based on provided arguments. | |
Private Member Functions | |
void | Initialise () |
Common inialiser for both constructors. | |
Private Attributes | |
YAML::Node | config |
The YAML node containing the configuration data. | |
std::string | FileName |
The name of the configuration file. | |
The manager class is responsible for managing configurations and settings.
|
explicit |
Constructs a manager object with the specified file name.
filename | The name of the configuration file. |
Definition at line 9 of file Manager.cpp.
manager::manager | ( | const YAML::Node | ConfigNode | ) |
Constructs a manager object with the specified YAML.
ConfigNode | Actual YAML config |
Definition at line 18 of file Manager.cpp.
|
virtual |
Destroys the manager object.
Definition at line 41 of file Manager.cpp.
|
inline |
int manager::GetMCStatLLH | ( | ) |
Get likelihood type defined in the config.
Definition at line 98 of file Manager.cpp.
|
inline |
|
private |
Common inialiser for both constructors.
Definition at line 27 of file Manager.cpp.
|
inline |
Overrides the configuration settings based on provided arguments.
Definition at line 51 of file Manager.h.
void manager::Print | ( | ) |
Print currently used config.
Definition at line 90 of file Manager.cpp.
|
inline |
void manager::SaveSettings | ( | TFile *const | OutputFile | ) |
Add manager useful information's to TFile, in most cases to Fitter.
OutputFile | The ROOT TFile to which the information will be added. |
Definition at line 49 of file Manager.cpp.
|
private |
|
private |