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