42 std::string OutputFilename = std::string(OutputFile->GetName());
50 TTree *SaveBranch =
new TTree(
"Settings",
"Settings");
53 SaveBranch->Branch(
"Output", &OutputFilename);
57 bool cpu_mp_on =
true;
58 int n_cpus = omp_get_max_threads();
60 bool cpu_mp_on =
false;
70 SaveBranch->Branch(
"GPU", &gpu_on);
71 SaveBranch->Branch(
"CPUMP", &cpu_mp_on);
72 SaveBranch->Branch(
"nCPUs", &n_cpus);
92 if (
config[
"LikelihoodOptions"])
94 auto likelihood = GetFromManager<std::string>(
config[
"LikelihoodOptions"][
"TestStatistic"],
"Barlow-Beeston", __FILE__ , __LINE__);
#define _MaCh3_Safe_Include_Start_
KS: Avoiding warning checking for headers.
#define _MaCh3_Safe_Include_End_
KS: Restore warning checking after including external headers.
void SetMaCh3LoggerFormat()
Set messaging format of the logger.
TestStatistic TestStatFromString(const std::string &likelihood)
Convert a string to a TestStatistic enum.
std::string TestStatistic_ToString(const TestStatistic TestStat)
Convert a LLH type to a string.
@ kNTestStatistics
Number of test statistics.
@ kPoisson
Standard Poisson likelihood .
TMacro YAMLtoTMacro(const YAML::Node &yaml_node, const std::string &name)
Convert a YAML node to a ROOT TMacro object.
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.
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.
void Print() const
Print currently used config.
void PrintConfig(const YAML::Node &node)
KS: Print Yaml config using logger.
void MaCh3Welcome()
KS: Prints welcome message with MaCh3 logo.