Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooJSONFactoryWSTool.h
Go to the documentation of this file.
1/*
2 * Project: RooFit
3 * Authors:
4 * Carsten D. Burgard, DESY/ATLAS, Dec 2021
5 *
6 * Copyright (c) 2022, 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 RooFitHS3_RooJSONFactoryWSTool_h
14#define RooFitHS3_RooJSONFactoryWSTool_h
15
17
18#include <RooArgList.h>
19#include <RooArgSet.h>
20#include <RooGlobalFunc.h>
21#include <RooWorkspace.h>
22
23#include <map>
24#include <stdexcept>
25#include <set>
26#include <vector>
27
29
30namespace RooFit {
31namespace HS3 {
32struct Distribution;
33struct HistFactoryDist;
34struct ParameterPoint;
35struct ParameterValue;
36struct ToolExportState;
37struct ToolImportState;
38struct Version;
39template <class Tag>
40struct Ref;
43 std::vector<DistributionRef> channelConstraints);
44std::string const *importedArrayComponentForm(RooJSONFactoryWSTool &tool, std::string const &name);
45void recordImportedArrayComponent(RooJSONFactoryWSTool &tool, std::string const &name, std::string form);
46} // namespace HS3
47} // namespace RooFit
48namespace RooStats {
49class ModelConfig;
50}
51class RooRealVar;
52class RooAbsCategory;
53class RooSimultaneous;
54
56public:
57 /// Named objects are always stored in lists, as the HS3 standard requires. Kept for backwards compatibility.
58 static constexpr bool useListsInsteadOfDicts = true;
59
60 struct Config {
62 bool allowSanitizeNames = true;
63 /// Identify constant factors of HistFactory samples that are used like the inverse bin width of HistFactory
64 /// before ROOT 6.26 by their structure, and don't write them, since `histfactory_dist` implies them. Turn this
65 /// off if a workspace has such factors that are not meant as bin widths: they are then written as normfactors.
67 /// HS3 requires the components of a combined distribution to have distinct variates, e.g. "mass_SR" and
68 /// "mass_CR" instead of one "mass". If enabled, the observables of every combined data set are renamed on
69 /// export to "obs_<key>" (the labels of the key joined by "_"), or "obs_<key>_<observable>" if a component
70 /// has several observables; the components of the matching RooSimultaneous are written with the renamed
71 /// observables (functions depending on them get the suffix "_<key>"). This allows exporting workspaces whose
72 /// components share an observable. Off by default: without it, such workspaces can't be exported.
74 /// HS3 requires the terms of a likelihood and the components of a combined distribution to have distinct
75 /// variates, e.g. "mass_SR" and "mass_CR" for the observables of two channels instead of one "mass". By
76 /// default, the export fails otherwise. If true, the document is written anyway, with a warning for every
77 /// shared variate. It is not valid HS3 and can't be read back before the variates are renamed, e.g. by hand in
78 /// the JSON.
80 // Write array distributions (HS3 `array_dist`). If false, no `array_dist` is written: HistFactory constraints
81 // are named individually, and a RooProdPdf tagged as array distribution is written as `product_dist`. The
82 // RooProdPdf that RooFit created itself when it read an `array_dist` is only written if another object uses
83 // it; otherwise its components are written on their own.
84 bool exportArrayDist = true;
85 // How the constraint terms of HistFactory models enter the likelihood: listed in "aux_distributions", with
86 // the observed values as constant parameters (false), or paired with a data set holding the observed values
87 // of their observables (true). An array of constraints of a model that is a RooSimultaneous is then a component
88 // of the combined distribution, and its data set a component of the combined data set, so that the combined
89 // distribution is the sampling distribution of all measurements. Other constraints are terms of the likelihood.
91 /// EXPERIMENTAL: how auxiliary measurements that are components of a combined distribution (a constraint term
92 /// paired with the data set of its observed values, as RooFit writes them with `exportConstraintData`) are
93 /// read. If false, they become constraint terms of the model as in HistFactory, with global observables set
94 /// to the observed values; RooFit recognizes the components that it wrote like this by a mark in the "misc"
95 /// section of the document. If true, or without that mark, they stay components of the RooSimultaneous, with
96 /// their data set of one entry in the combined data set, so that the RooSimultaneous is the sampling
97 /// distribution of all measurements. This option and the form of the resulting workspace may still change.
99 };
100
101 static Config &config();
102
103 static RooWorkspace sanitizeWS(const RooWorkspace &ws);
104 static RooWorkspace cleanWS(const RooWorkspace &ws, bool onlyModelConfig = false);
105
107
109
110 static std::string name(const RooFit::Detail::JSONNode &n);
111 static bool isValidName(const std::string &str);
112 static bool testValidName(const std::string &name, bool forceError);
113 static std::string sanitizeName(const std::string str);
114
116 static RooFit::Detail::JSONNode const *findNamedChild(RooFit::Detail::JSONNode const &node, std::string const &name);
117
118 static void fillSeq(RooFit::Detail::JSONNode &node, RooAbsCollection const &coll, size_t nMax = -1);
119
120 /// The object `objname` from the workspace, imported from the document first if needed. Throws a
121 /// DependencyMissingError if neither has it.
122 template <class T>
123 T *request(const std::string &objname, const std::string &requestAuthor)
124 {
125 if (T *out = tryRequest<T>(objname)) {
126 return out;
127 }
128 throw DependencyMissingError(requestAuthor, objname, T::Class()->GetName());
129 }
130
131 /// Like request(), but returns nullptr if neither the workspace nor the document has the object.
132 template <class T>
133 T *tryRequest(const std::string &objname)
134 {
135 return requestImpl<T>(objname);
136 }
137
138 template <class T>
139 T *requestArg(const RooFit::Detail::JSONNode &node, const std::string &key)
140 {
141 std::string requestAuthor(RooJSONFactoryWSTool::name(node));
142 if (!node.has_child(key)) {
143 RooJSONFactoryWSTool::error("no \"" + key + "\" given in \"" + requestAuthor + "\"");
144 }
145 return request<T>(node[key].val(), requestAuthor);
146 }
147
148 template <class T, class Coll_t>
149 Coll_t requestCollection(const RooFit::Detail::JSONNode &node, const std::string &seqName)
150 {
151 std::string requestAuthor(RooJSONFactoryWSTool::name(node));
152 if (!node.has_child(seqName)) {
153 RooJSONFactoryWSTool::error("no \"" + seqName + "\" given in \"" + requestAuthor + "\"");
154 }
155 if (!node[seqName].is_seq()) {
156 RooJSONFactoryWSTool::error("\"" + seqName + "\" in \"" + requestAuthor + "\" is not a sequence");
157 }
158
159 Coll_t out;
160 for (const auto &elem : node[seqName].children()) {
161 out.add(*request<T>(elem.val(), requestAuthor));
162 }
163 return out;
164 }
165
166 template <class T>
167 RooArgSet requestArgSet(const RooFit::Detail::JSONNode &node, const std::string &seqName)
168 {
169 return requestCollection<T, RooArgSet>(node, seqName);
170 }
171
172 template <class T>
173 RooArgList requestArgList(const RooFit::Detail::JSONNode &node, const std::string &seqName)
174 {
175 return requestCollection<T, RooArgList>(node, seqName);
176 }
177
179
180 template <class Obj_t>
181 Obj_t &wsImport(Obj_t const &obj)
182 {
184 return *static_cast<Obj_t *>(_workspace.obj(obj.GetName()));
185 }
186
187 template <class Obj_t, typename... Args_t>
188 Obj_t &wsEmplace(RooStringView name, Args_t &&...args)
189 {
190 return wsImport(Obj_t(name.c_str(), name.c_str(), std::forward<Args_t>(args)...));
191 }
192
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);
196
197 static RooArgSet readAxes(const RooFit::Detail::JSONNode &node);
198 static std::unique_ptr<RooDataHist>
199 readBinnedData(const RooFit::Detail::JSONNode &n, const std::string &namecomp, RooArgSet const &vars);
200
201 bool importJSON(std::string const &filename);
202 bool importJSON(std::istream &is);
203 bool exportJSON(std::string const &fileName);
204 bool exportJSON(std::ostream &os);
205
206 std::string exportJSONtoString();
207 bool importJSONfromString(const std::string &s);
208 void importJSONElement(const std::string &name, const std::string &jsonString);
209 void importVariableElement(const RooFit::Detail::JSONNode &elementNode);
210
211 void importFunction(const RooFit::Detail::JSONNode &p, bool importAllDependants);
212 void importFunction(const std::string &jsonString, bool importAllDependants);
213
214 // error handling helpers
215 class DependencyMissingError : public std::runtime_error {
216 std::string _parent, _child, _class;
217
218 public:
219 DependencyMissingError(const std::string &p, const std::string &c, const std::string &classname)
220 : std::runtime_error("object '" + p + "' is missing dependency '" + c + "' of type '" + classname + "'"),
221 _parent(p),
222 _child(c),
224 {
225 }
226 const std::string &parent() const { return _parent; }
227 const std::string &child() const { return _child; }
228 const std::string &classname() const { return _class; }
229 };
230
231 static void
232 exportHisto(RooArgSet const &vars, std::size_t n, double const *contents, RooFit::Detail::JSONNode &output);
233
234 static void exportArray(std::size_t n, double const *contents, RooFit::Detail::JSONNode &output);
235
236 void queueExport(RooAbsArg const &arg) { _serversToExport.push_back(&arg); }
238 {
239 _serversToExport.push_back(arg);
240 _serversToDelete.push_back(arg);
241 }
242
243 std::string exportTransformed(const RooAbsReal *original, const std::string &suffix, const std::string &formula);
244 std::string exportAsArrayComponent(RooAbsPdf const &pdf, std::string const &arrayName);
245 /// The name of the top-level object whose export is in progress (the root of the current export recursion).
246 std::string const &exportRootName() const;
247 void recordConstraintTerms(std::string const &pdfName, std::vector<std::string> const &terms);
248 /// Record that `observable` is the observable of the constraint term `pdf` (the side that is not the constrained
249 /// parameter). A Gaussian whose mean it is gets written with x and mean swapped, so that the observable is x.
250 void setConstraintObservable(RooAbsPdf const &pdf, std::string const &observable);
251 std::string const *constraintObservable(std::string const &pdfName) const;
252
253 void setAttribute(const std::string &obj, const std::string &attrib);
254 bool hasAttribute(const std::string &obj, const std::string &attrib);
255 std::string getStringAttribute(const std::string &obj, const std::string &attrib);
256 void setStringAttribute(const std::string &obj, const std::string &attrib, const std::string &value);
257
258 /// The HS3 version of the document that is currently being imported. Outside of an import it is 0.0.0, like a
259 /// version that can't be parsed.
261
262 /// The constraint terms that the document that is currently being imported adds to the HistFactory distribution
263 /// `dist`, besides those that its modifiers name, or nullptr if there are none.
264 std::vector<RooFit::HS3::DistributionRef> const *channelConstraints(std::string const &dist) const;
265
266 /// Whether the constraint term `pdf` contributes to the likelihoods of the document that is currently being
267 /// imported as a component of a combined distribution with data, by itself or as a component of an array
268 /// distribution. It is then a measurement of its own, and must not be multiplied into the distributions that
269 /// name it as a constraint as well.
270 bool isConstraintReadAsChannel(RooAbsPdf const &pdf) const;
271
272private:
273 template <class T>
274 T *requestImpl(const std::string &objname);
275 void exportObject(RooAbsArg const &func);
276
277 // To export multiple objects sorted alphabetically
278 template <class T>
279 void exportObjects(T const &args)
280 {
281 RooArgSet argSet;
282 for (RooAbsArg const *arg : args) {
283 argSet.add(*arg);
284 }
285 argSet.sort();
286 for (RooAbsArg *arg : argSet) {
287 exportObject(*arg);
288 }
289 }
290 void exportArrayDists();
291 bool exportConstraintData(std::string const &term, RooArgSet const *globalObservables, std::string const &dataName);
292
293 void exportSimultaneous(RooSimultaneous const &simPdf);
294 void recordCategory(RooAbsCategory const &cat);
295 void exportData(RooAbsData const &data);
297
299 void importDistribution(RooFit::HS3::Distribution const &distribution);
300
302 void warnIfFreeWithoutDomain(RooRealVar const &var);
304
306
308
309 void exportModelConfig(RooStats::ModelConfig const &mc, const std::vector<RooAbsData *> &singleDataSets);
310
311 void exportSingleModelConfig(RooStats::ModelConfig const &mc, std::string const &analysisName,
312 std::string const *dataName);
313
315 std::vector<RooFit::HS3::DistributionRef> channelConstraints);
316 friend std::string const *
318 friend void
319 RooFit::HS3::recordImportedArrayComponent(RooJSONFactoryWSTool &tool, std::string const &name, std::string form);
320
321 // member variables
323
324 // objects to represent intermediate information
325 std::unique_ptr<RooFit::HS3::ToolImportState> _import;
326 std::unique_ptr<RooFit::HS3::ToolExportState> _export;
327 std::vector<RooAbsArg const *> _serversToExport;
328 std::vector<RooAbsArg const *> _serversToDelete;
329 // Renaming of the observables of combined data sets, see Config::renameCombinedObservables: for each data set and
330 // each selection label, the new name of each observable; for each RooSimultaneous and selection label, the
331 // component with renamed observables to export instead of the original one. The objects are owned here.
332 std::map<std::string, std::map<std::string, std::map<std::string, std::string>>> _combinedObservableRenames;
333 std::map<std::string, std::map<std::string, RooAbsPdf const *>> _renamedComponents;
334 std::vector<std::unique_ptr<RooAbsArg>> _renamedObjects;
336
337 // The objects that are currently being imported, innermost last, to detect circular dependencies.
338 std::vector<std::string> _importStack;
339};
340#endif
#define c(i)
Definition RSha256.hxx:101
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
char name[80]
Definition TGX11.cxx:142
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Definition RooAbsArg.h:77
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.
Definition RooAbsData.h:55
Abstract interface for all probability density functions.
Definition RooAbsPdf.h:32
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:63
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition RooArgList.h:22
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:24
bool has_child(std::string const &) const
DependencyMissingError(const std::string &p, const std::string &c, const std::string &classname)
When using RooFit, statistical models can be conveniently handled and stored as a RooWorkspace.
static constexpr bool useListsInsteadOfDicts
Named objects are always stored in lists, as the HS3 standard requires. Kept for backwards compatibil...
bool isConstraintReadAsChannel(RooAbsPdf const &pdf) const
Whether the constraint term pdf contributes to the likelihoods of the document that is currently bein...
std::string getStringAttribute(const std::string &obj, const std::string &attrib)
void exportModelConfig(RooStats::ModelConfig const &mc, const std::vector< RooAbsData * > &singleDataSets)
static void fillSeq(RooFit::Detail::JSONNode &node, RooAbsCollection const &coll, size_t nMax=-1)
T * requestArg(const RooFit::Detail::JSONNode &node, const std::string &key)
bool exportConstraintData(std::string const &term, RooArgSet const *globalObservables, std::string const &dataName)
RooJSONFactoryWSTool(RooWorkspace &ws)
void recordConstraintTerms(std::string const &pdfName, std::vector< std::string > const &terms)
T * request(const std::string &objname, const std::string &requestAuthor)
The object objname from the workspace, imported from the document first if needed.
void exportCombinedData(RooAbsData const &data)
Export a data set with category observables as a "combined" data set.
void exportSimultaneous(RooSimultaneous const &simPdf)
Export a RooSimultaneous as a "combined_dist".
void exportData(RooAbsData const &data)
bool hasAttribute(const std::string &obj, const std::string &attrib)
bool importJSON(std::string const &filename)
Import the HS3 document of a JSON file into the workspace. Returns true; errors are exceptions.
std::string const & exportRootName() const
The name of the top-level object whose export is in progress (the root of the current export recursio...
Coll_t requestCollection(const RooFit::Detail::JSONNode &node, const std::string &seqName)
T * tryRequest(const std::string &objname)
Like request(), but returns nullptr if neither the workspace nor the document has the object.
std::map< std::string, std::map< std::string, std::map< std::string, std::string > > > _combinedObservableRenames
Obj_t & wsImport(Obj_t const &obj)
std::vector< std::string > _importStack
static std::unique_ptr< RooDataHist > readBinnedData(const RooFit::Detail::JSONNode &n, const std::string &namecomp, RooArgSet const &vars)
Create a RooDataHist with the name name over the variables vars from the "contents" of n,...
static RooFit::Detail::JSONNode & appendNamedChild(RooFit::Detail::JSONNode &node, std::string const &name)
void importDistribution(RooFit::HS3::Distribution const &distribution)
static void exportArray(std::size_t n, double const *contents, RooFit::Detail::JSONNode &output)
Write n numbers as an array, each as an integer if it has no fractional part.
void recordCategory(RooAbsCategory const &cat)
void exportObjects(T const &args)
static void exportHisto(RooArgSet const &vars, std::size_t n, double const *contents, RooFit::Detail::JSONNode &output)
Write the axes and the n bin contents of a histogram over the variables vars, which are RooRealVars o...
std::vector< RooAbsArg const * > _serversToDelete
void queueExportTemporary(RooAbsArg *arg)
void queueExport(RooAbsArg const &arg)
std::map< std::string, std::map< std::string, RooAbsPdf const * > > _renamedComponents
std::vector< RooFit::HS3::DistributionRef > const * channelConstraints(std::string const &dist) const
The constraint terms that the document that is currently being imported adds to the HistFactory distr...
std::unique_ptr< RooFit::HS3::ToolExportState > _export
RooArgSet requestArgSet(const RooFit::Detail::JSONNode &node, const std::string &seqName)
std::string exportJSONtoString()
Export the workspace as an HS3 document, and return it as a JSON string.
RooArgList requestArgList(const RooFit::Detail::JSONNode &node, const std::string &seqName)
static RooWorkspace cleanWS(const RooWorkspace &ws, bool onlyModelConfig=false)
std::string exportTransformed(const RooAbsReal *original, const std::string &suffix, const std::string &formula)
static bool isValidName(const std::string &str)
Whether a string is a valid name: a letter or an underscore, followed by letters, digits or underscor...
void importVariable(RooFit::HS3::ParameterValue const &p)
T * requestImpl(const std::string &objname)
RooFit::HS3::Version hs3Version() const
The HS3 version of the document that is currently being imported.
std::vector< std::unique_ptr< RooAbsArg > > _renamedObjects
void importDependants(const RooFit::Detail::JSONNode &n)
void importJSONElement(const std::string &name, const std::string &jsonString)
static RooWorkspace sanitizeWS(const RooWorkspace &ws)
static void error(const char *s)
Write an error to the RooFit message service, and throw it as a std::runtime_error.
void setConstraintObservable(RooAbsPdf const &pdf, std::string const &observable)
Record that observable is the observable of the constraint term pdf (the side that is not the constra...
void setAttribute(const std::string &obj, const std::string &attrib)
void exportObject(RooAbsArg const &func)
void exportSingleModelConfig(RooStats::ModelConfig const &mc, std::string const &analysisName, std::string const *dataName)
void importFunction(const RooFit::Detail::JSONNode &p, bool importAllDependants)
Import the function or distribution p into the workspace, with the importers that are registered for ...
void importVariableElement(const RooFit::Detail::JSONNode &elementNode)
bool importJSONfromString(const std::string &s)
Import an HS3 document that is given as a JSON string into the workspace. Returns true; errors are ex...
std::unique_ptr< RooFit::HS3::ToolImportState > _import
static bool testValidName(const std::string &name, bool forceError)
void exportVariable(const RooAbsArg *v, RooFit::HS3::ParameterPoint &point)
Obj_t & wsEmplace(RooStringView name, Args_t &&...args)
static std::string sanitizeName(const std::string str)
Replace some characters that are common in the names of RooFit objects, but that the HS3 standard doe...
static void error(const std::string &s)
static std::string name(const RooFit::Detail::JSONNode &n)
void exportAllObjects(RooFit::Detail::JSONNode &n)
bool exportJSON(std::string const &fileName)
Export the workspace as an HS3 document, and write it to a JSON file. Returns true; errors are except...
static RooFit::Detail::JSONNode const * findNamedChild(RooFit::Detail::JSONNode const &node, std::string const &name)
void importAllNodes(RooFit::Detail::JSONNode &n)
std::string exportAsArrayComponent(RooAbsPdf const &pdf, std::string const &arrayName)
void warnIfFreeWithoutDomain(RooRealVar const &var)
std::string const * constraintObservable(std::string const &pdfName) const
void setStringAttribute(const std::string &obj, const std::string &attrib, const std::string &value)
std::vector< RooAbsArg const * > _serversToExport
static std::ostream & warning(const std::string &s)
Write a warning to the RooFit message service, and return its stream.
static RooArgSet readAxes(const RooFit::Detail::JSONNode &node)
Create the variables for the "axes" of topNode, which are owned by the returned set.
Variable that can be changed from the outside.
Definition RooRealVar.h:37
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
Definition ModelConfig.h:34
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)
const Int_t n
Definition legend1.C:16
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...
Definition CodegenImpl.h:73
Namespace for the RooStats classes.
Definition CodegenImpl.h:67
A name that says what it refers to, so that for example a DataRef can't be used as a DomainRef.
Definition HS3Document.h:85
The document that the tool is exporting.
What the tool needs to know about the document that it is importing.
bool allowExportSharedVariates
HS3 requires the terms of a likelihood and the components of a combined distribution to have distinct...
bool importConstraintsAsChannels
EXPERIMENTAL: how auxiliary measurements that are components of a combined distribution (a constraint...
bool renameCombinedObservables
HS3 requires the components of a combined distribution to have distinct variates, e....
bool identifyLegacyBinWidthFactors
Identify constant factors of HistFactory samples that are used like the inverse bin width of HistFact...