27 _map[
"default_domain"].readVariable(
name, min, max);
35 _map.at(
"default_domain").writeVariable(var);
44 for (
auto const &domain :
_map) {
64 if (found !=
_map.end()) {
65 auto const &elem = found->second;
75 for (
auto const &varNode : node[
"axes"].
children()) {
78 if (varNode.has_child(
"min")) {
79 elem.min = varNode[
"min"].val_double();
82 if (varNode.has_child(
"max")) {
83 elem.max = varNode[
"max"].val_double();
91 node[
"type"] <<
"product_domain";
93 auto &variablesNode = node[
"axes"];
95 for (
auto const &item :
_map) {
96 auto const &elem = item.second;
99 varnode[
"min"] << elem.min;
101 varnode[
"max"] << elem.max;
virtual double getMax(const char *name=nullptr) const
Get maximum of currently defined range.
virtual double getMin(const char *name=nullptr) const
Get minimum of currently defined range.
virtual JSONNode & set_map()=0
virtual children_view children()
std::map< std::string, ProductDomainElement > _map
void readVariable(const char *name, double min, double max)
void writeJSON(RooFit::Detail::JSONNode &) const
void readJSON(RooFit::Detail::JSONNode const &)
void writeVariable(RooRealVar &) const
std::map< std::string, ProductDomain > _map
void writeVariable(RooRealVar &) const
void readVariable(const char *name, double min, double max)
void writeJSON(RooFit::Detail::JSONNode &) const
void readJSON(RooFit::Detail::JSONNode const &)
static constexpr int isInfinite(double x)
Return true if x is infinite by RooNumber internal specification.
RooRealVar represents a variable that can be changed from the outside.
void setMin(const char *name, double value)
Set minimum of name range to given value.
void setMax(const char *name, double value)
Set maximum of name range to given value.
const char * GetName() const override
Returns name of object.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...