11#ifndef HISTFACTORY_HISTREF_H 
   12#define HISTFACTORY_HISTREF_H 
   44      if (
this == &
other) 
return *
this;
 
 
   67     return fHist.release();
 
 
 
Internal class wrapping an histogram and managing its content.
 
HistRef(TH1 *h=nullptr)
constructor - use gives away ownerhip of the given pointer
 
HistRef & operator=(const HistRef &other)
assignment operator (delete previous contained histogram)
 
HistRef(const HistRef &other)
 
void SetObject(TH1 *h)
set the object - user gives away the ownerhisp
 
HistRef & operator=(HistRef &&other)
 
std::unique_ptr< TH1 > fHist
pointer to contained histogram
 
static TH1 * CopyObject(const TH1 *h)
 
TH1 * ReleaseObject()
Release ownership of object.
 
TH1 is the base class of all histogram classes in ROOT.
 
Namespace for the RooStats classes.