ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::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.

RooDirItem::~RooDirItem ( )
virtual

Destructor.

Definition at line 62 of file RooDirItem.cxx.

Member Function Documentation

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.

Referenced by RooDataHist::importDHistSet(), RooDataHist::importTH1(), RooDataHist::importTH1Set(), RooDataHist::RooDataHist(), RooDataSet::RooDataSet(), and RooFitResult::RooFitResult().

void RooDirItem::removeFromDir ( TObject obj)
protected

Remove object from directory it was added to.

Definition at line 71 of file RooDirItem.cxx.

Referenced by RooDataHist::removeSelfFromDir(), RooDataHist::~RooDataHist(), RooDataSet::~RooDataSet(), and RooFitResult::~RooFitResult().

Member Data Documentation

TDirectory* RooDirItem::_dir
protected
Collaboration diagram for RooDirItem:
[legend]

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