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 25 of file HistRef.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
 

#include <RooStats/HistFactory/HistRef.h>

Constructor & Destructor Documentation

◆ HistRef() [1/3]

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

constructor - use gives away ownerhip of the given pointer

Definition at line 31 of file HistRef.h.

◆ HistRef() [2/3]

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

Definition at line 33 of file HistRef.h.

◆ HistRef() [3/3]

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

Definition at line 38 of file HistRef.h.

◆ ~HistRef()

RooStats::HistFactory::HistRef::~HistRef ( )
inline

Definition at line 41 of file HistRef.h.

Member Function Documentation

◆ CopyObject()

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

Definition at line 24 of file HistRef.cxx.

◆ GetObject()

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

Definition at line 56 of file HistRef.h.

◆ operator=() [1/3]

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

assignment operator (delete previous contained histogram)

Definition at line 44 of file HistRef.h.

◆ operator=() [2/3]

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

Definition at line 51 of file HistRef.h.

◆ operator=() [3/3]

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

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

Definition at line 64 of file HistRef.h.

◆ ReleaseObject()

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

Release ownership of object.

Definition at line 67 of file HistRef.h.

◆ SetObject()

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

set the object - user gives away the ownerhisp

Definition at line 59 of file HistRef.h.

Member Data Documentation

◆ fHist

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

Definition at line 75 of file HistRef.h.

Libraries for RooStats::HistFactory::HistRef:

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