20 explicit Manager(std::string
const &filename)
30 Manager(
const YAML::Node ConfigNode);
47 inline YAML::Node
const &
raw()
const {
return config;}
49 inline std::string
GetName()
const {
return "Manager";};
56 template <
typename... Args>
Defines the custom exception class used throughout MaCh3.
System and monitoring utilities for printing system information and status updates.
Utility functions for handling YAML nodes.
void OverrideConfig(YAML::Node node, std::string const &key, TValue val)
Overrides the configuration settings based on provided arguments.
#define M3OpenConfig(filename)
Macro to simplify calling LoadYaml with file and line info.
The manager class is responsible for managing configurations and settings.
void Initialise()
Common inialiser for both constructors.
int GetMCStatLLH() const
Get likelihood type defined in the config.
virtual ~Manager()
Destroys the manager object.
YAML::Node config
The YAML node containing the configuration data.
Manager(std::string const &filename)
Constructs a manager object with the specified file name.
YAML::Node const & raw() const
Return config.
void SaveSettings(TFile *const OutputFile) const
Add manager useful information's to TFile, in most cases to Fitter.
std::string FileName
The name of the configuration file.
std::string GetName() const
Get class name.
std::string GetFileName() const
Return name of config.
void OverrideSettings(Args &&... args)
Overrides the configuration settings based on provided arguments.
void Print() const
Print currently used config.