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 () | |
RooDirItem (const RooDirItem &) | |
virtual | ~RooDirItem () |
Protected Member Functions | |
void | appendToDir (TObject *obj, Bool_t forceMemoryResident=kFALSE) |
Append object to directory. | |
void | removeFromDir (TObject *obj) |
Remove object from directory it was added to. | |
Protected Attributes | |
TDirectory * | _dir {nullptr} |
#include <RooDirItem.h>
|
inline |
Definition at line 24 of file RooDirItem.h.
|
inline |
Definition at line 25 of file RooDirItem.h.
|
inlinevirtual |
Definition at line 26 of file RooDirItem.h.
Append object to directory.
If forceMemoryResident is true, nothing happens.
Definition at line 55 of file RooDirItem.cxx.
Remove object from directory it was added to.
Definition at line 43 of file RooDirItem.cxx.
|
protected |
Definition at line 33 of file RooDirItem.h.