Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooDirItem Class Reference

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>

Inheritance diagram for RooDirItem:
[legend]

Constructor & Destructor Documentation

◆ RooDirItem() [1/2]

RooDirItem::RooDirItem ( )
inline

Definition at line 24 of file RooDirItem.h.

◆ RooDirItem() [2/2]

RooDirItem::RooDirItem ( const RooDirItem )
inline

Definition at line 25 of file RooDirItem.h.

◆ ~RooDirItem()

virtual RooDirItem::~RooDirItem ( )
inlinevirtual

Definition at line 26 of file RooDirItem.h.

Member Function Documentation

◆ appendToDir()

void RooDirItem::appendToDir ( TObject obj,
Bool_t  forceMemoryResident = kFALSE 
)
protected

Append object to directory.

If forceMemoryResident is true, nothing happens.

Definition at line 55 of file RooDirItem.cxx.

◆ removeFromDir()

void RooDirItem::removeFromDir ( TObject obj)
protected

Remove object from directory it was added to.

Definition at line 43 of file RooDirItem.cxx.

Member Data Documentation

◆ _dir

TDirectory* RooDirItem::_dir {nullptr}
protected

Definition at line 33 of file RooDirItem.h.

Libraries for RooDirItem:

The documentation for this class was generated from the following files: