RooDirItem is a utility base class for RooFit objects that are to be attached to ROOT directories.
Concrete classes inherit the appendToDir and removeToDir methods that can be used to safely attach and detach one self from a TDirectory
Definition at line 22 of file RooDirItem.h.
Public Member Functions | |
RooDirItem () | |
Default constructor. More... | |
RooDirItem (const RooDirItem &other) | |
Copy constructor. More... | |
virtual | ~RooDirItem () |
Destructor. More... | |
Protected Member Functions | |
void | appendToDir (TObject *obj, Bool_t forceMemoryResident=kFALSE) |
Append object to directory. More... | |
void | removeFromDir (TObject *obj) |
Remove object from directory it was added to. More... | |
Protected Attributes | |
TDirectory * | _dir |
#include <RooDirItem.h>
RooDirItem::RooDirItem | ( | ) |
Default constructor.
Definition at line 45 of file RooDirItem.cxx.
RooDirItem::RooDirItem | ( | const RooDirItem & | other | ) |
Copy constructor.
Definition at line 53 of file RooDirItem.cxx.
|
virtual |
Destructor.
Definition at line 62 of file RooDirItem.cxx.
Append object to directory.
If forceMemoryResident is true, force addition to ROOT memory directory if that is not the current directory
Definition at line 86 of file RooDirItem.cxx.
Remove object from directory it was added to.
Definition at line 71 of file RooDirItem.cxx.
|
protected |
Definition at line 33 of file RooDirItem.h.