|
ROOT
Reference Guide |
|
Go to the documentation of this file.
70 Bool_t import(
const char *fileSpec,
125 std::list<RooAbsData*>
allData()
const ;
214 std::map<TString,ClassFiles>
_fmap ;
RooAbsData * data(const char *name) const
Retrieve dataset (binned or unbinned) with given name. A null pointer is returned if not found.
virtual void Append(TObject *, Bool_t)
Overload TDirectory interface method to prohibit insertion of objects in read-only directory workspac...
TIterator * MakeIterator(Bool_t forward=kTRUE) const
Create a TIterator for this list.
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
Bool_t renameSet(const char *name, const char *newName)
Rename set to a new name.
Bool_t writeToFile(const char *fileName, Bool_t recreate=kTRUE)
Save this current workspace into given file.
RooAbsData is the common abstract base class for binned and unbinned datasets.
TIterator * componentIterator() const
void InternalAppend(TObject *obj)
Internal access to TDirectory append method.
Bool_t _openTrans
Name of CINT namespace to which contents are exported.
void merge(const RooWorkspace &)
WSDir(const char *name, const char *title, RooWorkspace *wspace)
Bool_t compileClasses()
For all classes in the workspace for which no class definition is found in the ROOT class table extra...
RooAbsCategory * catfunc(const char *name) const
Retrieve discrete function (RooAbsCategory) with given name. A null pointer is returned if not found.
Bool_t loadSnapshot(const char *name)
Load the values and attributes of the parameters in the snapshot saved with the given name.
std::map< TString, ClassRelInfo > _c2fmap
~RooWorkspace()
Workspace destructor.
Bool_t _doExport
Factory tool associated with workspace.
void useFindsWithHashLookup(bool flag)
Make internal collection use an unordered_map for faster searching.
void clearStudies()
Remove all RooStudyManager modules.
Bool_t startTransaction()
Open an import transaction operations.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooArgSet allResolutionModels() const
Return set with all resolution model objects.
static void setClassFileExportDir(const char *dir=0)
Specify the name of the directory in which embedded source code is unpacked and compiled.
RooAbsData * embeddedData(const char *name) const
Retrieve dataset (binned or unbinned) with given name. A null pointer is returned if not found.
RooWorkspace()
Default constructor.
virtual void RecursiveRemove(TObject *obj)
If one of the TObject we have a referenced to is deleted, remove the reference.
RooLinkedList _genObjects
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...
static void addClassImplImportDir(const char *dir)
Add dir to search path for class implementation (.cxx) files.
void useHashMapForFind(bool flag) const
Install an internal hash map for fast finding of elements by name.
RooExpensiveObjectCache is a singleton class that serves as repository for objects that are expensive...
Iterator abstract base class.
RooFactoryWSTool & factory()
Return instance to factory tool.
static void autoImportClassCode(Bool_t flag)
If flag is true, source code of classes not the the ROOT distribution is automatically imported if on...
Bool_t autoImportClass(TClass *tc, Bool_t doReplace=kFALSE)
Import code of class 'tc' into the repository.
static std::string _classFileExportDir
RooAbsCategory is the base class for objects that represent a discrete value with a finite number of ...
RooExpensiveObjectCache & expensiveObjectCache()
CodeRepo(const CodeRepo &other, RooWorkspace *wspace=0)
RooArgSet _sandboxNodes
Is there a transaction open?
void Print(Option_t *opts=0) const
Print contents of the workspace.
RooExpensiveObjectCache _eocache
Transient ROOT directory representation of workspace.
RooArgSet allPdfs() const
Return set with all probability density function objects.
RooArgSet allCats() const
Return set with all category objects.
RooArgSet allVars() const
Return set with all variable objects.
Bool_t makeDir()
Create transient TDirectory representation of this workspace.
Bool_t addStudy(RooAbsStudy &study)
Insert RooStudyManager module.
std::list< TObject * > allGenericObjects() const
Return list of all generic objects in the workspace.
void Clear(Option_t *option="") override
Delete all objects from a Directory list.
The TNamed class is the base class for all named ROOT classes.
TIterator * studyIterator()
std::unique_ptr< RooFactoryWSTool > _factory
RooCategory * cat(const char *name) const
Retrieve discrete variable (RooCategory) with given name. A null pointer is returned if not found.
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
TIterator * createIterator(Bool_t dir=kIterForward) const
TIterator-style iteration over contained elements.
std::map< TString, ExtraHeader > _ehmap
const RooArgSet & components() const
Bool_t defineSetInternal(const char *name, const RooArgSet &aset)
Bool_t saveSnapshot(const char *name, const char *paramNames)
Save snapshot of values and attributes (including "Constant") of given parameters.
TObject * obj(const char *name) const
Return any type of object (RooAbsArg, RooAbsData or generic object) with given name)
RooAbsPdf * pdf(const char *name) const
Retrieve p.d.f (RooAbsPdf) with given name. A null pointer is returned if not found.
Bool_t isValidCPPID(const char *name)
Return true if given name is a valid C++ identifier name.
This class defines a UUID (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDent...
Bool_t cancelTransaction()
Cancel an ongoing import transaction.
static std::list< std::string > _classDeclDirList
static void addClassDeclImportDir(const char *dir)
Add dir to search path for class declaration (header) files.
RooAbsArg * fundArg(const char *name) const
Return fundamental (i.e.
static std::list< std::string > _classImplDirList
RooLinkedList _embeddedDataList
Bool_t commitTransaction()
The RooWorkspace is a persistable container for RooFit projects.
RooArgSet argSet(const char *nameList) const
Return set of RooAbsArgs matching to given list of names.
RooCategory is an object to represent discrete states.
TClass instances represent classes, structs and namespaces in the ROOT type system.
std::string _exportNSName
Export contents of workspace to CINT?
void unExport()
Delete exported reference in CINT namespace.
RooArgSet allFunctions() const
Return set with all function objects.
Bool_t cd(const char *path=0)
Mother of all ROOT objects.
#define ClassDef(name, id)
TObject * genobj(const char *name) const
Return generic object with given name.
RooAbsArg * arg(const char *name) const
Return RooAbsArg with given name. A null pointer is returned if none is found.
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...
Bool_t removeSet(const char *name)
Remove a named set from the workspace.
RooRealVar * var(const char *name) const
Retrieve real-valued variable (RooRealVar) with given name. A null pointer is returned if not found.
Bool_t compiledOK() const
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
void exportObj(TObject *obj)
Export reference to given workspace object to CINT.
std::map< std::string, RooArgSet > _namedSets
virtual void Add(TObject *, Bool_t)
Overload TDirectory interface method to prohibit insertion of objects in read-only directory workspac...
CodeRepo(RooWorkspace *wspace=0)
RooRealVar represents a variable that can be changed from the outside.
A ROOT file is structured in Directories (like a file system).
RooArgSet allCatFunctions() const
Return set with all category function objects.
std::string listOfClassNames() const
Return STL string with last of class names contained in the code repository.
std::map< TString, ClassFiles > _fmap
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...
const RooArgSet * getSnapshot(const char *name) const
Return the RooArgSet containing a snapshot of variables contained in the workspace.
void exportToCint(const char *namespaceName=0)
Activate export of workspace symbols to CINT in a namespace with given name.
std::list< RooAbsData * > allData() const
Return list of all dataset in the workspace.
std::list< RooAbsData * > allEmbeddedData() const
Return list of all dataset in the workspace.
RooAbsStudy is an abstract base class for RooStudyManager modules.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
const TUUID & uuid() const
Bool_t defineSet(const char *name, const RooArgSet &aset, Bool_t importMissing=kFALSE)
Define a named RooArgSet with given constituents.