69 std::vector<std::pair<std::string, RooFit::HS3::NameOrNumber>>
fields;
71std::optional<ArrayComponentInfo>
78 std::vector<RooAbsPdf const *>
const &components);
81std::optional<double>
toNumber(
const std::string &str);
83bool startsWith(std::string_view str, std::string_view prefix);
84bool endsWith(std::string_view str, std::string_view suffix);
85std::string
removeSuffix(std::string_view str, std::string_view suffix);
109std::unique_ptr<RooArgSet>
119 std::string
const &context);
129std::vector<std::vector<std::string>>
selectionKeys(std::vector<RooCategory const *>
const &columns);
135 std::vector<std::string>
const &key);
144template <
class ImportFunc>
150 if constexpr (std::is_void_v<
decltype(
_func(tool,
p))>) {
162template <
class RooArg_t>
167template <
class RooArg_t,
class Func>
174 std::string
const &
key()
const override {
return _key; }
178 elem[
"type"] <<
_key;
179 _func(tool,
static_cast<RooArg_t
const &
>(*arg), elem);
190template <
class ImportFunc>
196template <
class RooArg_t,
class Func>
205template <
class ImportFunc,
class RooArg_t>
207 bool autoExportDependants =
true)
210 registerExporter<RooArg_t>(key, exportFunc, autoExportDependants);
std::optional< double > toNumber(const std::string &str)
void checkParamHistFuncOrderIsDefined(RooFit::HS3::Version const &version, RooAbsCollection const &vars, std::string const &context)
void writeArrayDist(RooJSONFactoryWSTool &tool, RooFit::Detail::JSONNode &elem, std::string const &name, std::vector< RooAbsPdf const * > const &components)
constexpr const char * helperObjectTag
bool isSkippedHelper(RooAbsArg const &arg, RooWorkspace const &ws)
std::vector< std::vector< std::string > > selectionKeys(std::vector< RooCategory const * > const &columns)
std::string transformedOriginal(std::string_view name, std::string_view suffix)
void registerExporter(std::string key, Func func, bool autoExportDependants=true)
bool isLiteralIdentifier(std::string_view name)
std::string transformedBaseName(RooAbsReal const ¶m)
std::vector< RooCategory const * > selectionColumns(RooAbsCategory const &indexCat)
std::vector< RooAbsReal * > paramHistFuncParamsInBinOrder(ParamHistFunc const &func)
std::string transformedArgument(RooAbsReal const ¶m)
void(*)(RooJSONFactoryWSTool *, RooArg_t const &, RooFit::Detail::JSONNode &) ExportFunc
RooArgList toParamHistFuncOrder(RooArgList const ¶msInBinOrder, RooAbsCollection const &vars)
std::string selectionKeyToString(std::vector< std::string > const &key)
constexpr const char * arrayDistTag
bool startsWith(std::string_view str, std::string_view prefix)
bool endsWith(std::string_view str, std::string_view suffix)
std::optional< ArrayComponentInfo > arrayComponentInfo(RooAbsPdf const &pdf, std::string const *observable=nullptr, RooJSONFactoryWSTool *tool=nullptr)
std::string selectionLabel(std::vector< std::string > const &key)
bool isLiteralConstVar(RooAbsArg const &arg)
std::string removeSuffix(std::string_view str, std::string_view suffix)
std::unique_ptr< RooArgSet > histogramVariablesNamedAfterObservables(RooDataHist const &dh, RooArgSet const &histObs, RooArgSet const &funcObs)
void writeReference(RooFit::Detail::JSONNode &node, RooAbsArg const &arg)
void registerImporter(const std::string &key, ImportFunc func)
void registerType(const std::string &key, ImportFunc importFunc, ExportFunc< RooArg_t > exportFunc, bool autoExportDependants=true)
winID h TVirtualViewer3D TVirtualGLPainter p
bool autoExportDependants() const override
bool exportObject(RooJSONFactoryWSTool *tool, const RooAbsArg *arg, RooFit::Detail::JSONNode &elem) const override
FuncExporter(Func func, std::string key, bool autoExportDependants)
std::string const & key() const override
const bool _autoExportDependants
FuncImporter(ImportFunc func)
bool importArg(RooJSONFactoryWSTool *tool, const RooFit::Detail::JSONNode &p) const override
A class which maps the current values of a RooRealVar (or a set of RooRealVars) to one of a number of...
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Abstract base class for RooRealVar binning definitions.
A space to attach TBranches.
Abstract container object that can hold multiple RooAbsArg objects.
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.
Object to represent discrete states.
Container class to hold N-dimensional binned data.
Persistable container for RooFit projects.
static bool registerImporter(const std::string &key, bool topPriority=true)
static bool registerExporter(const TClass *key, bool topPriority=true)
std::vector< std::pair< std::string, RooFit::HS3::NameOrNumber > > fields