1#ifndef __FDP_DISTRIBUTION_HXX__
2#define __FDP_DISTRIBUTION_HXX__
5#include <ghc/filesystem.hpp>
7namespace FairDataPipeline {
15 Distribution(
const std::string &name,
double mu,
double sigma):
20 Distribution(
const std::string &name,
double mu,
double sigma,
const std::string &component):
24 _component(component){};
26 Distribution(
const std::string &file_name,
const std::string &component);
28 std::string get_name()
const {
return _name;}
29 double get_mu()
const {
return _mu;}
30 double get_sigma()
const {
return _sigma;}
31 std::string get_component()
const {
return _component;}
33 std::string write_to_toml(std::string &file_name);
34 std::string write_to_toml(std::string &component, std::string &file_name);
40 std::string _component;
43 void read_from_toml(
const ghc::filesystem::path &file_path,
const std::string &component);
46 return typeid(lhs) ==
typeid(rhs) && lhs.isEqual(rhs);
Class for API objects.
Definition: distribution.hxx:12