Logo ROOT   6.16/01
Reference Guide
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
RooStats::HistFactory::HistRef Class Reference

Internal class wrapping an histogram and managing its content.

convenient for dealing with histogram pointers in the HistFactory class

Definition at line 24 of file HistRef.h.

Public Member Functions

 HistRef (const HistRef &other)
 
 HistRef (TH1 *h=0)
 constructor - use gives away ownerhip of the given pointer More...
 
 ~HistRef ()
 
TH1GetObject () const
 
HistRefoperator= (const HistRef &other)
 assignment operator (delete previous contained histogram) More...
 
void operator= (TH1 *h)
 operator= passing an object pointer : user gives away its ownerhisp More...
 
void SetObject (TH1 *h)
 set the object - user gives away the ownerhisp More...
 

Static Public Member Functions

static TH1CopyObject (TH1 *h)
 
static void DeleteObject (TH1 *h)
 

Protected Attributes

TH1fHist
 

#include <RooStats/HistFactory/HistRef.h>

Constructor & Destructor Documentation

◆ HistRef() [1/2]

RooStats::HistFactory::HistRef::HistRef ( TH1 h = 0)
inline

constructor - use gives away ownerhip of the given pointer

Definition at line 30 of file HistRef.h.

◆ HistRef() [2/2]

RooStats::HistFactory::HistRef::HistRef ( const HistRef other)
inline

Definition at line 32 of file HistRef.h.

◆ ~HistRef()

RooStats::HistFactory::HistRef::~HistRef ( )
inline

Definition at line 37 of file HistRef.h.

Member Function Documentation

◆ CopyObject()

TH1 * RooStats::HistFactory::HistRef::CopyObject ( TH1 h)
static

Definition at line 24 of file HistRef.cxx.

◆ DeleteObject()

void RooStats::HistFactory::HistRef::DeleteObject ( TH1 h)
static

Definition at line 31 of file HistRef.cxx.

◆ GetObject()

TH1 * RooStats::HistFactory::HistRef::GetObject ( ) const
inline

Definition at line 49 of file HistRef.h.

◆ operator=() [1/2]

HistRef & RooStats::HistFactory::HistRef::operator= ( const HistRef other)
inline

assignment operator (delete previous contained histogram)

Definition at line 42 of file HistRef.h.

◆ operator=() [2/2]

void RooStats::HistFactory::HistRef::operator= ( TH1 h)
inline

operator= passing an object pointer : user gives away its ownerhisp

Definition at line 58 of file HistRef.h.

◆ SetObject()

void RooStats::HistFactory::HistRef::SetObject ( TH1 h)
inline

set the object - user gives away the ownerhisp

Definition at line 52 of file HistRef.h.

Member Data Documentation

◆ fHist

TH1* RooStats::HistFactory::HistRef::fHist
protected

Definition at line 65 of file HistRef.h.

Libraries for RooStats::HistFactory::HistRef:
[legend]

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