Internal class wrapping an histogram and managing its content.
convenient for dealing with histogram pointers in the HistFactory class
Public Member Functions | |
HistRef (const HistRef &other) | |
HistRef (HistRef &&other) | |
HistRef (TH1 *h=nullptr) | |
constructor - use gives away ownerhip of the given pointer More... | |
~HistRef () | |
TH1 * | GetObject () const |
HistRef & | operator= (const HistRef &other) |
assignment operator (delete previous contained histogram) More... | |
HistRef & | operator= (HistRef &&other) |
void | operator= (TH1 *h) |
operator= passing an object pointer : user gives away its ownerhisp More... | |
TH1 * | ReleaseObject () |
Release ownership of object. More... | |
void | SetObject (TH1 *h) |
set the object - user gives away the ownerhisp More... | |
Static Private Member Functions | |
static TH1 * | CopyObject (const TH1 *h) |
Private Attributes | |
std::unique_ptr< TH1 > | fHist |
#include <RooStats/HistFactory/HistRef.h>
|
inline |
|
inline |
|
inline |
Definition at line 24 of file HistRef.cxx.
|
inline |
|
inline |
|
private |