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

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 ()
 
virtual TClassIsA () const
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Member Functions

void appendToDir (TObject *obj, bool forceMemoryResident=false)
 Append object to directory.
 
void removeFromDir (TObject *obj)
 Remove object from directory it was added to.
 

Protected Attributes

TDirectory_dir {nullptr}
 ! Associated directory
 

#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  forceMemoryResident = false 
)
protected

Append object to directory.

If forceMemoryResident is true, nothing happens.

Definition at line 49 of file RooDirItem.cxx.

◆ Class()

static TClass * RooDirItem::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * RooDirItem::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t RooDirItem::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 34 of file RooDirItem.h.

◆ DeclFileName()

static const char * RooDirItem::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 34 of file RooDirItem.h.

◆ IsA()

virtual TClass * RooDirItem::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented in RooDataHist, RooDataSet, and RooFitResult.

Definition at line 34 of file RooDirItem.h.

◆ removeFromDir()

void RooDirItem::removeFromDir ( TObject obj)
protected

Remove object from directory it was added to.

Definition at line 37 of file RooDirItem.cxx.

◆ Streamer()

virtual void RooDirItem::Streamer ( TBuffer )
virtual

Reimplemented in RooDataHist, RooDataSet, and RooFitResult.

◆ StreamerNVirtual()

void RooDirItem::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 34 of file RooDirItem.h.

Member Data Documentation

◆ _dir

TDirectory* RooDirItem::_dir {nullptr}
protected

! Associated directory

Definition at line 33 of file RooDirItem.h.

Libraries for RooDirItem:

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