#include "JSONIOUtils.h"#include <RooAbsBinning.h>#include <RooAbsLValue.h>#include <RooArgList.h>#include <RooCategory.h>#include <RooConstVar.h>#include <RooDataHist.h>#include <RooSuperCategory.h>#include <RooWorkspace.h>#include <RooStats/HistFactory/ParamHistFunc.h>#include <RooFitHS3/RooJSONFactoryWSTool.h>#include <algorithm>#include <cctype>#include <cstring>#include <set>#include <sstream>#include <string>#include <utility>Functions | |
| void | checkParamHistFuncOrderIsDefined (std::string const &hs3Version, RooAbsCollection const &vars, std::string const &context) |
| bool | endsWith (std::string_view str, std::string_view suffix) |
| std::unique_ptr< RooArgSet > | histogramVariablesNamedAfterObservables (RooDataHist const &dh, RooArgSet const &histObs, RooArgSet const &funcObs) |
| bool | isHS3VersionBefore (std::string const &version, int major, int minor) |
| bool | isLiteralConstVar (RooAbsArg const &arg) |
| std::vector< RooAbsReal * > | paramHistFuncParamsInBinOrder (ParamHistFunc const &func) |
| bool | parseHS3Version (std::string const &version, int &major, int &minor) |
| std::vector< RooCategory * > | readSelectionColumns (RooWorkspace const &ws, JSONNode const &node, const char *field, std::string const &context) |
| std::vector< std::string > | readSelectionKey (JSONNode const &component, std::vector< RooCategory * > const &columns, std::string const &context) |
| std::string | removeSuffix (std::string_view str, std::string_view suffix) |
| std::vector< RooCategory const * > | selectionColumns (RooAbsCategory const &indexCat) |
| std::vector< RooCategory const * > | selectionColumns (RooAbsCollection const &vars) |
| std::vector< std::vector< std::string > > | selectionKeys (std::vector< RooCategory const * > const &columns) |
| std::string | selectionKeyToString (std::vector< std::string > const &key) |
| std::string | selectionLabel (RooAbsCategory const &indexCat, std::vector< RooCategory const * > const &columns, std::vector< std::string > const &key) |
| std::string | selectionLabel (std::vector< std::string > const &key) |
| bool | startsWith (std::string_view str, std::string_view prefix) |
| ToNumberOutput | toNumber (const std::string &str) |
| RooArgList | toParamHistFuncOrder (RooArgList const ¶msInBinOrder, RooAbsCollection const &vars) |
| void | writeAxisBinning (JSONNode &node, const RooAbsBinning &binning) |
| void | writeReference (JSONNode &node, RooAbsArg const &arg) |
| void checkParamHistFuncOrderIsDefined | ( | std::string const & | hs3Version, |
| RooAbsCollection const & | vars, | ||
| std::string const & | context ) |
Definition at line 198 of file JSONIOUtils.cxx.
| bool endsWith | ( | std::string_view | str, |
| std::string_view | suffix ) |
Definition at line 57 of file JSONIOUtils.cxx.
| std::unique_ptr< RooArgSet > histogramVariablesNamedAfterObservables | ( | RooDataHist const & | dh, |
| RooArgSet const & | histObs, | ||
| RooArgSet const & | funcObs ) |
Definition at line 155 of file JSONIOUtils.cxx.
Definition at line 113 of file JSONIOUtils.cxx.
Definition at line 36 of file JSONIOUtils.cxx.
| std::vector< RooAbsReal * > paramHistFuncParamsInBinOrder | ( | ParamHistFunc const & | func | ) |
Definition at line 171 of file JSONIOUtils.cxx.
Definition at line 89 of file JSONIOUtils.cxx.
| std::vector< RooCategory * > readSelectionColumns | ( | RooWorkspace const & | ws, |
| JSONNode const & | node, | ||
| const char * | field, | ||
| std::string const & | context ) |
Definition at line 309 of file JSONIOUtils.cxx.
| std::vector< std::string > readSelectionKey | ( | JSONNode const & | component, |
| std::vector< RooCategory * > const & | columns, | ||
| std::string const & | context ) |
Definition at line 336 of file JSONIOUtils.cxx.
| std::string removeSuffix | ( | std::string_view | str, |
| std::string_view | suffix ) |
Definition at line 62 of file JSONIOUtils.cxx.
| std::vector< RooCategory const * > selectionColumns | ( | RooAbsCategory const & | indexCat | ) |
Definition at line 220 of file JSONIOUtils.cxx.
| std::vector< RooCategory const * > selectionColumns | ( | RooAbsCollection const & | vars | ) |
Definition at line 243 of file JSONIOUtils.cxx.
| std::vector< std::vector< std::string > > selectionKeys | ( | std::vector< RooCategory const * > const & | columns | ) |
Definition at line 255 of file JSONIOUtils.cxx.
| std::string selectionKeyToString | ( | std::vector< std::string > const & | key | ) |
Definition at line 283 of file JSONIOUtils.cxx.
| std::string selectionLabel | ( | RooAbsCategory const & | indexCat, |
| std::vector< RooCategory const * > const & | columns, | ||
| std::vector< std::string > const & | key ) |
Definition at line 292 of file JSONIOUtils.cxx.
| std::string selectionLabel | ( | std::vector< std::string > const & | key | ) |
Definition at line 271 of file JSONIOUtils.cxx.
| bool startsWith | ( | std::string_view | str, |
| std::string_view | prefix ) |
Definition at line 52 of file JSONIOUtils.cxx.
| ToNumberOutput toNumber | ( | const std::string & | str | ) |
Definition at line 25 of file JSONIOUtils.cxx.
| RooArgList toParamHistFuncOrder | ( | RooArgList const & | paramsInBinOrder, |
| RooAbsCollection const & | vars ) |
Definition at line 180 of file JSONIOUtils.cxx.
| void writeAxisBinning | ( | JSONNode & | node, |
| const RooAbsBinning & | binning ) |
Definition at line 72 of file JSONIOUtils.cxx.
Definition at line 43 of file JSONIOUtils.cxx.