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 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 ()
 
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 1645 of file Measurement.cxx.

◆ HistRef() [2/3]

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

Definition at line 1647 of file Measurement.cxx.

◆ HistRef() [3/3]

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

Definition at line 1653 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 1673 of file Measurement.cxx.

◆ GetObject()

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

Definition at line 1684 of file Measurement.cxx.

◆ operator=() [1/3]

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

assignment operator (delete previous contained histogram)

Definition at line 1658 of file Measurement.cxx.

◆ operator=() [2/3]

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

Definition at line 1667 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 1696 of file Measurement.cxx.

◆ ReleaseObject()

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

Release ownership of object.

Definition at line 1702 of file Measurement.cxx.

◆ SetObject()

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

set the object - user gives away the ownerhisp

Definition at line 1690 of file Measurement.cxx.

Member Data Documentation

◆ fHist

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

pointer to contained histogram

Definition at line 353 of file Measurement.h.

Libraries for RooStats::HistFactory::HistRef:

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