Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooJSONFactoryWSTool Class Reference

When using RooFit, statistical models can be conveniently handled and stored as a RooWorkspace.

However, for the sake of interoperability with other statistical frameworks, and also ease of manipulation, it may be useful to store statistical models in text form.

The RooJSONFactoryWSTool is a helper class to achieve exactly this, exporting to and importing from JSON and YML.

In order to import a workspace from a JSON file, you can do

ws = ROOT.RooWorkspace("ws")
tool = ROOT.RooJSONFactoryWSTool(ws)
tool.importJSON("myjson.json")

Similarly, in order to export a workspace to a JSON file, you can do

tool = ROOT.RooJSONFactoryWSTool(ws)
tool.exportJSON("myjson.json")

For more details, consult the tutorial rf515_hfJSON.

In order to import and export YML files, ROOT needs to be compiled with the external dependency RapidYAML, which needs to be installed on your system and enabled via the CMake option roofit_hs3_ryml.

The RooJSONFactoryWSTool only knows about a limited set of classes for import and export. If import or export of a class you're interested in fails, you might need to add your own importer or exporter. Please consult the README to learn how to do that.

You can always get a list of all the avialable importers and exporters by calling the following functions:

tool = ROOT.RooJSONFactoryWSTool(ws)
tool.printImporters()
tool.printExporters()
tool.printFactoryExpressions()
tool.printExportKeys()

Alternatively, you can generate a LaTeX version of the available importers and exporters by calling

tool = ROOT.RooJSONFactoryWSTool(ws)
tool.writedoc("hs3.tex")

Definition at line 43 of file RooJSONFactoryWSTool.h.

Classes

struct  Config
 
class  DependencyMissingError
 
class  Exporter
 
struct  ExportKeys
 
class  Importer
 
struct  ImportExpression
 
class  MissingRootnodeError
 
struct  Scope
 
struct  Var
 

Public Types

typedef std::map< TClass const *, ExportKeysExportKeysMap
 
typedef std::map< TClass const *, std::vector< std::unique_ptr< const Exporter > > > ExportMap
 
typedef std::map< const std::string, ImportExpressionImportExpressionMap
 
typedef std::map< const std::string, std::vector< std::unique_ptr< const Importer > > > ImportMap
 

Public Member Functions

 RooJSONFactoryWSTool (RooWorkspace &ws)
 
void append (RooFit::Experimental::JSONNode &n, const std::string &elem)
 
void clearScope ()
 
void configureToplevelPdf (const RooFit::Experimental::JSONNode &n, RooAbsPdf &pdf)
 
void configureVariable (const RooFit::Experimental::JSONNode &p, RooRealVar &v)
 
void exportAllObjects (RooFit::Experimental::JSONNode &n)
 
void exportAttributes (const RooAbsArg *arg, RooFit::Experimental::JSONNode &n)
 
void exportData (RooAbsData *data, RooFit::Experimental::JSONNode &n)
 
void exportDependants (const RooAbsArg *source, RooFit::Experimental::JSONNode &n)
 
void exportDependants (const RooAbsArg *source, RooFit::Experimental::JSONNode *n)
 
void exportFunctions (const RooArgSet &allElems, RooFit::Experimental::JSONNode &n)
 
bool exportJSON (std::ostream &os)
 
bool exportJSON (std::string const &fileName)
 
std::string exportJSONtoString ()
 
void exportObject (const RooAbsArg *func, RooFit::Experimental::JSONNode &n)
 
void exportVariable (const RooAbsReal *v, RooFit::Experimental::JSONNode &n)
 
void exportVariables (const RooArgSet &allElems, RooFit::Experimental::JSONNode &n)
 
bool exportYML (std::ostream &os)
 
bool exportYML (std::string const &fileName)
 
std::string exportYMLtoString ()
 
bool find (const RooFit::Experimental::JSONNode &n, const std::string &elem)
 
void getObservables (const RooFit::Experimental::JSONNode &n, const std::string &obsnamecomp, RooArgSet &out)
 
RooAbsArggetScopeObject (const std::string &name)
 
void importAllNodes (const RooFit::Experimental::JSONNode &n)
 
void importDependants (const RooFit::Experimental::JSONNode &n)
 
void importFunction (const RooFit::Experimental::JSONNode &n, bool isPdf)
 
void importFunctions (const RooFit::Experimental::JSONNode &n)
 
bool importJSON (std::istream &os)
 
bool importJSON (std::string const &filename)
 
bool importJSONfromString (const std::string &s)
 
void importPdfs (const RooFit::Experimental::JSONNode &n)
 
void importVariable (const RooFit::Experimental::JSONNode &n)
 
void importVariables (const RooFit::Experimental::JSONNode &n)
 
bool importYML (std::istream &os)
 
bool importYML (std::string const &filename)
 
bool importYMLfromString (const std::string &s)
 
std::ostream & log (int level) const
 
std::unique_ptr< RooDataHistreadBinnedData (const RooFit::Experimental::JSONNode &n, const std::string &namecomp, RooArgList observables)
 
template<class T >
T * request (const std::string &objname, const std::string &requestAuthor)
 
template<>
RooRealVarrequest (const std::string &objname, const std::string &requestAuthor)
 
template<>
RooAbsPdfrequest (const std::string &objname, const std::string &requestAuthor)
 
template<>
RooAbsRealrequest (const std::string &objname, const std::string &requestAuthor)
 
void setScopeObject (const std::string &key, RooAbsArg *obj)
 
void setScopeObservables (const RooArgList &args)
 
RooWorkspaceworkspace ()
 

Static Public Member Functions

static void clearExportKeys ()
 
static void clearFactoryExpressions ()
 
template<class T >
static std::string concat (const T *items, const std::string &sep=",")
 
static void error (const char *s)
 
static void error (const std::string &s)
 
static ExportMap const & exporters ()
 
static void exportHistogram (const TH1 &h, RooFit::Experimental::JSONNode &n, const std::vector< std::string > &obsnames, const TH1 *errH=0, bool writeObservables=true, bool writeErrors=true)
 
static ExportKeysMap const & exportKeys ()
 
static ImportExpressionMap const & functionImportExpressions ()
 
static std::vector< std::vector< int > > generateBinIndices (const RooArgList &vars)
 
static std::string genPrefix (const RooFit::Experimental::JSONNode &p, bool trailing_underscore)
 
static ImportMap const & importers ()
 
static void loadExportKeys (const std::string &fname)
 
static void loadFactoryExpressions (const std::string &fname)
 
static std::string name (const RooFit::Experimental::JSONNode &n)
 
template<class T >
static std::vector< std::string > names (const T *items)
 
static ImportExpressionMap const & pdfImportExpressions ()
 
static void printExporters ()
 
static void printExportKeys ()
 
static void printFactoryExpressions ()
 
static void printImporters ()
 
static std::map< std::string, RooJSONFactoryWSTool::VarreadObservables (const RooFit::Experimental::JSONNode &n, const std::string &obsnamecomp)
 
template<class T >
static bool registerExporter (const TClass *key, bool topPriority=true)
 
static bool registerExporter (const TClass *key, std::unique_ptr< const RooJSONFactoryWSTool::Exporter > f, bool topPriority=true)
 
template<class T >
static bool registerImporter (const std::string &key, bool topPriority=true)
 
static bool registerImporter (const std::string &key, std::unique_ptr< const RooJSONFactoryWSTool::Importer > f, bool topPriority=true)
 
static int removeExporters (const std::string &needle)
 
static int removeImporters (const std::string &needle)
 
static ExportMapstaticExporters ()
 
static ExportKeysMapstaticExportKeys ()
 
static ImportExpressionMapstaticFunctionImportExpressions ()
 
static ImportMapstaticImporters ()
 
static ImportExpressionMapstaticPdfImportExpressions ()
 
static void writeObservables (const TH1 &h, RooFit::Experimental::JSONNode &n, const std::vector< std::string > &varnames)
 

Public Attributes

friend DependencyMissingError
 

Protected Member Functions

RooRealVarcreateObservable (const std::string &name, const RooJSONFactoryWSTool::Var &var)
 
RooRealVargetWeightVar (const char *name)
 
const RooFit::Experimental::JSONNodeirootnode () const
 
std::map< std::string, std::unique_ptr< RooAbsData > > loadData (const RooFit::Experimental::JSONNode &n)
 
RooFit::Experimental::JSONNodeorootnode ()
 
std::unique_ptr< RooDataSetunbinned (RooDataHist const &hist)
 

Protected Attributes

const RooFit::Experimental::JSONNode_rootnode_input = nullptr
 
RooFit::Experimental::JSONNode_rootnode_output = nullptr
 
Scope _scope
 
RooWorkspace_workspace
 

#include <RooFitHS3/RooJSONFactoryWSTool.h>

Member Typedef Documentation

◆ ExportKeysMap

Definition at line 79 of file RooJSONFactoryWSTool.h.

◆ ExportMap

typedef std::map<TClass const *, std::vector<std::unique_ptr<const Exporter> > > RooJSONFactoryWSTool::ExportMap

Definition at line 78 of file RooJSONFactoryWSTool.h.

◆ ImportExpressionMap

typedef std::map<const std::string, ImportExpression> RooJSONFactoryWSTool::ImportExpressionMap

Definition at line 80 of file RooJSONFactoryWSTool.h.

◆ ImportMap

typedef std::map<const std::string, std::vector<std::unique_ptr<const Importer> > > RooJSONFactoryWSTool::ImportMap

Definition at line 77 of file RooJSONFactoryWSTool.h.

Constructor & Destructor Documentation

◆ RooJSONFactoryWSTool()

RooJSONFactoryWSTool::RooJSONFactoryWSTool ( RooWorkspace ws)
inline

Definition at line 150 of file RooJSONFactoryWSTool.h.

Member Function Documentation

◆ append()

void RooJSONFactoryWSTool::append ( RooFit::Experimental::JSONNode n,
const std::string &  elem 
)

Definition at line 697 of file RooJSONFactoryWSTool.cxx.

◆ clearExportKeys()

void RooJSONFactoryWSTool::clearExportKeys ( )
static

Definition at line 660 of file RooJSONFactoryWSTool.cxx.

◆ clearFactoryExpressions()

void RooJSONFactoryWSTool::clearFactoryExpressions ( )
static

Definition at line 518 of file RooJSONFactoryWSTool.cxx.

◆ clearScope()

void RooJSONFactoryWSTool::clearScope ( )

Definition at line 1261 of file RooJSONFactoryWSTool.cxx.

◆ concat()

template<class T >
static std::string RooJSONFactoryWSTool::concat ( const T *  items,
const std::string &  sep = "," 
)
inlinestatic

Definition at line 183 of file RooJSONFactoryWSTool.h.

◆ configureToplevelPdf()

void RooJSONFactoryWSTool::configureToplevelPdf ( const RooFit::Experimental::JSONNode n,
RooAbsPdf pdf 
)

Definition at line 1363 of file RooJSONFactoryWSTool.cxx.

◆ configureVariable()

void RooJSONFactoryWSTool::configureVariable ( const RooFit::Experimental::JSONNode p,
RooRealVar v 
)

Definition at line 1447 of file RooJSONFactoryWSTool.cxx.

◆ createObservable()

RooRealVar * RooJSONFactoryWSTool::createObservable ( const std::string &  name,
const RooJSONFactoryWSTool::Var var 
)
protected

Definition at line 1269 of file RooJSONFactoryWSTool.cxx.

◆ error() [1/2]

static void RooJSONFactoryWSTool::error ( const char *  s)
inlinestatic

Definition at line 180 of file RooJSONFactoryWSTool.h.

◆ error() [2/2]

static void RooJSONFactoryWSTool::error ( const std::string &  s)
inlinestatic

Definition at line 181 of file RooJSONFactoryWSTool.h.

◆ exportAllObjects()

void RooJSONFactoryWSTool::exportAllObjects ( RooFit::Experimental::JSONNode n)

Definition at line 1519 of file RooJSONFactoryWSTool.cxx.

◆ exportAttributes()

void RooJSONFactoryWSTool::exportAttributes ( const RooAbsArg arg,
RooFit::Experimental::JSONNode n 
)

Definition at line 706 of file RooJSONFactoryWSTool.cxx.

◆ exportData()

void RooJSONFactoryWSTool::exportData ( RooAbsData data,
RooFit::Experimental::JSONNode n 
)

Definition at line 1134 of file RooJSONFactoryWSTool.cxx.

◆ exportDependants() [1/2]

void RooJSONFactoryWSTool::exportDependants ( const RooAbsArg source,
RooFit::Experimental::JSONNode n 
)

Definition at line 1479 of file RooJSONFactoryWSTool.cxx.

◆ exportDependants() [2/2]

void RooJSONFactoryWSTool::exportDependants ( const RooAbsArg source,
RooFit::Experimental::JSONNode n 
)

Definition at line 1469 of file RooJSONFactoryWSTool.cxx.

◆ exporters()

static ExportMap const & RooJSONFactoryWSTool::exporters ( )
inlinestatic

Definition at line 174 of file RooJSONFactoryWSTool.h.

◆ exportFunctions()

void RooJSONFactoryWSTool::exportFunctions ( const RooArgSet allElems,
RooFit::Experimental::JSONNode n 
)

Definition at line 876 of file RooJSONFactoryWSTool.cxx.

◆ exportHistogram()

void RooJSONFactoryWSTool::exportHistogram ( const TH1 h,
RooFit::Experimental::JSONNode n,
const std::vector< std::string > &  obsnames,
const TH1 errH = 0,
bool  writeObservables = true,
bool  writeErrors = true 
)
static

Definition at line 574 of file RooJSONFactoryWSTool.cxx.

◆ exportJSON() [1/2]

bool RooJSONFactoryWSTool::exportJSON ( std::ostream &  os)

Definition at line 1666 of file RooJSONFactoryWSTool.cxx.

◆ exportJSON() [2/2]

bool RooJSONFactoryWSTool::exportJSON ( std::string const &  fileName)

Definition at line 1676 of file RooJSONFactoryWSTool.cxx.

◆ exportJSONtoString()

std::string RooJSONFactoryWSTool::exportJSONtoString ( )

Definition at line 1650 of file RooJSONFactoryWSTool.cxx.

◆ exportKeys()

static ExportKeysMap const & RooJSONFactoryWSTool::exportKeys ( )
inlinestatic

Definition at line 177 of file RooJSONFactoryWSTool.h.

◆ exportObject()

void RooJSONFactoryWSTool::exportObject ( const RooAbsArg func,
RooFit::Experimental::JSONNode n 
)

Definition at line 765 of file RooJSONFactoryWSTool.cxx.

◆ exportVariable()

void RooJSONFactoryWSTool::exportVariable ( const RooAbsReal v,
RooFit::Experimental::JSONNode n 
)

Definition at line 725 of file RooJSONFactoryWSTool.cxx.

◆ exportVariables()

void RooJSONFactoryWSTool::exportVariables ( const RooArgSet allElems,
RooFit::Experimental::JSONNode n 
)

Definition at line 752 of file RooJSONFactoryWSTool.cxx.

◆ exportYML() [1/2]

bool RooJSONFactoryWSTool::exportYML ( std::ostream &  os)

Definition at line 1689 of file RooJSONFactoryWSTool.cxx.

◆ exportYML() [2/2]

bool RooJSONFactoryWSTool::exportYML ( std::string const &  fileName)

Definition at line 1699 of file RooJSONFactoryWSTool.cxx.

◆ exportYMLtoString()

std::string RooJSONFactoryWSTool::exportYMLtoString ( )

Definition at line 1658 of file RooJSONFactoryWSTool.cxx.

◆ find()

bool RooJSONFactoryWSTool::find ( const RooFit::Experimental::JSONNode n,
const std::string &  elem 
)

Definition at line 682 of file RooJSONFactoryWSTool.cxx.

◆ functionImportExpressions()

static ImportExpressionMap const & RooJSONFactoryWSTool::functionImportExpressions ( )
inlinestatic

Definition at line 176 of file RooJSONFactoryWSTool.h.

◆ generateBinIndices()

std::vector< std::vector< int > > RooJSONFactoryWSTool::generateBinIndices ( const RooArgList vars)
static

Definition at line 545 of file RooJSONFactoryWSTool.cxx.

◆ genPrefix()

std::string RooJSONFactoryWSTool::genPrefix ( const RooFit::Experimental::JSONNode p,
bool  trailing_underscore 
)
static

Definition at line 248 of file RooJSONFactoryWSTool.cxx.

◆ getObservables()

void RooJSONFactoryWSTool::getObservables ( const RooFit::Experimental::JSONNode n,
const std::string &  obsnamecomp,
RooArgSet out 
)

Definition at line 1230 of file RooJSONFactoryWSTool.cxx.

◆ getScopeObject()

RooAbsArg * RooJSONFactoryWSTool::getScopeObject ( const std::string &  name)

Definition at line 1257 of file RooJSONFactoryWSTool.cxx.

◆ getWeightVar()

RooRealVar * RooJSONFactoryWSTool::getWeightVar ( const char *  name)
protected

Definition at line 1032 of file RooJSONFactoryWSTool.cxx.

◆ importAllNodes()

void RooJSONFactoryWSTool::importAllNodes ( const RooFit::Experimental::JSONNode n)

Definition at line 1712 of file RooJSONFactoryWSTool.cxx.

◆ importDependants()

void RooJSONFactoryWSTool::importDependants ( const RooFit::Experimental::JSONNode n)

Definition at line 1492 of file RooJSONFactoryWSTool.cxx.

◆ importers()

static ImportMap const & RooJSONFactoryWSTool::importers ( )
inlinestatic

Definition at line 173 of file RooJSONFactoryWSTool.h.

◆ importFunction()

void RooJSONFactoryWSTool::importFunction ( const RooFit::Experimental::JSONNode n,
bool  isPdf 
)

Definition at line 902 of file RooJSONFactoryWSTool.cxx.

◆ importFunctions()

void RooJSONFactoryWSTool::importFunctions ( const RooFit::Experimental::JSONNode n)

Definition at line 890 of file RooJSONFactoryWSTool.cxx.

◆ importJSON() [1/2]

bool RooJSONFactoryWSTool::importJSON ( std::istream &  os)

Definition at line 1748 of file RooJSONFactoryWSTool.cxx.

◆ importJSON() [2/2]

bool RooJSONFactoryWSTool::importJSON ( std::string const &  filename)

Definition at line 1761 of file RooJSONFactoryWSTool.cxx.

◆ importJSONfromString()

bool RooJSONFactoryWSTool::importJSONfromString ( const std::string &  s)

Definition at line 1636 of file RooJSONFactoryWSTool.cxx.

◆ importPdfs()

void RooJSONFactoryWSTool::importPdfs ( const RooFit::Experimental::JSONNode n)

Definition at line 1351 of file RooJSONFactoryWSTool.cxx.

◆ importVariable()

void RooJSONFactoryWSTool::importVariable ( const RooFit::Experimental::JSONNode n)

Definition at line 1427 of file RooJSONFactoryWSTool.cxx.

◆ importVariables()

void RooJSONFactoryWSTool::importVariables ( const RooFit::Experimental::JSONNode n)

Definition at line 1415 of file RooJSONFactoryWSTool.cxx.

◆ importYML() [1/2]

bool RooJSONFactoryWSTool::importYML ( std::istream &  os)

Definition at line 1774 of file RooJSONFactoryWSTool.cxx.

◆ importYML() [2/2]

bool RooJSONFactoryWSTool::importYML ( std::string const &  filename)

Definition at line 1786 of file RooJSONFactoryWSTool.cxx.

◆ importYMLfromString()

bool RooJSONFactoryWSTool::importYMLfromString ( const std::string &  s)

Definition at line 1643 of file RooJSONFactoryWSTool.cxx.

◆ irootnode()

const RooFit::Experimental::JSONNode & RooJSONFactoryWSTool::irootnode ( ) const
protected

Definition at line 126 of file RooJSONFactoryWSTool.cxx.

◆ loadData()

std::map< std::string, std::unique_ptr< RooAbsData > > RooJSONFactoryWSTool::loadData ( const RooFit::Experimental::JSONNode n)
protected

Definition at line 1044 of file RooJSONFactoryWSTool.cxx.

◆ loadExportKeys()

void RooJSONFactoryWSTool::loadExportKeys ( const std::string &  fname)
static

Definition at line 618 of file RooJSONFactoryWSTool.cxx.

◆ loadFactoryExpressions()

void RooJSONFactoryWSTool::loadFactoryExpressions ( const std::string &  fname)
static

Definition at line 468 of file RooJSONFactoryWSTool.cxx.

◆ log()

std::ostream & RooJSONFactoryWSTool::log ( int  level) const

Definition at line 1799 of file RooJSONFactoryWSTool.cxx.

◆ name()

std::string RooJSONFactoryWSTool::name ( const RooFit::Experimental::JSONNode n)
static

Definition at line 1506 of file RooJSONFactoryWSTool.cxx.

◆ names()

template<class T >
static std::vector< std::string > RooJSONFactoryWSTool::names ( const T *  items)
inlinestatic

Definition at line 206 of file RooJSONFactoryWSTool.h.

◆ orootnode()

RooFit::Experimental::JSONNode & RooJSONFactoryWSTool::orootnode ( )
protected

Definition at line 120 of file RooJSONFactoryWSTool.cxx.

◆ pdfImportExpressions()

static ImportExpressionMap const & RooJSONFactoryWSTool::pdfImportExpressions ( )
inlinestatic

Definition at line 175 of file RooJSONFactoryWSTool.h.

◆ printExporters()

void RooJSONFactoryWSTool::printExporters ( )
static

Definition at line 352 of file RooJSONFactoryWSTool.cxx.

◆ printExportKeys()

void RooJSONFactoryWSTool::printExportKeys ( )
static

Definition at line 666 of file RooJSONFactoryWSTool.cxx.

◆ printFactoryExpressions()

void RooJSONFactoryWSTool::printFactoryExpressions ( )
static

Definition at line 524 of file RooJSONFactoryWSTool.cxx.

◆ printImporters()

void RooJSONFactoryWSTool::printImporters ( )
static

Definition at line 342 of file RooJSONFactoryWSTool.cxx.

◆ readBinnedData()

std::unique_ptr< RooDataHist > RooJSONFactoryWSTool::readBinnedData ( const RooFit::Experimental::JSONNode n,
const std::string &  namecomp,
RooArgList  observables 
)

Definition at line 1284 of file RooJSONFactoryWSTool.cxx.

◆ readObservables()

std::map< std::string, RooJSONFactoryWSTool::Var > RooJSONFactoryWSTool::readObservables ( const RooFit::Experimental::JSONNode n,
const std::string &  obsnamecomp 
)
static

Definition at line 1327 of file RooJSONFactoryWSTool.cxx.

◆ registerExporter() [1/2]

template<class T >
static bool RooJSONFactoryWSTool::registerExporter ( const TClass key,
bool  topPriority = true 
)
inlinestatic

Definition at line 159 of file RooJSONFactoryWSTool.h.

◆ registerExporter() [2/2]

bool RooJSONFactoryWSTool::registerExporter ( const TClass key,
std::unique_ptr< const RooJSONFactoryWSTool::Exporter f,
bool  topPriority = true 
)
static

Definition at line 302 of file RooJSONFactoryWSTool.cxx.

◆ registerImporter() [1/2]

template<class T >
static bool RooJSONFactoryWSTool::registerImporter ( const std::string &  key,
bool  topPriority = true 
)
inlinestatic

Definition at line 154 of file RooJSONFactoryWSTool.h.

◆ registerImporter() [2/2]

bool RooJSONFactoryWSTool::registerImporter ( const std::string &  key,
std::unique_ptr< const RooJSONFactoryWSTool::Importer f,
bool  topPriority = true 
)
static

Definition at line 294 of file RooJSONFactoryWSTool.cxx.

◆ removeExporters()

int RooJSONFactoryWSTool::removeExporters ( const std::string &  needle)
static

Definition at line 326 of file RooJSONFactoryWSTool.cxx.

◆ removeImporters()

int RooJSONFactoryWSTool::removeImporters ( const std::string &  needle)
static

Definition at line 310 of file RooJSONFactoryWSTool.cxx.

◆ request() [1/4]

template<class T >
T * RooJSONFactoryWSTool::request ( const std::string &  objname,
const std::string &  requestAuthor 
)

◆ request() [2/4]

template<>
RooRealVar * RooJSONFactoryWSTool::request ( const std::string &  objname,
const std::string &  requestAuthor 
)

Definition at line 134 of file RooJSONFactoryWSTool.cxx.

◆ request() [3/4]

template<>
RooAbsPdf * RooJSONFactoryWSTool::request ( const std::string &  objname,
const std::string &  requestAuthor 
)

Definition at line 152 of file RooJSONFactoryWSTool.cxx.

◆ request() [4/4]

template<>
RooAbsReal * RooJSONFactoryWSTool::request ( const std::string &  objname,
const std::string &  requestAuthor 
)

Definition at line 170 of file RooJSONFactoryWSTool.cxx.

◆ setScopeObject()

void RooJSONFactoryWSTool::setScopeObject ( const std::string &  key,
RooAbsArg obj 
)

Definition at line 1253 of file RooJSONFactoryWSTool.cxx.

◆ setScopeObservables()

void RooJSONFactoryWSTool::setScopeObservables ( const RooArgList args)

Definition at line 1247 of file RooJSONFactoryWSTool.cxx.

◆ staticExporters()

RooJSONFactoryWSTool::ExportMap & RooJSONFactoryWSTool::staticExporters ( )
static

Definition at line 1811 of file RooJSONFactoryWSTool.cxx.

◆ staticExportKeys()

RooJSONFactoryWSTool::ExportKeysMap & RooJSONFactoryWSTool::staticExportKeys ( )
static

Definition at line 1829 of file RooJSONFactoryWSTool.cxx.

◆ staticFunctionImportExpressions()

RooJSONFactoryWSTool::ImportExpressionMap & RooJSONFactoryWSTool::staticFunctionImportExpressions ( )
static

Definition at line 1823 of file RooJSONFactoryWSTool.cxx.

◆ staticImporters()

RooJSONFactoryWSTool::ImportMap & RooJSONFactoryWSTool::staticImporters ( )
static

Definition at line 1805 of file RooJSONFactoryWSTool.cxx.

◆ staticPdfImportExpressions()

RooJSONFactoryWSTool::ImportExpressionMap & RooJSONFactoryWSTool::staticPdfImportExpressions ( )
static

Definition at line 1817 of file RooJSONFactoryWSTool.cxx.

◆ unbinned()

std::unique_ptr< RooDataSet > RooJSONFactoryWSTool::unbinned ( RooDataHist const &  hist)
protected

Definition at line 1017 of file RooJSONFactoryWSTool.cxx.

◆ workspace()

RooWorkspace * RooJSONFactoryWSTool::workspace ( )
inline

Definition at line 151 of file RooJSONFactoryWSTool.h.

◆ writeObservables()

void RooJSONFactoryWSTool::writeObservables ( const TH1 h,
RooFit::Experimental::JSONNode n,
const std::vector< std::string > &  varnames 
)
static

Definition at line 558 of file RooJSONFactoryWSTool.cxx.

Member Data Documentation

◆ _rootnode_input

const RooFit::Experimental::JSONNode* RooJSONFactoryWSTool::_rootnode_input = nullptr
protected

Definition at line 110 of file RooJSONFactoryWSTool.h.

◆ _rootnode_output

RooFit::Experimental::JSONNode* RooJSONFactoryWSTool::_rootnode_output = nullptr
protected

Definition at line 111 of file RooJSONFactoryWSTool.h.

◆ _scope

Scope RooJSONFactoryWSTool::_scope
mutableprotected

Definition at line 109 of file RooJSONFactoryWSTool.h.

◆ _workspace

RooWorkspace* RooJSONFactoryWSTool::_workspace
protected

Definition at line 116 of file RooJSONFactoryWSTool.h.

◆ DependencyMissingError

Libraries for RooJSONFactoryWSTool:

The documentation for this class was generated from the following files: