69 Bool_t import(
const char *fileSpec,
124 std::list<RooAbsData*>
allData()
const ;
203 std::map<TString,ClassFiles>
_fmap ;
222 #if ROOT_VERSION_CODE <= 332546
std::map< TString, ExtraHeader > _ehmap
RooArgSet allVars() const
Return set with all variable objects.
void merge(const RooWorkspace &)
Bool_t saveSnapshot(const char *name, const char *paramNames)
Save snapshot of values and attributes (including "Constant") of parameters 'params' If importValue...
TObject * genobj(const char *name) const
Return generic object with given name.
RooExpensiveObjectCache _eocache
Transient ROOT directory representation of workspace.
RooArgSet argSet(const char *nameList) const
Return set of RooAbsArgs matching to given list of names.
void exportToCint(const char *namespaceName=0)
Activate export of workspace symbols to CINT in a namespace with given name.
RooAbsData * data(const char *name) const
Retrieve dataset (binned or unbinned) with given name. A null pointer is returned if not found...
static std::list< std::string > _classDeclDirList
RooExpensiveObjectCache is a singleton class that serves as repository for objects that are expensive...
virtual void Append(TObject *)
Overload TDirectory interface method to prohibit insertion of objects in read-only directory workspac...
RooLinkedList _embeddedDataList
Bool_t cancelTransaction()
Cancel an ongoing import transaction.
~RooWorkspace()
Workspace destructor.
std::list< RooAbsData * > allData() const
Return list of all dataset in the workspace.
RooFactoryWSTool * _factory
std::string listOfClassNames() const
Return STL string with last of class names contained in the code repository.
static void addClassImplImportDir(const char *dir)
Add 'dir' to search path for class implementation (.cxx) files, when attempting to import class code ...
static std::list< std::string > _classImplDirList
RooAbsData * embeddedData(const char *name) const
Retrieve dataset (binned or unbinned) with given name. A null pointer is returned if not found...
Bool_t compileClasses()
For all classes in the workspace for which no class definition is found in the ROOT class table extra...
static void autoImportClassCode(Bool_t flag)
If flag is true, source code of classes not the the ROOT distribution is automatically imported if on...
RooAbsCategory * catfunc(const char *name) const
Retrieve discrete function (RooAbsCategory) with given name. A null pointer is returned if not found...
RooLinkedList _genObjects
Bool_t cd(const char *path=0)
Iterator abstract base class.
Bool_t importClassCode(const char *pat="*", Bool_t doReplace=kFALSE)
Inport code of all classes in the workspace that have a class name that matches pattern 'pat' and whi...
This class defines a UUID (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDent...
#define ClassDef(name, id)
Bool_t startTransaction()
Open an import transaction operations.
WSDir(const char *name, const char *title, RooWorkspace *wspace)
void unExport()
Delete exported reference in CINT namespace.
The TNamed class is the base class for all named ROOT classes.
RooAbsPdf * pdf(const char *name) const
Retrieve p.d.f (RooAbsPdf) with given name. A null pointer is returned if not found.
Bool_t extendSet(const char *name, const char *newContents)
Define a named set in the work space through a comma separated list of names of objects already in th...
RooArgSet allPdfs() const
Return set with all probability density function objects.
TIterator * createIterator(Bool_t dir=kIterForward) const
const TUUID & uuid() const
TIterator * MakeIterator(Bool_t dir=kTRUE) const
Return an iterator over this list.
CodeRepo(RooWorkspace *wspace=0)
TIterator * studyIterator()
RooWorkspace()
Default constructor.
RooRealVar represents a fundamental (non-derived) real valued object.
RooAbsStudy is an abstract base class for RooStudyManager modules.
virtual void Add(TObject *)
Overload TDirectory interface method to prohibit insertion of objects in read-only directory workspac...
std::map< TString, ClassFiles > _fmap
Bool_t autoImportClass(TClass *tc, Bool_t doReplace=kFALSE)
Import code of class 'tc' into the repository.
Bool_t renameSet(const char *name, const char *newName)
Rename set to a new name.
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
A ROOT file is structured in Directories (like a file system).
Bool_t defineSet(const char *name, const RooArgSet &aset, Bool_t importMissing=kFALSE)
Define a named RooArgSet with given constituents.
RooArgSet _sandboxNodes
Is there a transaction open?
Bool_t writeToFile(const char *fileName, Bool_t recreate=kTRUE)
Save this current workspace into given file.
The ROOT global object gROOT contains a list of all defined classes.
RooAbsData is the common abstract base class for binned and unbinned datasets.
Bool_t loadSnapshot(const char *name)
Load the values and attributes of the parameters in the snapshot saved with the given name...
RooCategory * cat(const char *name) const
Retrieve discrete variable (RooCategory) with given name. A null pointer is returned if not found...
ClassDef(WSDir, 1)
do not persist
RooCategory represents a fundamental (non-derived) discrete value object.
Bool_t _openTrans
Name of CINT namespace to which contents are exported.
std::map< std::string, RooArgSet > _namedSets
RooRealVar * var(const char *name) const
Retrieve real-valued variable (RooRealVar) with given name. A null pointer is returned if not found...
virtual void Clear(Option_t *option="")
Delete all objects from a Directory list.
TIterator * componentIterator() const
std::list< TObject * > allGenericObjects() const
Return list of all generic objects in the workspace.
Bool_t isValidCPPID(const char *name)
Return true if given name is a valid C++ identifier name.
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
static void addClassDeclImportDir(const char *dir)
Add 'dir' to search path for class declaration (header) files, when attempting to import class code w...
std::string _exportNSName
Export contents of workspace to CINT?
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Bool_t removeSet(const char *name)
Remove a named set from the workspace.
Bool_t _doExport
Factory tool associated with workspace.
RooAbsArg * fundArg(const char *name) const
Return fundamental (i.e.
RooArgSet allCats() const
Return set with all category objects.
RooArgSet allFunctions() const
Return set with all function objects.
Bool_t compiledOK() const
const RooArgSet & components() const
TObject * obj(const char *name) const
Return any type of object (RooAbsArg, RooAbsData or generic object) with given name) ...
std::map< TString, ClassRelInfo > _c2fmap
ClassDef(CodeRepo, 2)
Flag indicating that classes compiled OK.
Mother of all ROOT objects.
RooFactoryWSTool & factory()
Return instance to factory tool.
Bool_t commitTransaction()
static void setClassFileExportDir(const char *dir=0)
Specify the name of the directory in which embedded source code is unpacked and compiled.
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
void clearStudies()
Remove all RooStudyManager modules.
RooAbsArg * arg(const char *name) const
Return RooAbsArg with given name. A null pointer is returned if none is found.
void Print(Option_t *opts=0) const
Print contents of the workspace.
RooExpensiveObjectCache & expensiveObjectCache()
RooAbsCategory is the common abstract base class for objects that represent a discrete value with a f...
const RooArgSet * set(const char *name)
Return pointer to previously defined named set with given nmame If no such set is found a null pointe...
std::list< RooAbsData * > allEmbeddedData() const
Return list of all dataset in the workspace.
RooArgSet allCatFunctions() const
Return set with all category function objects.
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
Bool_t addStudy(RooAbsStudy &study)
Insert RooStudyManager module.
CodeRepo(const CodeRepo &other, RooWorkspace *wspace=0)
static std::string _classFileExportDir
The RooWorkspace is a persistable container for RooFit projects.
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
void InternalAppend(TObject *obj)
Internal access to TDirectory append method.
RooArgSet allResolutionModels() const
Return set with all resolution model objects.
Bool_t makeDir()
Create transient TDirectory representation of this workspace.
const RooArgSet * getSnapshot(const char *name) const
Return the RooArgSet containgin a snapshot of variables contained in the workspace.
void exportObj(TObject *obj)
Export reference to given workspace object to CINT.