11#ifndef HISTFACTORY_HISTREF_H
12#define HISTFACTORY_HISTREF_H
19namespace HistFactory {
45 if (
this == &other)
return *
this;
52 fHist = std::move(other.fHist);
68 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
static TH1 * CopyObject(const TH1 *h)
TH1 * ReleaseObject()
Release ownership of object.
Namespace for the RooStats classes.