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;
21class RooWorkspace;
22
23namespace RooFit {
24namespace Detail {
25class JSONNode;
26class JSONTree;
27} // namespace Detail
28} // namespace RooFit
29
30namespace RooFit {
31namespace JSONIO {
32namespace Detail {
33
34class Domains {
35public:
36 void readVariable(const char *name, double min, double max);
37 void readVariable(RooRealVar const &);
38 void writeVariable(RooRealVar &) const;
39
42
43 void populate(RooWorkspace &ws) const;
44
45private:
47 public:
48 void readVariable(const char *name, double min, double max);
49 void writeVariable(RooRealVar &) const;
50
53
54 void populate(RooWorkspace &ws) const;
55
56 private:
58 bool hasMin = false;
59 bool hasMax = false;
60 double min = 0.0;
61 double max = 0.0;
62 };
63
64 std::map<std::string, ProductDomainElement> _map;
65 };
66
67 std::map<std::string, ProductDomain> _map;
68};
69
70} // namespace Detail
71} // namespace JSONIO
72} // namespace RooFit
73
74#endif
char name[80]
Definition TGX11.cxx:110
std::map< std::string, ProductDomainElement > _map
Definition Domains.h:64
void populate(RooWorkspace &ws) const
Definition Domains.cxx:120
void readVariable(const char *name, double min, double max)
Definition Domains.cxx:62
void writeJSON(RooFit::Detail::JSONNode &) const
Definition Domains.cxx:104
void readJSON(RooFit::Detail::JSONNode const &)
Definition Domains.cxx:86
void populate(RooWorkspace &ws) const
Definition Domains.cxx:28
std::map< std::string, ProductDomain > _map
Definition Domains.h:67
void writeVariable(RooRealVar &) const
Definition Domains.cxx:43
void readVariable(const char *name, double min, double max)
Definition Domains.cxx:35
void writeJSON(RooFit::Detail::JSONNode &) const
Definition Domains.cxx:56
void readJSON(RooFit::Detail::JSONNode const &)
Definition Domains.cxx:48
Variable that can be changed from the outside.
Definition RooRealVar.h:37
Persistable container for RooFit projects.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition JSONIO.h:26