Logo ROOT   6.08/07
Reference Guide
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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 ()
 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>

Inheritance diagram for RooDirItem:
[legend]

Constructor & Destructor Documentation

◆ RooDirItem() [1/2]

RooDirItem::RooDirItem ( )

Default constructor.

Definition at line 45 of file RooDirItem.cxx.

◆ RooDirItem() [2/2]

RooDirItem::RooDirItem ( const RooDirItem other)

Copy constructor.

Definition at line 53 of file RooDirItem.cxx.

◆ ~RooDirItem()

RooDirItem::~RooDirItem ( )
virtual

Destructor.

Definition at line 62 of file RooDirItem.cxx.

Member Function Documentation

◆ appendToDir()

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

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.

◆ removeFromDir()

void RooDirItem::removeFromDir ( TObject obj)
protected

Remove object from directory it was added to.

Definition at line 71 of file RooDirItem.cxx.

Member Data Documentation

◆ _dir

TDirectory* RooDirItem::_dir
protected

Definition at line 33 of file RooDirItem.h.


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