Types that represent an HS3 document. More...
Classes | |
| struct | Analysis |
| struct | Attributes |
| struct | BinnedAxis |
| The axis of binned data. More... | |
| struct | BinnedData |
| struct | CategoricalAxis |
| struct | CombinedData |
| Data sets that are selected by a key (HS3 #119). The columns are categorical axes of the domains. More... | |
| struct | CombinedDataComponent |
| The sub-data set of a combined data set for one key, which has one label per column. More... | |
| struct | CombinedDataset |
| struct | CombinedDistribution |
| struct | ConstantGammas |
| The gamma parameters are constant, which is a RooFit extension. More... | |
| struct | ConstraintPdf |
| The constraint term is a distribution of the document, named in "constraints". More... | |
| struct | ContinuousAxis |
| The axis of point data or unbinned data, which can't have a binning. More... | |
| class | Cursor |
| A position in the JSON tree. More... | |
| struct | CustomModifier |
| Multiplies the sample with a function of the document. More... | |
| struct | Data |
| struct | Diagnostic |
| struct | Distribution |
| struct | Domain |
| struct | DomainAxis |
| The axis of a domain. More... | |
| class | DomainRanges |
| Where RooFit takes the ranges of variables from: the "default_domain" if there is one, otherwise the first domain by name that has the variable. More... | |
| struct | EdgesBinning |
| struct | Function |
| struct | GammaConstraintPdfs |
| Every gamma parameter has its own constraint term, or none, as named in "constraints". More... | |
| struct | GaussianUncertainty |
| struct | GenericObject |
| A distribution or function that is not interpreted by the document, but by the importers that are registered for its type in RooFit::JSONIO::importers(). More... | |
| struct | HistFactoryDist |
| struct | HistoSys |
| struct | HistoSysVariation |
| struct | InterpolatedFunction |
| The function "interpolation" of RooFit, implemented by PiecewiseInterpolation: a nominal function plus the interpolated differences to the variations "high" and "low" for each parameter. More... | |
| struct | InterpolatedNumber |
| The function "interpolation0d" of RooFit, implemented by FlexibleInterpVar: a nominal value plus the interpolated differences to the variations "high" and "low" for each parameter. More... | |
| struct | Interpolation |
| How a modifier of a HistFactory distribution interpolates and extrapolates its effect. More... | |
| struct | Likelihood |
| struct | LikelihoodTerm |
| struct | Metadata |
| struct | ModelConfigInfo |
| struct | NormFactor |
| struct | NormSys |
| struct | overloaded |
| Combines lambdas into one visitor for std::visit(). The compiler complains about the alternatives without lambda. More... | |
| struct | Package |
| struct | ParameterPoint |
| struct | ParameterValue |
| struct | ParseOptions |
| Options for upgradeDocument() and parseDocument(). More... | |
| struct | PointData |
| class | Reader |
| Reads the components of a struct. More... | |
| struct | Ref |
| A name that says what it refers to, so that for example a DataRef can't be used as a DomainRef. More... | |
| struct | RegularBinning |
| struct | RooFitInternal |
| The content of misc.ROOT_internal and misc.minimization. More... | |
| struct | Sample |
| struct | ShapeSys |
| Scales each bin by its own parameter. The modifier type "shapesys" is a deprecated alias of "shapefactor". More... | |
| struct | StatError |
| Scales each bin by a parameter, that is constrained by the statistical uncertainty of all samples that have this modifier. More... | |
| struct | StatErrorConfig |
| Settings of the staterror modifiers that apply to the whole channel. This is a RooFit extension. More... | |
| struct | StepWidth |
| struct | ToolExportState |
| The document that the tool is exporting. More... | |
| struct | ToolImportState |
| What the tool needs to know about the document that it is importing. More... | |
| struct | UnbinnedData |
| struct | Unconstrained |
| The parameter of the modifier is not constrained. More... | |
| struct | ValidateOptions |
| Options for validate(). More... | |
| struct | Version |
Typedefs | |
| using | Binning = std::variant<RegularBinning, EdgesBinning> |
| using | Constraint = std::variant<Unconstrained, ConstraintType, ConstraintPdf> |
| using | DataRef = Ref<struct DataTag> |
| using | Diagnostics = std::vector<Diagnostic> |
| using | DistributionRef = Ref<struct DistributionTag> |
| using | DomainRef = Ref<struct DomainTag> |
| using | GammaConstraint = std::variant<Unconstrained, ConstraintType, ConstantGammas, GammaConstraintPdfs> |
| using | LikelihoodRef = Ref<struct LikelihoodTag> |
| using | Modifier = std::variant<NormFactor, NormSys, HistoSys, ShapeSys, StatError, CustomModifier> |
| using | NameOrNumber = std::variant<std::string, double> |
| A name, or a number for a constant. | |
| using | ParameterPointRef = Ref<struct ParameterPointTag> |
| using | ParameterRef = Ref<struct ParameterTag> |
Enumerations | |
| enum class | ConstraintType { Gauss , Poisson , LogNormal } |
| The constraint types that older documents named, for which RooFit creates the constraint terms. More... | |
| enum class | InterpolationClass { Piecewise , Flexible } |
| The RooFit classes that implement the interpolations, which encode them with integer codes. More... | |
| enum class | InterpolationFunction { Poly1 , Poly2 , Poly6 , Exp } |
| enum class | InterpolationType { Add , Mult } |
Functions | |
| void | buildHistFactoryDist (RooJSONFactoryWSTool &tool, std::string const &name, HistFactoryDist const &dist, std::vector< DistributionRef > const *channelConstraints=nullptr) |
| Create the RooFit objects of a HistFactory distribution in the workspace of the tool. | |
| void | checkDocument (HS3Document const &doc, Diagnostics &diagnostics, ValidateOptions const &options={}) |
| The checks of validate(), for a document that is still needed if it doesn't pass them. | |
| std::optional< int > | codeFromInterpolation (Interpolation const &interpolation, InterpolationClass interpolationClass) |
| The integer code of an interpolation, or nothing if the class can't represent the interpolation. | |
| std::unique_ptr< RooDataHist > | createDataHist (std::string const &name, RooArgSet const &vars, std::vector< double > const &contents, std::vector< double > const *errors) |
| Create a RooDataHist with the contents and errors. If there are no errors, it doesn't store squared weights. | |
| RooArgSet | createObservables (std::vector< BinnedAxis > const &axes) |
| Create the variables for the axes of binned data. | |
| void | describe (Reader &ar, Analysis &analysis) |
| void | describe (Reader &ar, Attributes &attributes) |
| void | describe (Reader &ar, BinnedAxis &axis) |
| void | describe (Reader &ar, BinnedData &data) |
| void | describe (Reader &ar, CategoricalAxis &axis) |
| void | describe (Reader &ar, CombinedDataset &info) |
| void | describe (Reader &ar, CombinedDistribution &info) |
| void | describe (Reader &ar, ContinuousAxis &axis) |
| void | describe (Reader &ar, CustomModifier &m) |
| void | describe (Reader &ar, Domain &domain) |
| void | describe (Reader &ar, DomainAxis &axis) |
| void | describe (Reader &ar, GaussianUncertainty &uncertainty) |
| void | describe (Reader &ar, HistFactoryDist &dist) |
| void | describe (Reader &ar, HistoSys &m) |
| void | describe (Reader &ar, HistoSysVariation &variation) |
| void | describe (Reader &ar, Likelihood &likelihood) |
| void | describe (Reader &ar, ModelConfigInfo &info) |
| void | describe (Reader &ar, NormFactor &m) |
| void | describe (Reader &ar, NormSys &m) |
| void | describe (Reader &ar, Package &p) |
| void | describe (Reader &ar, ParameterPoint &point) |
| void | describe (Reader &ar, PointData &data) |
| void | describe (Reader &ar, Sample &sample) |
| void | describe (Reader &ar, ShapeSys &m) |
| void | describe (Reader &ar, StatError &m) |
| void | describe (Reader &ar, StatErrorConfig &config) |
| void | describe (Reader &ar, UnbinnedData &data) |
| void | factorOutDefaultInterpolation (HistFactoryDist &dist) |
| Makes the most common interpolation of the modifiers the "default_interpolation", which they then don't repeat. | |
| bool | hasErrors (Diagnostics const &diagnostics) |
| Whether there is a diagnostic with error severity. | |
| void | importHistFactoryNode (RooJSONFactoryWSTool &tool, Detail::JSONNode const &node, std::vector< DistributionRef > const *channelConstraints) |
| What the built-in importer does with a HistFactory distribution, plus the constraint terms of the channel. | |
| std::optional< Interpolation > | interpolationFromCode (int code, InterpolationClass interpolationClass) |
| The interpolation for an integer code, or nothing if the class doesn't support the code. | |
| bool | isBuiltinHistFactoryImporter (JSONIO::Importer const &importer) |
| Whether this is the importer that RooFit registers for HistFactory distributions, as opposed to the one of a user. | |
| void | mergeDuplicateModifiers (HistFactoryDist &dist, std::string const &channel, Diagnostics &diagnostics) |
| Combines the modifiers of a sample that have the same type and name, which HistFactory models can have but documents can't: normsys by multiplying their variations, and histosys by adding up their differences to the nominal contents. | |
| bool | operator!= (Interpolation const &l, Interpolation const &r) |
| bool | operator< (Interpolation const &l, Interpolation const &r) |
| bool | operator< (Version const &l, Version const &r) |
| bool | operator== (ConstraintPdf const &l, ConstraintPdf const &r) |
| bool | operator== (Interpolation const &l, Interpolation const &r) |
| bool | operator== (Unconstrained, Unconstrained) |
| template<class... Ts> | |
| overloaded (Ts...) -> overloaded< Ts... > | |
| std::vector< BinnedAxis > | parseBinnedAxes (Detail::JSONNode const &axes, Diagnostics &diagnostics) |
| Reads the axes of binned data that doesn't come with a document. | |
| HS3Document | parseDocument (Detail::JSONNode const &root, Diagnostics &diagnostics, ParseOptions const &options={}) |
| Reads a document. | |
| HistFactoryDist | parseHistFactoryDist (Detail::JSONNode const &distribution, Diagnostics &diagnostics) |
| Reads a HistFactory distribution that doesn't come with a document. | |
| InterpolatedFunction | parseInterpolatedFunction (Detail::JSONNode const &node, Diagnostics &diagnostics) |
| Reads the functions "interpolation" and "interpolation0d", which don't come with a document. | |
| InterpolatedNumber | parseInterpolatedNumber (Detail::JSONNode const &node, Diagnostics &diagnostics) |
| bool | parseVersion (std::string const &version, Version &out) |
| Reads the leading "MAJOR.MINOR" and the optional ".PATCH" of an HS3 version string. | |
| void | readCombinedData (Reader &ar, std::string const &name, CombinedData &data) |
| std::optional< Interpolation > | readInterpolationCode (Cursor const &c, InterpolationClass interpolationClass) |
| Reads an integer interpolation code, as older versions of RooFit wrote them. | |
| void | readModifierName (Reader &ar, std::string &name) |
| void | readParameter (Reader &ar, ParameterRef ¶meter) |
| void | readValue (Cursor const &c, bool &out) |
| void | readValue (Cursor const &c, Data &out) |
| void | readValue (Cursor const &c, double &out) |
| void | readValue (Cursor const &c, Function &out) |
| void | readValue (Cursor const &c, int &out) |
| void | readValue (Cursor const &c, Interpolation &out) |
| void | readValue (Cursor const &c, Modifier &out) |
| void | readValue (Cursor const &c, NameOrNumber &out) |
| void | readValue (Cursor const &c, ParameterValue &p) |
| template<class Tag > | |
| void | readValue (Cursor const &c, Ref< Tag > &out) |
| void | readValue (Cursor const &c, std::string &out) |
| void | readValue (Cursor const &c, std::variant< BinnedAxis, CategoricalAxis > &out) |
| void | readValue (Cursor const &c, std::variant< ContinuousAxis, CategoricalAxis > &out) |
| void | readValue (Cursor const &c, std::variant< DomainAxis, CategoricalAxis > &out) |
| template<class T > | |
| void | readValue (Cursor const &c, std::vector< T > &out) |
| template<class T > | |
| auto | readValue (Cursor const &c, T &out) -> std::void_t< decltype(describe(std::declval< Reader & >(), out))> |
| Everything that has a describe() function is read from a struct. | |
| void | report (Diagnostics const &diagnostics) |
| Forward the warnings to the message service, and throw if there are errors. | |
| 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. | |
| BinnedAxis | toBinnedAxis (RooRealVar const &var) |
| The axis of binned data for a variable. | |
| NameOrNumber | toNameOrNumber (RooAbsArg const &arg) |
| The name of an object, or the value of a literal constant. | |
| char const * | toString (ConstraintType type) |
| char const * | toString (InterpolationFunction function) |
| char const * | toString (InterpolationType type) |
| void | upgradeDocument (Detail::JSONNode &root, Diagnostics &diagnostics, ParseOptions const &options={}) |
| Rewrites everything that older versions of RooFit wrote in a way that is not part of the standard into the form that parseDocument() understands. | |
| void | upgradeHistFactoryDist (Detail::JSONNode &distribution, Version const &version, Diagnostics &diagnostics) |
| Same as upgradeDocument(), but for a single HistFactory distribution that doesn't come with a document. | |
| std::optional< ValidatedHS3Document > | validate (HS3Document doc, Diagnostics &diagnostics, ValidateOptions const &options={}) |
| Checks what can be checked without knowing how the objects are built: unique names, that the references can be resolved, and that the sizes of arrays are consistent. | |
| void | validateHistFactoryDist (HistFactoryDist const &dist, std::string const &name, Diagnostics &diagnostics) |
| Same as validate(), but for a single HistFactory distribution that doesn't come with a document. | |
| void | writeContents (Detail::JSONNode &node, std::vector< double > const &values) |
| Writes an array of numbers, each as an integer if it has no fractional part. | |
| void | writeDocument (Detail::JSONNode &root, HS3Document const &doc) |
| Writes everything but the distributions and functions, which are written one by one while they are exported: the generic ones by the exporters, and the others with functions like writeHistFactoryDist(). | |
| void | writeHistFactoryDist (Detail::JSONNode &node, HistFactoryDist const &dist) |
| Writes a HistFactory distribution, without its name. | |
| void | writeInterpolatedFunction (Detail::JSONNode &node, InterpolatedFunction const &function) |
| Writes the functions "interpolation" and "interpolation0d", with a single interpolation if they are all the same. | |
| void | writeInterpolatedNumber (Detail::JSONNode &node, InterpolatedNumber const &function) |
| void | writeInterpolation (Detail::JSONNode &node, Interpolation const &interpolation) |
| void | writeNumber (Detail::JSONNode &node, double value) |
| Writes a number, as an integer if it has no fractional part. | |
Variables | |
| constexpr Interpolation | additivePiecewiseLinear |
| constexpr Interpolation | additivePolynomialLinear |
| constexpr Interpolation | additiveQuadraticLinear |
| constexpr char const * | defaultDomainName = "default_domain" |
| The domain in which RooFit writes the ranges of all variables. It is a convention of RooFit, not of the standard. | |
| constexpr Interpolation | multiplicativePiecewiseExponential |
| constexpr Interpolation | multiplicativePolynomialExponential |
| constexpr Interpolation | multiplicativePolynomialLinear |
| constexpr auto | supportedVersion = "0.3" |
Types that represent an HS3 document.
They follow the structure of the HS3 standard, and this header must not depend on RooFit: creating RooFit objects from a document is a separate step.
| using RooFit::HS3::Binning = std::variant<RegularBinning, EdgesBinning> |
Definition at line 94 of file HS3Document.h.
| using RooFit::HS3::Constraint = std::variant<Unconstrained, ConstraintType, ConstraintPdf> |
Definition at line 320 of file HS3Document.h.
| using RooFit::HS3::DataRef = Ref<struct DataTag> |
Definition at line 68 of file HS3Document.h.
| using RooFit::HS3::Diagnostics = std::vector<Diagnostic> |
Definition at line 508 of file HS3Document.h.
| typedef Ref< struct DistributionTag > RooFit::HS3::DistributionRef = Ref<struct DistributionTag> |
Definition at line 40 of file RooJSONFactoryWSTool.h.
| using RooFit::HS3::DomainRef = Ref<struct DomainTag> |
Definition at line 69 of file HS3Document.h.
| using RooFit::HS3::GammaConstraint = std::variant<Unconstrained, ConstraintType, ConstantGammas, GammaConstraintPdfs> |
Definition at line 368 of file HS3Document.h.
| using RooFit::HS3::LikelihoodRef = Ref<struct LikelihoodTag> |
Definition at line 70 of file HS3Document.h.
| using RooFit::HS3::Modifier = std::variant<NormFactor, NormSys, HistoSys, ShapeSys, StatError, CustomModifier> |
Definition at line 391 of file HS3Document.h.
| using RooFit::HS3::NameOrNumber = std::variant<std::string, double> |
A name, or a number for a constant.
Definition at line 426 of file HS3Document.h.
| using RooFit::HS3::ParameterPointRef = Ref<struct ParameterPointTag> |
Definition at line 71 of file HS3Document.h.
| using RooFit::HS3::ParameterRef = Ref<struct ParameterTag> |
Definition at line 72 of file HS3Document.h.
|
strong |
The constraint types that older documents named, for which RooFit creates the constraint terms.
| Enumerator | |
|---|---|
| Gauss | |
| Poisson | |
| LogNormal | |
Definition at line 301 of file HS3Document.h.
|
strong |
The RooFit classes that implement the interpolations, which encode them with integer codes.
| Enumerator | |
|---|---|
| Piecewise | |
| Flexible | |
Definition at line 290 of file HS3Document.h.
|
strong |
| Enumerator | |
|---|---|
| Poly1 | |
| Poly2 | |
| Poly6 | |
| Exp | |
Definition at line 240 of file HS3Document.h.
|
strong |
| Enumerator | |
|---|---|
| Add | |
| Mult | |
Definition at line 235 of file HS3Document.h.
| void RooFit::HS3::buildHistFactoryDist | ( | RooJSONFactoryWSTool & | tool, |
| std::string const & | name, | ||
| HistFactoryDist const & | dist, | ||
| std::vector< DistributionRef > const * | channelConstraints = nullptr ) |
Create the RooFit objects of a HistFactory distribution in the workspace of the tool.
The constraint terms that no modifier names are passed separately.
Definition at line 1818 of file JSONFactories_HistFactory.cxx.
| void RooFit::HS3::checkDocument | ( | HS3Document const & | doc, |
| Diagnostics & | diagnostics, | ||
| ValidateOptions const & | options = {} ) |
The checks of validate(), for a document that is still needed if it doesn't pass them.
Definition at line 716 of file HS3Validate.cxx.
| std::optional< int > RooFit::HS3::codeFromInterpolation | ( | Interpolation const & | interpolation, |
| InterpolationClass | interpolationClass ) |
The integer code of an interpolation, or nothing if the class can't represent the interpolation.
Definition at line 83 of file HS3Parser.cxx.
| std::unique_ptr< RooDataHist > RooFit::HS3::createDataHist | ( | std::string const & | name, |
| RooArgSet const & | vars, | ||
| std::vector< double > const & | contents, | ||
| std::vector< double > const * | errors ) |
Create a RooDataHist with the contents and errors. If there are no errors, it doesn't store squared weights.
Definition at line 1981 of file RooJSONFactoryWSTool.cxx.
| RooArgSet RooFit::HS3::createObservables | ( | std::vector< BinnedAxis > const & | axes | ) |
Create the variables for the axes of binned data.
Definition at line 1972 of file RooJSONFactoryWSTool.cxx.
Definition at line 696 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| Attributes & | attributes ) |
Definition at line 1111 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| BinnedAxis & | axis ) |
Definition at line 329 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| BinnedData & | data ) |
Definition at line 556 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| CategoricalAxis & | axis ) |
Definition at line 361 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| CombinedDataset & | info ) |
Definition at line 1142 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| CombinedDistribution & | info ) |
Definition at line 1131 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| ContinuousAxis & | axis ) |
Definition at line 322 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| CustomModifier & | m ) |
Definition at line 988 of file HS3Parser.cxx.
Definition at line 428 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| DomainAxis & | axis ) |
Definition at line 283 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| GaussianUncertainty & | uncertainty ) |
Definition at line 535 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| HistFactoryDist & | dist ) |
Definition at line 1049 of file HS3Parser.cxx.
Definition at line 955 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| HistoSysVariation & | variation ) |
Definition at line 949 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| Likelihood & | likelihood ) |
Definition at line 658 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| ModelConfigInfo & | info ) |
Definition at line 1152 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| NormFactor & | m ) |
Definition at line 930 of file HS3Parser.cxx.
Definition at line 937 of file HS3Parser.cxx.
Definition at line 277 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| ParameterPoint & | point ) |
Definition at line 468 of file HS3Parser.cxx.
Definition at line 474 of file HS3Parser.cxx.
Definition at line 1027 of file HS3Parser.cxx.
Definition at line 967 of file HS3Parser.cxx.
Definition at line 981 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| StatErrorConfig & | config ) |
Definition at line 1037 of file HS3Parser.cxx.
| void RooFit::HS3::describe | ( | Reader & | ar, |
| UnbinnedData & | data ) |
Definition at line 481 of file HS3Parser.cxx.
| void RooFit::HS3::factorOutDefaultInterpolation | ( | HistFactoryDist & | dist | ) |
Makes the most common interpolation of the modifiers the "default_interpolation", which they then don't repeat.
Definition at line 185 of file HS3Document.cxx.
| bool RooFit::HS3::hasErrors | ( | Diagnostics const & | diagnostics | ) |
Whether there is a diagnostic with error severity.
Definition at line 94 of file HS3Parser.cxx.
| void RooFit::HS3::importHistFactoryNode | ( | RooJSONFactoryWSTool & | tool, |
| Detail::JSONNode const & | node, | ||
| std::vector< DistributionRef > const * | channelConstraints ) |
What the built-in importer does with a HistFactory distribution, plus the constraint terms of the channel.
Definition at line 1930 of file JSONFactories_HistFactory.cxx.
| std::optional< Interpolation > RooFit::HS3::interpolationFromCode | ( | int | code, |
| InterpolationClass | interpolationClass ) |
The interpolation for an integer code, or nothing if the class doesn't support the code.
Definition at line 64 of file HS3Parser.cxx.
| bool RooFit::HS3::isBuiltinHistFactoryImporter | ( | JSONIO::Importer const & | importer | ) |
Whether this is the importer that RooFit registers for HistFactory distributions, as opposed to the one of a user.
Definition at line 1924 of file JSONFactories_HistFactory.cxx.
| void RooFit::HS3::mergeDuplicateModifiers | ( | HistFactoryDist & | dist, |
| std::string const & | channel, | ||
| Diagnostics & | diagnostics ) |
Combines the modifiers of a sample that have the same type and name, which HistFactory models can have but documents can't: normsys by multiplying their variations, and histosys by adding up their differences to the nominal contents.
The modifiers of a type must be sorted by name. Other duplicates are errors.
Definition at line 128 of file HS3Document.cxx.
|
inline |
Definition at line 258 of file HS3Document.h.
|
inline |
Definition at line 262 of file HS3Document.h.
Definition at line 42 of file HS3Document.h.
|
inline |
Definition at line 326 of file HS3Document.h.
|
inline |
Definition at line 254 of file HS3Document.h.
|
inline |
Definition at line 322 of file HS3Document.h.
| RooFit::HS3::overloaded | ( | Ts... | ) | -> overloaded< Ts... > |
| std::vector< BinnedAxis > RooFit::HS3::parseBinnedAxes | ( | Detail::JSONNode const & | axes, |
| Diagnostics & | diagnostics ) |
Reads the axes of binned data that doesn't come with a document.
Definition at line 1436 of file HS3Parser.cxx.
| HS3Document RooFit::HS3::parseDocument | ( | Detail::JSONNode const & | root, |
| Diagnostics & | diagnostics, | ||
| ParseOptions const & | options = {} ) |
Reads a document.
The generic objects in the document refer to nodes of the JSON tree, so the tree must outlive the document. Problems are reported in diagnostics, and if there are errors the document must not be used.
Definition at line 1277 of file HS3Parser.cxx.
| HistFactoryDist RooFit::HS3::parseHistFactoryDist | ( | Detail::JSONNode const & | distribution, |
| Diagnostics & | diagnostics ) |
Reads a HistFactory distribution that doesn't come with a document.
Definition at line 1313 of file HS3Parser.cxx.
| InterpolatedFunction RooFit::HS3::parseInterpolatedFunction | ( | Detail::JSONNode const & | node, |
| Diagnostics & | diagnostics ) |
Reads the functions "interpolation" and "interpolation0d", which don't come with a document.
Older versions of RooFit wrote integer "interpolationCodes" instead of "interpolations".
Definition at line 1443 of file HS3Parser.cxx.
| InterpolatedNumber RooFit::HS3::parseInterpolatedNumber | ( | Detail::JSONNode const & | node, |
| Diagnostics & | diagnostics ) |
Definition at line 1450 of file HS3Parser.cxx.
Reads the leading "MAJOR.MINOR" and the optional ".PATCH" of an HS3 version string.
Definition at line 202 of file HS3Parser.cxx.
| void RooFit::HS3::readCombinedData | ( | Reader & | ar, |
| std::string const & | name, | ||
| CombinedData & | data ) |
Definition at line 575 of file HS3Parser.cxx.
| std::optional< Interpolation > RooFit::HS3::readInterpolationCode | ( | Cursor const & | c, |
| InterpolationClass | interpolationClass ) |
Reads an integer interpolation code, as older versions of RooFit wrote them.
Definition at line 1337 of file HS3Parser.cxx.
| void RooFit::HS3::readModifierName | ( | Reader & | ar, |
| std::string & | name ) |
Definition at line 908 of file HS3Parser.cxx.
| void RooFit::HS3::readParameter | ( | Reader & | ar, |
| ParameterRef & | parameter ) |
Definition at line 916 of file HS3Parser.cxx.
Definition at line 193 of file HS3Parser.cxx.
Definition at line 627 of file HS3Parser.cxx.
Definition at line 173 of file HS3Parser.cxx.
Definition at line 1095 of file HS3Parser.cxx.
Definition at line 182 of file HS3Parser.cxx.
| void RooFit::HS3::readValue | ( | Cursor const & | c, |
| Interpolation & | out ) |
Definition at line 777 of file HS3Parser.cxx.
Definition at line 993 of file HS3Parser.cxx.
| void RooFit::HS3::readValue | ( | Cursor const & | c, |
| NameOrNumber & | out ) |
Definition at line 1328 of file HS3Parser.cxx.
| void RooFit::HS3::readValue | ( | Cursor const & | c, |
| ParameterValue & | p ) |
Definition at line 442 of file HS3Parser.cxx.
Definition at line 105 of file HS3Schema.h.
| void RooFit::HS3::readValue | ( | Cursor const & | c, |
| std::string & | out ) |
Definition at line 164 of file HS3Parser.cxx.
| void RooFit::HS3::readValue | ( | Cursor const & | c, |
| std::variant< BinnedAxis, CategoricalAxis > & | out ) |
Definition at line 423 of file HS3Parser.cxx.
| void RooFit::HS3::readValue | ( | Cursor const & | c, |
| std::variant< ContinuousAxis, CategoricalAxis > & | out ) |
Definition at line 418 of file HS3Parser.cxx.
| void RooFit::HS3::readValue | ( | Cursor const & | c, |
| std::variant< DomainAxis, CategoricalAxis > & | out ) |
Definition at line 413 of file HS3Parser.cxx.
| void RooFit::HS3::readValue | ( | Cursor const & | c, |
| std::vector< T > & | out ) |
Definition at line 111 of file HS3Schema.h.
| auto RooFit::HS3::readValue | ( | Cursor const & | c, |
| T & | out ) -> std::void_t<decltype(describe(std::declval<Reader &>(), out))> |
Everything that has a describe() function is read from a struct.
Definition at line 130 of file HS3Schema.h.
| void RooFit::HS3::report | ( | Diagnostics const & | diagnostics | ) |
Forward the warnings to the message service, and throw if there are errors.
Definition at line 396 of file RooJSONFactoryWSTool.cxx.
| void RooFit::HS3::setExportedObject | ( | RooJSONFactoryWSTool & | tool, |
| HistFactoryDist | dist, | ||
| std::vector< DistributionRef > | channelConstraints ) |
Called by the exporter of a HistFactory distribution, which is then written by the tool.
The constraint terms that no modifier names are passed separately.
Definition at line 182 of file RooJSONFactoryWSTool.cxx.
| HS3::BinnedAxis RooFit::HS3::toBinnedAxis | ( | RooRealVar const & | var | ) |
The axis of binned data for a variable.
Definition at line 1083 of file RooJSONFactoryWSTool.cxx.
| HS3::NameOrNumber RooFit::HS3::toNameOrNumber | ( | RooAbsArg const & | arg | ) |
The name of an object, or the value of a literal constant.
Definition at line 1095 of file RooJSONFactoryWSTool.cxx.
| char const * RooFit::HS3::toString | ( | ConstraintType | type | ) |
Definition at line 767 of file HS3Parser.cxx.
| char const * RooFit::HS3::toString | ( | InterpolationFunction | function | ) |
Definition at line 756 of file HS3Parser.cxx.
| char const * RooFit::HS3::toString | ( | InterpolationType | type | ) |
Definition at line 751 of file HS3Parser.cxx.
| void RooFit::HS3::upgradeDocument | ( | Detail::JSONNode & | root, |
| Diagnostics & | diagnostics, | ||
| ParseOptions const & | options = {} ) |
Rewrites everything that older versions of RooFit wrote in a way that is not part of the standard into the form that parseDocument() understands.
Definition at line 403 of file HS3Upgrade.cxx.
| void RooFit::HS3::upgradeHistFactoryDist | ( | Detail::JSONNode & | distribution, |
| Version const & | version, | ||
| Diagnostics & | diagnostics ) |
Same as upgradeDocument(), but for a single HistFactory distribution that doesn't come with a document.
Names that can't be resolved in the document are assumed to refer to distributions.
Definition at line 440 of file HS3Upgrade.cxx.
| std::optional< ValidatedHS3Document > RooFit::HS3::validate | ( | HS3Document | doc, |
| Diagnostics & | diagnostics, | ||
| ValidateOptions const & | options = {} ) |
Checks what can be checked without knowing how the objects are built: unique names, that the references can be resolved, and that the sizes of arrays are consistent.
Gives nothing if there are errors.
Definition at line 721 of file HS3Validate.cxx.
| void RooFit::HS3::validateHistFactoryDist | ( | HistFactoryDist const & | dist, |
| std::string const & | name, | ||
| Diagnostics & | diagnostics ) |
Same as validate(), but for a single HistFactory distribution that doesn't come with a document.
Definition at line 730 of file HS3Validate.cxx.
| void RooFit::HS3::writeContents | ( | Detail::JSONNode & | node, |
| std::vector< double > const & | values ) |
Writes an array of numbers, each as an integer if it has no fractional part.
Definition at line 418 of file HS3Writer.cxx.
| void RooFit::HS3::writeDocument | ( | Detail::JSONNode & | root, |
| HS3Document const & | doc ) |
Writes everything but the distributions and functions, which are written one by one while they are exported: the generic ones by the exporters, and the others with functions like writeHistFactoryDist().
Definition at line 517 of file HS3Writer.cxx.
| void RooFit::HS3::writeHistFactoryDist | ( | Detail::JSONNode & | node, |
| HistFactoryDist const & | dist ) |
Writes a HistFactory distribution, without its name.
Definition at line 491 of file HS3Writer.cxx.
| void RooFit::HS3::writeInterpolatedFunction | ( | Detail::JSONNode & | node, |
| InterpolatedFunction const & | function ) |
Writes the functions "interpolation" and "interpolation0d", with a single interpolation if they are all the same.
Definition at line 480 of file HS3Writer.cxx.
| void RooFit::HS3::writeInterpolatedNumber | ( | Detail::JSONNode & | node, |
| InterpolatedNumber const & | function ) |
Definition at line 486 of file HS3Writer.cxx.
| void RooFit::HS3::writeInterpolation | ( | Detail::JSONNode & | node, |
| Interpolation const & | interpolation ) |
Definition at line 426 of file HS3Writer.cxx.
| void RooFit::HS3::writeNumber | ( | Detail::JSONNode & | node, |
| double | value ) |
Writes a number, as an integer if it has no fractional part.
Definition at line 408 of file HS3Writer.cxx.
|
inlineconstexpr |
Definition at line 273 of file HS3Document.h.
|
inlineconstexpr |
Definition at line 279 of file HS3Document.h.
|
inlineconstexpr |
Definition at line 277 of file HS3Document.h.
|
inlineconstexpr |
The domain in which RooFit writes the ranges of all variables. It is a convention of RooFit, not of the standard.
Definition at line 132 of file HS3Document.h.
|
inlineconstexpr |
Definition at line 275 of file HS3Document.h.
|
inlineconstexpr |
Definition at line 281 of file HS3Document.h.
|
inlineconstexpr |
Definition at line 283 of file HS3Document.h.
|
constexpr |
Definition at line 29 of file HS3Parser.cxx.