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

Definition at line 445 of file Measurement.h.

Public Member Functions

 Sample ()
 
 Sample (const Sample &other)
 
 Sample (std::string Name)
 
 Sample (std::string Name, std::string HistoName, std::string InputFile, std::string HistoPath="")
 constructor from name, file and path. Name of the histogram should not include the path
 
 ~Sample ()
 
void ActivateStatError ()
 
void ActivateStatError (std::string HistoName, std::string InputFile, std::string HistoPath="")
 
void AddHistoFactor (const HistoFactor &Factor)
 
void AddHistoFactor (std::string Name, std::string HistoNameLow, std::string HistoFileLow, std::string HistoPathLow, std::string HistoNameHigh, std::string HistoFileHigh, std::string HistoPathHigh)
 
void AddHistoSys (const HistoSys &Sys)
 
void AddHistoSys (std::string Name, std::string HistoNameLow, std::string HistoFileLow, std::string HistoPathLow, std::string HistoNameHigh, std::string HistoFileHigh, std::string HistoPathHigh)
 
void AddNormFactor (const NormFactor &Factor)
 
void AddNormFactor (std::string const &Name, double Val, double Low, double High)
 
void AddOverallSys (const OverallSys &Sys)
 
void AddOverallSys (std::string Name, double Low, double High)
 
void AddShapeFactor (const ShapeFactor &Factor)
 
void AddShapeFactor (std::string Name)
 
void AddShapeSys (const ShapeSys &Sys)
 
void AddShapeSys (std::string Name, Constraint::Type ConstraintType, std::string HistoName, std::string HistoFile, std::string HistoPath="")
 
std::string GetChannelName () const
 get name of associated channel
 
const TH1GetHisto () const
 
std::vector< RooStats::HistFactory::HistoFactor > & GetHistoFactorList ()
 
const std::vector< RooStats::HistFactory::HistoFactor > & GetHistoFactorList () const
 
std::string GetHistoName () const
 get histogram name
 
std::string GetHistoPath () const
 get histogram path
 
std::vector< RooStats::HistFactory::HistoSys > & GetHistoSysList ()
 
const std::vector< RooStats::HistFactory::HistoSys > & GetHistoSysList () const
 
std::string GetInputFile () const
 get input ROOT file
 
std::string GetName () const
 get name of sample
 
bool GetNormalizeByTheory () const
 does the normalization scale with luminosity
 
std::vector< RooStats::HistFactory::NormFactor > & GetNormFactorList ()
 
const std::vector< RooStats::HistFactory::NormFactor > & GetNormFactorList () const
 
std::vector< RooStats::HistFactory::OverallSys > & GetOverallSysList ()
 
const std::vector< RooStats::HistFactory::OverallSys > & GetOverallSysList () const
 
std::vector< RooStats::HistFactory::ShapeFactor > & GetShapeFactorList ()
 
const std::vector< RooStats::HistFactory::ShapeFactor > & GetShapeFactorList () const
 
std::vector< RooStats::HistFactory::ShapeSys > & GetShapeSysList ()
 
const std::vector< RooStats::HistFactory::ShapeSys > & GetShapeSysList () const
 
RooStats::HistFactory::StatErrorGetStatError ()
 
const RooStats::HistFactory::StatErrorGetStatError () const
 
bool HasStatError () const
 
Sampleoperator= (const Sample &other)
 
void Print (std::ostream &=std::cout) const
 
void PrintXML (std::ofstream &xml) const
 
void SetChannelName (const std::string &ChannelName)
 set name of associated channel
 
void SetHisto (TH1 *histo)
 
void SetHistoName (const std::string &HistoName)
 set histogram name
 
void SetHistoPath (const std::string &HistoPath)
 set histogram path
 
void SetInputFile (const std::string &InputFile)
 set input ROOT file
 
void SetName (const std::string &Name)
 set name of sample
 
void SetNormalizeByTheory (bool norm)
 defines whether the normalization scale with luminosity
 
void SetStatError (RooStats::HistFactory::StatError Error)
 
void SetValue (double Val)
 
void writeToFile (std::string FileName, std::string DirName)
 

Protected Attributes

std::string fChannelName
 The Name of the parent channel.
 
std::unique_ptr< TH1fhCountingHist
 
std::vector< RooStats::HistFactory::HistoFactorfHistoFactorList
 
std::string fHistoName
 
std::string fHistoPath
 
std::vector< RooStats::HistFactory::HistoSysfHistoSysList
 
HistRef fhNominal
 The Nominal Shape.
 
std::string fInputFile
 
std::string fName
 
bool fNormalizeByTheory = false
 
std::vector< RooStats::HistFactory::NormFactorfNormFactorList
 
std::vector< RooStats::HistFactory::OverallSysfOverallSysList
 
std::vector< RooStats::HistFactory::ShapeFactorfShapeFactorList
 
std::vector< RooStats::HistFactory::ShapeSysfShapeSysList
 
RooStats::HistFactory::StatError fStatError
 Properties.
 
bool fStatErrorActivate = false
 

#include <RooStats/HistFactory/Measurement.h>

Constructor & Destructor Documentation

◆ Sample() [1/4]

RooStats::HistFactory::Sample::Sample ( )
default

◆ ~Sample()

RooStats::HistFactory::Sample::~Sample ( )
default

◆ Sample() [2/4]

RooStats::HistFactory::Sample::Sample ( std::string Name)

Definition at line 692 of file Measurement.cxx.

◆ Sample() [3/4]

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

Definition at line 625 of file Measurement.cxx.

◆ Sample() [4/4]

RooStats::HistFactory::Sample::Sample ( std::string Name,
std::string HistoName,
std::string InputFile,
std::string HistoPath = "" )

constructor from name, file and path. Name of the histogram should not include the path

Definition at line 682 of file Measurement.cxx.

Member Function Documentation

◆ ActivateStatError() [1/2]

void RooStats::HistFactory::Sample::ActivateStatError ( )

Definition at line 894 of file Measurement.cxx.

◆ ActivateStatError() [2/2]

void RooStats::HistFactory::Sample::ActivateStatError ( std::string HistoName,
std::string InputFile,
std::string HistoPath = "" )

Definition at line 901 of file Measurement.cxx.

◆ AddHistoFactor() [1/2]

void RooStats::HistFactory::Sample::AddHistoFactor ( const HistoFactor & Factor)

Definition at line 989 of file Measurement.cxx.

◆ AddHistoFactor() [2/2]

void RooStats::HistFactory::Sample::AddHistoFactor ( std::string Name,
std::string HistoNameLow,
std::string HistoFileLow,
std::string HistoPathLow,
std::string HistoNameHigh,
std::string HistoFileHigh,
std::string HistoPathHigh )

Definition at line 970 of file Measurement.cxx.

◆ AddHistoSys() [1/2]

void RooStats::HistFactory::Sample::AddHistoSys ( const HistoSys & Sys)

Definition at line 965 of file Measurement.cxx.

◆ AddHistoSys() [2/2]

void RooStats::HistFactory::Sample::AddHistoSys ( std::string Name,
std::string HistoNameLow,
std::string HistoFileLow,
std::string HistoPathLow,
std::string HistoNameHigh,
std::string HistoFileHigh,
std::string HistoPathHigh )

Definition at line 946 of file Measurement.cxx.

◆ AddNormFactor() [1/2]

void RooStats::HistFactory::Sample::AddNormFactor ( const NormFactor & Factor)

Definition at line 941 of file Measurement.cxx.

◆ AddNormFactor() [2/2]

void RooStats::HistFactory::Sample::AddNormFactor ( std::string const & Name,
double Val,
double Low,
double High )

Definition at line 928 of file Measurement.cxx.

◆ AddOverallSys() [1/2]

void RooStats::HistFactory::Sample::AddOverallSys ( const OverallSys & Sys)

Definition at line 923 of file Measurement.cxx.

◆ AddOverallSys() [2/2]

void RooStats::HistFactory::Sample::AddOverallSys ( std::string Name,
double Low,
double High )

Definition at line 912 of file Measurement.cxx.

◆ AddShapeFactor() [1/2]

void RooStats::HistFactory::Sample::AddShapeFactor ( const ShapeFactor & Factor)

Definition at line 1002 of file Measurement.cxx.

◆ AddShapeFactor() [2/2]

void RooStats::HistFactory::Sample::AddShapeFactor ( std::string Name)

Definition at line 994 of file Measurement.cxx.

◆ AddShapeSys() [1/2]

void RooStats::HistFactory::Sample::AddShapeSys ( const ShapeSys & Sys)

Definition at line 1022 of file Measurement.cxx.

◆ AddShapeSys() [2/2]

void RooStats::HistFactory::Sample::AddShapeSys ( std::string Name,
Constraint::Type ConstraintType,
std::string HistoName,
std::string HistoFile,
std::string HistoPath = "" )

Definition at line 1007 of file Measurement.cxx.

◆ GetChannelName()

std::string RooStats::HistFactory::Sample::GetChannelName ( ) const
inline

get name of associated channel

Definition at line 519 of file Measurement.h.

◆ GetHisto()

const TH1 * RooStats::HistFactory::Sample::GetHisto ( ) const

Definition at line 694 of file Measurement.cxx.

◆ GetHistoFactorList() [1/2]

std::vector< RooStats::HistFactory::HistoFactor > & RooStats::HistFactory::Sample::GetHistoFactorList ( )
inline

Definition at line 526 of file Measurement.h.

◆ GetHistoFactorList() [2/2]

const std::vector< RooStats::HistFactory::HistoFactor > & RooStats::HistFactory::Sample::GetHistoFactorList ( ) const
inline

Definition at line 533 of file Measurement.h.

◆ GetHistoName()

std::string RooStats::HistFactory::Sample::GetHistoName ( ) const
inline

get histogram name

Definition at line 509 of file Measurement.h.

◆ GetHistoPath()

std::string RooStats::HistFactory::Sample::GetHistoPath ( ) const
inline

get histogram path

Definition at line 514 of file Measurement.h.

◆ GetHistoSysList() [1/2]

std::vector< RooStats::HistFactory::HistoSys > & RooStats::HistFactory::Sample::GetHistoSysList ( )
inline

Definition at line 525 of file Measurement.h.

◆ GetHistoSysList() [2/2]

const std::vector< RooStats::HistFactory::HistoSys > & RooStats::HistFactory::Sample::GetHistoSysList ( ) const
inline

Definition at line 532 of file Measurement.h.

◆ GetInputFile()

std::string RooStats::HistFactory::Sample::GetInputFile ( ) const
inline

get input ROOT file

Definition at line 504 of file Measurement.h.

◆ GetName()

std::string RooStats::HistFactory::Sample::GetName ( ) const
inline

get name of sample

Definition at line 499 of file Measurement.h.

◆ GetNormalizeByTheory()

bool RooStats::HistFactory::Sample::GetNormalizeByTheory ( ) const
inline

does the normalization scale with luminosity

Definition at line 496 of file Measurement.h.

◆ GetNormFactorList() [1/2]

std::vector< RooStats::HistFactory::NormFactor > & RooStats::HistFactory::Sample::GetNormFactorList ( )
inline

Definition at line 524 of file Measurement.h.

◆ GetNormFactorList() [2/2]

const std::vector< RooStats::HistFactory::NormFactor > & RooStats::HistFactory::Sample::GetNormFactorList ( ) const
inline

Definition at line 531 of file Measurement.h.

◆ GetOverallSysList() [1/2]

std::vector< RooStats::HistFactory::OverallSys > & RooStats::HistFactory::Sample::GetOverallSysList ( )
inline

Definition at line 523 of file Measurement.h.

◆ GetOverallSysList() [2/2]

const std::vector< RooStats::HistFactory::OverallSys > & RooStats::HistFactory::Sample::GetOverallSysList ( ) const
inline

Definition at line 530 of file Measurement.h.

◆ GetShapeFactorList() [1/2]

std::vector< RooStats::HistFactory::ShapeFactor > & RooStats::HistFactory::Sample::GetShapeFactorList ( )
inline

Definition at line 528 of file Measurement.h.

◆ GetShapeFactorList() [2/2]

const std::vector< RooStats::HistFactory::ShapeFactor > & RooStats::HistFactory::Sample::GetShapeFactorList ( ) const
inline

Definition at line 535 of file Measurement.h.

◆ GetShapeSysList() [1/2]

std::vector< RooStats::HistFactory::ShapeSys > & RooStats::HistFactory::Sample::GetShapeSysList ( )
inline

Definition at line 527 of file Measurement.h.

◆ GetShapeSysList() [2/2]

const std::vector< RooStats::HistFactory::ShapeSys > & RooStats::HistFactory::Sample::GetShapeSysList ( ) const
inline

Definition at line 534 of file Measurement.h.

◆ GetStatError() [1/2]

RooStats::HistFactory::StatError & RooStats::HistFactory::Sample::GetStatError ( )
inline

Definition at line 538 of file Measurement.h.

◆ GetStatError() [2/2]

const RooStats::HistFactory::StatError & RooStats::HistFactory::Sample::GetStatError ( ) const
inline

Definition at line 539 of file Measurement.h.

◆ HasStatError()

bool RooStats::HistFactory::Sample::HasStatError ( ) const
inline

Definition at line 537 of file Measurement.h.

◆ operator=()

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

Definition at line 651 of file Measurement.cxx.

◆ Print()

void RooStats::HistFactory::Sample::Print ( std::ostream & stream = std::cout) const

Definition at line 755 of file Measurement.cxx.

◆ PrintXML()

void RooStats::HistFactory::Sample::PrintXML ( std::ofstream & xml) const

Definition at line 786 of file Measurement.cxx.

◆ SetChannelName()

void RooStats::HistFactory::Sample::SetChannelName ( const std::string & ChannelName)
inline

set name of associated channel

Definition at line 521 of file Measurement.h.

◆ SetHisto()

void RooStats::HistFactory::Sample::SetHisto ( TH1 * histo)

Definition at line 2056 of file Measurement.cxx.

◆ SetHistoName()

void RooStats::HistFactory::Sample::SetHistoName ( const std::string & HistoName)
inline

set histogram name

Definition at line 511 of file Measurement.h.

◆ SetHistoPath()

void RooStats::HistFactory::Sample::SetHistoPath ( const std::string & HistoPath)
inline

set histogram path

Definition at line 516 of file Measurement.h.

◆ SetInputFile()

void RooStats::HistFactory::Sample::SetInputFile ( const std::string & InputFile)
inline

set input ROOT file

Definition at line 506 of file Measurement.h.

◆ SetName()

void RooStats::HistFactory::Sample::SetName ( const std::string & Name)
inline

set name of sample

Definition at line 501 of file Measurement.h.

◆ SetNormalizeByTheory()

void RooStats::HistFactory::Sample::SetNormalizeByTheory ( bool norm)
inline

defines whether the normalization scale with luminosity

Definition at line 494 of file Measurement.h.

◆ SetStatError()

void RooStats::HistFactory::Sample::SetStatError ( RooStats::HistFactory::StatError Error)
inline

Definition at line 540 of file Measurement.h.

◆ SetValue()

void RooStats::HistFactory::Sample::SetValue ( double Val)

Definition at line 734 of file Measurement.cxx.

◆ writeToFile()

void RooStats::HistFactory::Sample::writeToFile ( std::string FileName,
std::string DirName )

Definition at line 700 of file Measurement.cxx.

Member Data Documentation

◆ fChannelName

std::string RooStats::HistFactory::Sample::fChannelName
protected

The Name of the parent channel.

Definition at line 549 of file Measurement.h.

◆ fhCountingHist

std::unique_ptr<TH1> RooStats::HistFactory::Sample::fhCountingHist
protected

Definition at line 572 of file Measurement.h.

◆ fHistoFactorList

std::vector<RooStats::HistFactory::HistoFactor> RooStats::HistFactory::Sample::fHistoFactorList
protected

Definition at line 559 of file Measurement.h.

◆ fHistoName

std::string RooStats::HistFactory::Sample::fHistoName
protected

Definition at line 545 of file Measurement.h.

◆ fHistoPath

std::string RooStats::HistFactory::Sample::fHistoPath
protected

Definition at line 546 of file Measurement.h.

◆ fHistoSysList

std::vector<RooStats::HistFactory::HistoSys> RooStats::HistFactory::Sample::fHistoSysList
protected

Definition at line 558 of file Measurement.h.

◆ fhNominal

HistRef RooStats::HistFactory::Sample::fhNominal
protected

The Nominal Shape.

Definition at line 571 of file Measurement.h.

◆ fInputFile

std::string RooStats::HistFactory::Sample::fInputFile
protected

Definition at line 544 of file Measurement.h.

◆ fName

std::string RooStats::HistFactory::Sample::fName
protected

Definition at line 543 of file Measurement.h.

◆ fNormalizeByTheory

bool RooStats::HistFactory::Sample::fNormalizeByTheory = false
protected

Definition at line 567 of file Measurement.h.

◆ fNormFactorList

std::vector<RooStats::HistFactory::NormFactor> RooStats::HistFactory::Sample::fNormFactorList
protected

Definition at line 556 of file Measurement.h.

◆ fOverallSysList

std::vector<RooStats::HistFactory::OverallSys> RooStats::HistFactory::Sample::fOverallSysList
protected

Definition at line 555 of file Measurement.h.

◆ fShapeFactorList

std::vector<RooStats::HistFactory::ShapeFactor> RooStats::HistFactory::Sample::fShapeFactorList
protected

Definition at line 562 of file Measurement.h.

◆ fShapeSysList

std::vector<RooStats::HistFactory::ShapeSys> RooStats::HistFactory::Sample::fShapeSysList
protected

Definition at line 561 of file Measurement.h.

◆ fStatError

RooStats::HistFactory::StatError RooStats::HistFactory::Sample::fStatError
protected

Properties.

Definition at line 565 of file Measurement.h.

◆ fStatErrorActivate

bool RooStats::HistFactory::Sample::fStatErrorActivate = false
protected

Definition at line 568 of file Measurement.h.

Libraries for RooStats::HistFactory::Sample:

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