ROOT logo
ROOT » ROOFIT » HISTFACTORY » RooStats::HistFactory::HistRef

class RooStats::HistFactory::HistRef

This class is also known as (typedefs to this class)

vector<RooStats::HistFactory::HistRef,allocator<RooStats::HistFactory::HistRef> >::value_type

Function Members (Methods)

Data Members

protected:
TH1*fHistpointer to contained histogram

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

HistRef(TH1* h = 0)
 constructor - use gives away ownerhip of the given pointer
{}
HistRef(const RooStats::HistFactory::HistRef& other)
~HistRef()
DeleteObject(TH1* h)
HistRef & operator=(const HistRef & other)
 assignment operator (delete previous contained histogram)
TH1 * GetObject() const
{ return fHist; }
void SetObject(TH1* h)
 set the object - user gives away the ownerhisp
void operator=(TH1* h)
 operator= passing an object pointer :  user gives away its ownerhisp
{ SetObject(h); }
TH1 * CopyObject(TH1* h)