13#ifndef RooFitHS3_RooJSONFactoryWSTool_h
14#define RooFitHS3_RooJSONFactoryWSTool_h
38namespace Experimental {
60 virtual std::string
const &
key()
const = 0;
70 std::map<std::string, std::string>
proxies;
77 typedef std::map<const std::string, std::vector<std::unique_ptr<const Importer>>>
ImportMap;
78 typedef std::map<TClass const *, std::vector<std::unique_ptr<const Exporter>>>
ExportMap;
102 std::ostream &log(
int level)
const;
126 virtual const char *
what() const noexcept
override {
return "no rootnode set"; }
141 virtual const char *
what() const noexcept
override {
return _message.c_str(); }
148 T *
request(
const std::string &objname,
const std::string &requestAuthor);
164 static bool registerImporter(
const std::string &key, std::unique_ptr<const RooJSONFactoryWSTool::Importer>
f,
165 bool topPriority =
true);
167 bool topPriority =
true);
180 static void error(
const char *s) {
throw std::runtime_error(s); }
181 static void error(
const std::string &s) {
throw std::runtime_error(s); }
183 static std::string
concat(
const T *items,
const std::string &sep =
",")
191 for (
auto it : *items) {
206 static std::vector<std::string>
names(
const T *items)
210 std::vector<std::string>
names;
212 for (
auto it : *items) {
214 names.push_back(
"NULL");
216 names.push_back(it->GetName());
223 const std::vector<std::string> &obsnames,
const TH1 *errH = 0,
229 std::unique_ptr<RooDataHist>
231 static std::map<std::string, RooJSONFactoryWSTool::Var>
240 bool importYML(std::string
const &filename);
244 bool exportYML(std::string
const &fileName);
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
RooAbsData is the common abstract base class for binned and unbinned datasets.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
The RooDataHist is a container class to hold N-dimensional binned data.
RooDataSet is a container class to hold unbinned data.
RooRealVar represents a variable that can be changed from the outside.
The RooWorkspace is a persistable container for RooFit projects.
TClass instances represent classes, structs and namespaces in the ROOT type system.
TH1 is the base class of all histogram classes in ROOT.
virtual const char * GetName() const
Returns name of object.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...