Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Domains.h
Go to the documentation of this file.
1/*
2 * Project: RooFit
3 * Authors:
4 * Jonas Rembser, CERN, Jan 2023
5 *
6 * Copyright (c) 2023, CERN
7 *
8 * Redistribution and use in source and binary forms,
9 * with or without modification, are permitted according to the terms
10 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)
11 */
12
13#ifndef RooFit_JSONIO_Detail_Domains_h
14#define RooFit_JSONIO_Detail_Domains_h
15
16#include <string>
17#include <map>
18#include <vector>
19
20class RooRealVar;
21
22namespace RooFit {
23namespace Detail {
24class JSONNode;
25class JSONTree;
26} // namespace Detail
27} // namespace RooFit
28
29namespace RooFit {
30namespace JSONIO {
31namespace Detail {
32
33class Domains {
34public:
35 void readVariable(const char *name, double min, double max);
36 void readVariable(RooRealVar const &);
37 void writeVariable(RooRealVar &) const;
38
41
42private:
44 public:
45 void readVariable(const char *name, double min, double max);
46 void writeVariable(RooRealVar &) const;
47
50
51 private:
53 bool hasMin = false;
54 bool hasMax = false;
55 double min = 0.0;
56 double max = 0.0;
57 };
58
59 std::map<std::string, ProductDomainElement> _map;
60 };
61
62 std::map<std::string, ProductDomain> _map;
63};
64
65} // namespace Detail
66} // namespace JSONIO
67} // namespace RooFit
68
69#endif
char name[80]
Definition TGX11.cxx:110
std::map< std::string, ProductDomainElement > _map
Definition Domains.h:59
void readVariable(const char *name, double min, double max)
Definition Domains.cxx:48
void writeJSON(RooFit::Detail::JSONNode &) const
Definition Domains.cxx:88
void readJSON(RooFit::Detail::JSONNode const &)
Definition Domains.cxx:72
std::map< std::string, ProductDomain > _map
Definition Domains.h:62
void writeVariable(RooRealVar &) const
Definition Domains.cxx:33
void readVariable(const char *name, double min, double max)
Definition Domains.cxx:25
void writeJSON(RooFit::Detail::JSONNode &) const
Definition Domains.cxx:42
void readJSON(RooFit::Detail::JSONNode const &)
Definition Domains.cxx:38
RooRealVar represents a variable that can be changed from the outside.
Definition RooRealVar.h:40
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition Common.h:18