13#ifndef RooFitHS3_RooJSONFactoryWSTool_h
14#define RooFitHS3_RooJSONFactoryWSTool_h
43 std::vector<DistributionRef> channelConstraints);
123 T *
request(
const std::string &objname,
const std::string &requestAuthor)
125 if (T *out = tryRequest<T>(objname)) {
135 return requestImpl<T>(objname);
145 return request<T>(node[key].val(), requestAuthor);
148 template <
class T,
class Coll_t>
155 if (!node[seqName].is_seq()) {
160 for (
const auto &elem : node[seqName].
children()) {
161 out.add(*request<T>(elem.val(), requestAuthor));
169 return requestCollection<T, RooArgSet>(node, seqName);
175 return requestCollection<T, RooArgList>(node, seqName);
180 template <
class Obj_t>
187 template <
class Obj_t,
typename... Args_t>
190 return wsImport(Obj_t(
name.c_str(),
name.c_str(), std::forward<Args_t>(args)...));
193 [[noreturn]]
static void error(
const char *s);
194 [[noreturn]]
inline static void error(
const std::string &s) {
error(s.c_str()); }
195 static std::ostream &
warning(
const std::string &s);
198 static std::unique_ptr<RooDataHist>
212 void importFunction(
const std::string &jsonString,
bool importAllDependants);
220 : std::runtime_error(
"object '" +
p +
"' is missing dependency '" +
c +
"' of type '" +
classname +
"'"),
253 void setAttribute(
const std::string &obj,
const std::string &attrib);
254 bool hasAttribute(
const std::string &obj,
const std::string &attrib);
264 std::vector<RooFit::HS3::DistributionRef>
const *
channelConstraints(std::string
const &dist)
const;
312 std::string
const *dataName);
316 friend std::string
const *
325 std::unique_ptr<RooFit::HS3::ToolImportState>
_import;
326 std::unique_ptr<RooFit::HS3::ToolExportState>
_export;
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Common abstract base class for objects that represent a value and a "shape" in RooFit.
A space to attach TBranches.
Abstract container object that can hold multiple RooAbsArg objects.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
void sort(bool reverse=false)
Sort collection using std::sort and name comparison.
Abstract base class for binned and unbinned datasets.
Abstract interface for all probability density functions.
Abstract base class for objects that represent a real value and implements functionality common to al...
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
bool has_child(std::string const &) const
Variable that can be changed from the outside.
Facilitates simultaneous fitting of multiple PDFs to subsets of a given dataset.
< A class that holds configuration information for a model using a workspace as a store
The RooStringView is a wrapper around a C-style string that can also be constructed from a std::strin...
Persistable container for RooFit projects.
TObject * obj(RooStringView name) const
Return any type of object (RooAbsArg, RooAbsData or generic object) with given name)
bool import(const RooAbsArg &arg, const RooCmdArg &arg1={}, const RooCmdArg &arg2={}, const RooCmdArg &arg3={}, const RooCmdArg &arg4={}, const RooCmdArg &arg5={}, const RooCmdArg &arg6={}, const RooCmdArg &arg7={}, const RooCmdArg &arg8={}, const RooCmdArg &arg9={})
Import a RooAbsArg object, e.g.
RooCmdArg RecycleConflictNodes(bool flag=true)
RooCmdArg Silence(bool flag=true)
Types that represent an HS3 document.
void setExportedObject(RooJSONFactoryWSTool &tool, HistFactoryDist dist, std::vector< DistributionRef > channelConstraints)
Called by the exporter of a HistFactory distribution, which is then written by the tool.
std::string const * importedArrayComponentForm(RooJSONFactoryWSTool &tool, std::string const &name)
The canonical form (see arrayComponentForm()) of the component of an array distribution that this imp...
void recordImportedArrayComponent(RooJSONFactoryWSTool &tool, std::string const &name, std::string form)
Record that this import created the component name of an array distribution, with the canonical form ...
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Namespace for the RooStats classes.
A name that says what it refers to, so that for example a DataRef can't be used as a DomainRef.