Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooStats::HistFactory::HistRef Class Reference

Internal class wrapping an histogram and managing its content.

convenient for dealing with histogram pointers in the HistFactory class

Definition at line 332 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 ()
 
TH1GetObject () const
 
HistRefoperator= (const HistRef &other)
 assignment operator (delete previous contained histogram)
 
HistRefoperator= (HistRef &&other)
 
void operator= (TH1 *h)
 operator= passing an object pointer : user gives away its ownerhisp
 
TH1ReleaseObject ()
 Release ownership of object.
 
void SetObject (TH1 *h)
 set the object - user gives away the ownerhisp
 

Static Private Member Functions

static TH1CopyObject (const TH1 *h)
 

Private Attributes

std::unique_ptr< TH1fHist
 pointer to contained histogram
 

#include <RooStats/HistFactory/Measurement.h>

Constructor & Destructor Documentation

◆ HistRef() [1/3]

RooStats::HistFactory::HistRef::HistRef ( TH1 * h = nullptr)

constructor - use gives away ownerhip of the given pointer

Definition at line 1489 of file Measurement.cxx.

◆ HistRef() [2/3]

RooStats::HistFactory::HistRef::HistRef ( const HistRef & other)

Definition at line 1491 of file Measurement.cxx.

◆ HistRef() [3/3]

RooStats::HistFactory::HistRef::HistRef ( HistRef && other)

Definition at line 1497 of file Measurement.cxx.

◆ ~HistRef()

RooStats::HistFactory::HistRef::~HistRef ( )
default

Member Function Documentation

◆ CopyObject()

TH1 * RooStats::HistFactory::HistRef::CopyObject ( const TH1 * h)
staticprivate

Definition at line 1517 of file Measurement.cxx.

◆ GetObject()

TH1 * RooStats::HistFactory::HistRef::GetObject ( ) const

Definition at line 1528 of file Measurement.cxx.

◆ operator=() [1/3]

HistRef & RooStats::HistFactory::HistRef::operator= ( const HistRef & other)

assignment operator (delete previous contained histogram)

Definition at line 1502 of file Measurement.cxx.

◆ operator=() [2/3]

HistRef & RooStats::HistFactory::HistRef::operator= ( HistRef && other)

Definition at line 1511 of file Measurement.cxx.

◆ operator=() [3/3]

void RooStats::HistFactory::HistRef::operator= ( TH1 * h)

operator= passing an object pointer : user gives away its ownerhisp

Definition at line 1540 of file Measurement.cxx.

◆ ReleaseObject()

TH1 * RooStats::HistFactory::HistRef::ReleaseObject ( )

Release ownership of object.

Definition at line 1546 of file Measurement.cxx.

◆ SetObject()

void RooStats::HistFactory::HistRef::SetObject ( TH1 * h)

set the object - user gives away the ownerhisp

Definition at line 1534 of file Measurement.cxx.

Member Data Documentation

◆ fHist

std::unique_ptr<TH1> RooStats::HistFactory::HistRef::fHist
private

pointer to contained histogram

Definition at line 356 of file Measurement.h.

Libraries for RooStats::HistFactory::HistRef:

The documentation for this class was generated from the following files: