ROOT logo
ROOT » ROOFIT » ROOFITCORE » RooWorkspace::WSDir

class RooWorkspace::WSDir: public TDirectoryFile



The RooWorkspace is a persistable container for RooFit projects. A workspace can contain and own variables, p.d.f.s, functions and datasets. All objects that live in the workspace are owned by the workspace. The import() method enforces consistency of objects upon insertion into the workspace (e.g. no duplicate object with the same name are allowed) and makes sure all objects in the workspace are connected to each other. Easy accessor methods like pdf(), var() and data() allow to refer to the contents of the workspace by object name. The entire RooWorkspace can be saved into a ROOT TFile and organises the consistent streaming of its contents without duplication.

If a RooWorkspace contains custom classes, i.e. classes not in the ROOT distribution, portability of workspaces can be enhanced by storing the source code of those classes in the workspace as well. This process is also organized by the workspace through the importClassCode() method.


Function Members (Methods)

public:
virtual~WSDir()
voidTObject::AbstractMethod(const char* method) const
virtual voidAdd(TObject*, Bool_t)
virtual voidTDirectoryFile::Add(TObject* obj, Bool_t replace = kFALSE)
virtual voidTDirectory::Add(TObject* obj, Bool_t replace = kFALSE)
static voidTDirectory::AddDirectory(Bool_t add = kTRUE)
static Bool_tTDirectory::AddDirectoryStatus()
virtual voidAppend(TObject*, Bool_t)
virtual voidTDirectoryFile::Append(TObject* obj, Bool_t replace = kFALSE)
virtual voidTDirectory::Append(TObject* obj, Bool_t replace = kFALSE)
virtual Int_tTDirectoryFile::AppendKey(TKey* key)
virtual Int_tTDirectory::AppendKey(TKey*)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTDirectoryFile::Browse(TBrowser* b)
virtual voidTDirectory::Browse(TBrowser* b)
virtual voidTObject::Browse(TBrowser* b)
virtual voidTDirectoryFile::Build(TFile* motherFile = 0, TDirectory* motherDir = 0)
virtual voidTDirectory::Build(TFile* motherFile = 0, TDirectory* motherDir = 0)
virtual Bool_tTDirectoryFile::cd(const char* path = 0)
virtual Bool_tTDirectory::cd(const char* path = 0)
static Bool_tTDirectory::Cd(const char* path)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTDirectory::Clear(Option_t* option = "")
virtual voidTNamed::Clear(Option_t* option = "")
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual TObject*TObject::Clone(const char* newname = "") const
virtual TObject*TDirectoryFile::CloneObject(const TObject* obj, Bool_t autoadd = kTRUE)
virtual TObject*TDirectory::CloneObject(const TObject* obj, Bool_t autoadd = kTRUE)
virtual voidTDirectoryFile::Close(Option_t* option = "")
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTDirectoryFile::Copy(TObject&) const
virtual voidTDirectory::Copy(TObject&) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Copy(TObject& object) const
static voidTDirectory::DecodeNameCycle(const char* namecycle, char* name, Short_t& cycle)
virtual voidTDirectoryFile::Delete(const char* namecycle = "")
virtual voidTDirectory::Delete(const char* namecycle = "")
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual voidTDirectory::DeleteAll(Option_t* option = "")
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTDirectory::Draw(Option_t* option = "")
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
static voidTDirectory::EncodeNameCycle(char* buffer, const char* name, Short_t cycle)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTDirectoryFile::FillBuffer(char*& buffer)
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TKey*TDirectoryFile::FindKey(const char* keyname) const
virtual TKey*TDirectory::FindKey(const char*) const
virtual TKey*TDirectoryFile::FindKeyAny(const char* keyname) const
virtual TKey*TDirectory::FindKeyAny(const char*) const
virtual TObject*TDirectory::FindObject(const char* name) const
virtual TObject*TDirectory::FindObject(const TObject* obj) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual TObject*TDirectoryFile::FindObjectAny(const char* name) const
virtual TObject*TDirectory::FindObjectAny(const char* name) const
virtual TObject*TDirectoryFile::FindObjectAnyFile(const char* name) const
virtual TObject*TDirectory::FindObjectAnyFile(const char*) const
virtual TObject*TDirectoryFile::Get(const char* namecycle)
virtual TObject*TDirectory::Get(const char* namecycle)
virtual Int_tTDirectoryFile::GetBufferSize() const
virtual Int_tTDirectory::GetBufferSize() const
const TDatime&TDirectoryFile::GetCreationDate() const
virtual TDirectory*TDirectoryFile::GetDirectory(const char* namecycle, Bool_t printError = false, const char* funcname = "GetDirectory")
virtual TDirectory*TDirectory::GetDirectory(const char* namecycle, Bool_t printError = false, const char* funcname = "GetDirectory")
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual TFile*TDirectoryFile::GetFile() const
virtual TFile*TDirectory::GetFile() const
virtual const char*TObject::GetIconName() const
virtual TKey*TDirectoryFile::GetKey(const char* name, Short_t cycle = 9999) const
virtual TKey*TDirectory::GetKey(const char*, Short_t = 9999) const
virtual TList*TDirectory::GetList() const
virtual TList*TDirectoryFile::GetListOfKeys() const
virtual TList*TDirectory::GetListOfKeys() const
const TDatime&TDirectoryFile::GetModificationDate() const
virtual TObject*TDirectory::GetMother() const
virtual TDirectory*TDirectory::GetMotherDir() const
virtual const char*TNamed::GetName() const
virtual const char*TObject::GetName() const
virtual Int_tTDirectoryFile::GetNbytesKeys() const
virtual Int_tTDirectory::GetNbytesKeys() const
virtual Int_tTDirectoryFile::GetNkeys() const
virtual Int_tTDirectory::GetNkeys() const
voidTDirectory::GetObject(const char* namecycle, void*& ptr)
virtual void*TDirectoryFile::GetObjectChecked(const char* namecycle, const char* classname)
virtual void*TDirectoryFile::GetObjectChecked(const char* namecycle, const TClass* cl)
virtual void*TDirectory::GetObjectChecked(const char* namecycle, const char* classname)
virtual void*TDirectory::GetObjectChecked(const char* namecycle, const TClass* cl)
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual void*TDirectoryFile::GetObjectUnchecked(const char* namecycle)
virtual void*TDirectory::GetObjectUnchecked(const char* namecycle)
virtual Option_t*TObject::GetOption() const
virtual const char*TDirectory::GetPath() const
virtual const char*TDirectory::GetPathStatic() const
virtual Long64_tTDirectoryFile::GetSeekDir() const
virtual Long64_tTDirectory::GetSeekDir() const
virtual Long64_tTDirectoryFile::GetSeekKeys() const
virtual Long64_tTDirectory::GetSeekKeys() const
virtual Long64_tTDirectoryFile::GetSeekParent() const
virtual Long64_tTDirectory::GetSeekParent() const
virtual const char*TNamed::GetTitle() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
TUUIDTDirectory::GetUUID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual TClass*TDirectoryFile::IsA() const
virtual TClass*TDirectory::IsA() const
virtual TClass*TNamed::IsA() const
virtual TClass*TObject::IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTDirectory::IsFolder() const
virtual Bool_tTObject::IsFolder() const
virtual Bool_tTDirectoryFile::IsModified() const
virtual Bool_tTDirectory::IsModified() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tTObject::IsSortable() const
virtual Bool_tTDirectoryFile::IsWritable() const
virtual Bool_tTDirectory::IsWritable() const
Bool_tTObject::IsZombie() const
virtual voidTDirectoryFile::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual TDirectory*TDirectoryFile::mkdir(const char* name, const char* title = "")
virtual TDirectory*TDirectory::mkdir(const char* name, const char* title = "")
virtual Bool_tTObject::Notify()
virtual TFile*TDirectoryFile::OpenFile(const char* name, Option_t* option = "", const char* ftitle = "", Int_t compress = 1, Int_t netopt = 0)
virtual TFile*TDirectory::OpenFile(const char*, Option_t* = "", const char* = "", Int_t = 1, Int_t = 0)
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TNamed&TNamed::operator=(const TNamed& rhs)
TObject&TObject::operator=(const TObject& rhs)
virtual voidTDirectory::Paint(Option_t* option = "")
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTDirectory::Print(Option_t* option = "") const
virtual voidTNamed::Print(Option_t* option = "") const
virtual voidTObject::Print(Option_t* option = "") const
virtual voidTDirectoryFile::Purge(Short_t nkeep = 1)
virtual voidTDirectory::Purge(Short_t = 1)
virtual voidTDirectory::pwd() const
virtual Int_tTObject::Read(const char* name)
virtual voidTDirectoryFile::ReadAll(Option_t* option = "")
virtual voidTDirectory::ReadAll(Option_t* = "")
virtual Int_tTDirectoryFile::ReadKeys(Bool_t forceRead = kTRUE)
virtual Int_tTDirectory::ReadKeys(Bool_t = kTRUE)
virtual Int_tTDirectoryFile::ReadTObject(TObject* obj, const char* keyname)
virtual voidTDirectory::RecursiveRemove(TObject* obj)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual TObject*TDirectory::Remove(TObject*)
voidTObject::ResetBit(UInt_t f)
virtual voidTDirectoryFile::rmdir(const char* name)
virtual voidTDirectory::rmdir(const char* name)
virtual voidTDirectoryFile::Save()
virtual voidTDirectory::Save()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual Int_tTDirectoryFile::SaveObjectAs(const TObject* obj, const char* filename = "", Option_t* option = "") const
virtual Int_tTDirectory::SaveObjectAs(const TObject*, const char* = "", Option_t* = "") const
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
virtual voidTDirectoryFile::SaveSelf(Bool_t force = kFALSE)
virtual voidTDirectory::SaveSelf(Bool_t = kFALSE)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTDirectoryFile::SetBufferSize(Int_t bufsize)
virtual voidTDirectory::SetBufferSize(Int_t)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTDirectoryFile::SetModified()
virtual voidTDirectory::SetModified()
virtual voidTDirectory::SetMother(TObject* mother)
virtual voidTDirectory::SetName(const char* newname)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTDirectoryFile::SetSeekDir(Long64_t v)
virtual voidTDirectory::SetSeekDir(Long64_t)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTDirectoryFile::SetTRefAction(TObject* ref, TObject* parent)
virtual voidTDirectory::SetTRefAction(TObject*, TObject*)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidTDirectoryFile::SetWritable(Bool_t writable = kTRUE)
virtual voidTDirectory::SetWritable(Bool_t)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidTDirectoryFile::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTDirectory::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTNamed::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTObject::ShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTDirectoryFile::Sizeof() const
virtual Int_tTDirectory::Sizeof() const
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer& b)
virtual voidTDirectoryFile::Streamer(TBuffer& b)
virtual voidTDirectory::Streamer(TBuffer& b)
virtual voidTNamed::Streamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidTDirectoryFile::StreamerNVirtual(TBuffer& b)
voidTDirectory::StreamerNVirtual(TBuffer& b)
voidTNamed::StreamerNVirtual(TBuffer& b)
voidTObject::StreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTDirectoryFile::Write(const char* name = 0, Int_t opt = 0, Int_t bufsize = 0)
virtual Int_tTDirectoryFile::Write(const char* name = 0, Int_t opt = 0, Int_t bufsize = 0) const
virtual Int_tTDirectory::Write(const char* = 0, Int_t = 0, Int_t = 0)
virtual Int_tTDirectory::Write(const char* = 0, Int_t = 0, Int_t = 0) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidTDirectoryFile::WriteDirHeader()
virtual voidTDirectory::WriteDirHeader()
virtual voidTDirectoryFile::WriteKeys()
virtual voidTDirectory::WriteKeys()
Int_tTDirectory::WriteObject(const void* obj, const char* name, Option_t* option = "", Int_t bufsize = 0)
virtual Int_tTDirectoryFile::WriteObjectAny(const void* obj, const char* classname, const char* name, Option_t* option = "", Int_t bufsize = 0)
virtual Int_tTDirectoryFile::WriteObjectAny(const void* obj, const TClass* cl, const char* name, Option_t* option = "", Int_t bufsize = 0)
virtual Int_tTDirectory::WriteObjectAny(const void*, const char*, const char*, Option_t* = "", Int_t = 0)
virtual Int_tTDirectory::WriteObjectAny(const void*, const TClass*, const char*, Option_t* = "", Int_t = 0)
virtual Int_tTDirectoryFile::WriteTObject(const TObject* obj, const char* name = 0, Option_t* option = "", Int_t bufsize = 0)
virtual Int_tTDirectory::WriteTObject(const TObject* obj, const char* name = 0, Option_t* = "", Int_t = 0)
RooWorkspace::WSDirWSDir(const char* name, const char* title, RooWorkspace* wspace)
protected:
Bool_tTDirectory::cd1(const char* path)
static Bool_tTDirectory::Cd1(const char* path)
virtual voidTDirectoryFile::CleanTargets()
virtual voidTDirectory::CleanTargets()
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTDirectory::FillFullPath(TString& buf) const
voidInternalAppend(TObject* obj)
voidTObject::MakeZombie()
voidTDirectory::operator=(const TDirectory&)
voidTDirectory::RegisterContext(TDirectory::TContext* ctxt)
voidTDirectory::UnregisterContext(TDirectory::TContext* ctxt)

Data Members

private:
enum TDirectoryFile::[unnamed] { kCloseDirectory
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
RooWorkspace*_wspace! do not persist
Int_tTDirectoryFile::fBufferSizeDefault buffer size to create new TKeys
TDirectory::TContext*TDirectory::fContext!Pointer to a list of TContext object pointing to this TDirectory
TDatimeTDirectoryFile::fDatimeCDate and time when directory is created
TDatimeTDirectoryFile::fDatimeMDate and time of last modification
TFile*TDirectoryFile::fFilepointer to current file in memory
TList*TDirectoryFile::fKeysPointer to keys list in memory
TList*TDirectory::fListList of objects in memory
Bool_tTDirectoryFile::fModifiedtrue if directory has been modified
TObject*TDirectory::fMotherpointer to mother of the directory
TStringTNamed::fNameobject identifier
Int_tTDirectoryFile::fNbytesKeysNumber of bytes for the keys
Int_tTDirectoryFile::fNbytesNameNumber of bytes in TNamed at creation time
TStringTDirectory::fPathBuffer!Buffer for GetPath() function
Long64_tTDirectoryFile::fSeekDirLocation of directory on file
Long64_tTDirectoryFile::fSeekKeysLocation of Keys record on file
Long64_tTDirectoryFile::fSeekParentLocation of parent directory on file
TStringTNamed::fTitleobject title
TUUIDTDirectory::fUUIDUnique identifier
Bool_tTDirectoryFile::fWritabletrue if directory is writable
static Bool_tTDirectory::fgAddDirectory!flag to add histograms, graphs,etc to the directory

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void InternalAppend(TObject* obj)
 Internal access to TDirectory append method
void Add(TObject* obj)
 Overload TDirectory interface method to prohibit insertion of objects in read-only directory workspace representation
void Append(TObject* obj)
 Overload TDirectory interface method to prohibit insertion of objects in read-only directory workspace representation
WSDir(const char* name, const char* title, RooWorkspace* wspace)
virtual ~WSDir()
{ Clear("nodelete") ; }