Logo ROOT   6.21/01
Reference Guide
RooStats::HistFactory::Sample Class Reference

Definition at line 27 of file Sample.h.

Public Member Functions

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

Protected Attributes

std::string fChannelName
 The Name of the parent channel. More...
 
TH1fhCountingHist
 
std::vector< RooStats::HistFactory::HistoFactorfHistoFactorList
 
std::string fHistoName
 
std::string fHistoPath
 
std::vector< RooStats::HistFactory::HistoSysfHistoSysList
 
HistRef fhNominal
 The Nominal Shape. More...
 
std::string fInputFile
 
std::string fName
 
bool fNormalizeByTheory
 
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. More...
 
bool fStatErrorActivate
 

#include <RooStats/HistFactory/Sample.h>

Constructor & Destructor Documentation

◆ Sample() [1/4]

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

Definition at line 22 of file Sample.cxx.

◆ Sample() [2/4]

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

Definition at line 88 of file Sample.cxx.

◆ Sample() [3/4]

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

Definition at line 26 of file Sample.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 82 of file Sample.cxx.

◆ ~Sample()

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

Definition at line 94 of file Sample.cxx.

Member Function Documentation

◆ ActivateStatError() [1/2]

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

Definition at line 318 of file Sample.cxx.

◆ ActivateStatError() [2/2]

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

Definition at line 326 of file Sample.cxx.

◆ AddHistoFactor() [1/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 397 of file Sample.cxx.

◆ AddHistoFactor() [2/2]

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

Definition at line 415 of file Sample.cxx.

◆ AddHistoSys() [1/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 373 of file Sample.cxx.

◆ AddHistoSys() [2/2]

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

Definition at line 392 of file Sample.cxx.

◆ AddNormFactor() [1/2]

void RooStats::HistFactory::Sample::AddNormFactor ( std::string  Name,
Double_t  Val,
Double_t  Low,
Double_t  High,
bool  Const = false 
)

Definition at line 354 of file Sample.cxx.

◆ AddNormFactor() [2/2]

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

Definition at line 368 of file Sample.cxx.

◆ AddOverallSys() [1/2]

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

Definition at line 339 of file Sample.cxx.

◆ AddOverallSys() [2/2]

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

Definition at line 350 of file Sample.cxx.

◆ AddShapeFactor() [1/2]

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

Definition at line 420 of file Sample.cxx.

◆ AddShapeFactor() [2/2]

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

Definition at line 429 of file Sample.cxx.

◆ AddShapeSys() [1/2]

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

Definition at line 434 of file Sample.cxx.

◆ AddShapeSys() [2/2]

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

Definition at line 448 of file Sample.cxx.

◆ GetChannelName()

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

get name of associated channel

Definition at line 103 of file Sample.h.

◆ GetHisto()

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

Definition at line 99 of file Sample.cxx.

◆ GetHistoFactorList()

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

Definition at line 113 of file Sample.h.

◆ GetHistoName()

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

get histogram name

Definition at line 93 of file Sample.h.

◆ GetHistoPath()

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

get histogram path

Definition at line 98 of file Sample.h.

◆ GetHistoSysList()

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

Definition at line 112 of file Sample.h.

◆ GetInputFile()

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

get input ROOT file

Definition at line 88 of file Sample.h.

◆ GetName()

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

get name of sample

Definition at line 83 of file Sample.h.

◆ GetNormalizeByTheory()

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

does the normalization scale with luminosity

Definition at line 79 of file Sample.h.

◆ GetNormFactorList()

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

Definition at line 110 of file Sample.h.

◆ GetOverallSysList()

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

Definition at line 109 of file Sample.h.

◆ GetShapeFactorList()

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

Definition at line 116 of file Sample.h.

◆ GetShapeSysList()

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

Definition at line 115 of file Sample.h.

◆ GetStatError()

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

Definition at line 118 of file Sample.h.

◆ operator=()

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

Definition at line 51 of file Sample.cxx.

◆ Print()

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

Definition at line 164 of file Sample.cxx.

◆ PrintXML()

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

Definition at line 204 of file Sample.cxx.

◆ SetChannelName()

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

set name of associated channel

Definition at line 105 of file Sample.h.

◆ SetHisto()

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

Definition at line 46 of file Sample.h.

◆ SetHistoName()

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

set histogram name

Definition at line 95 of file Sample.h.

◆ SetHistoPath()

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

set histogram path

Definition at line 100 of file Sample.h.

◆ SetInputFile()

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

set input ROOT file

Definition at line 90 of file Sample.h.

◆ SetName()

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

set name of sample

Definition at line 85 of file Sample.h.

◆ SetNormalizeByTheory()

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

defines whether the normalization scale with luminosity

Definition at line 77 of file Sample.h.

◆ SetStatError()

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

Definition at line 119 of file Sample.h.

◆ SetValue()

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

Definition at line 140 of file Sample.cxx.

◆ writeToFile()

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

Definition at line 105 of file Sample.cxx.

Member Data Documentation

◆ fChannelName

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

The Name of the parent channel.

Definition at line 132 of file Sample.h.

◆ fhCountingHist

TH1* RooStats::HistFactory::Sample::fhCountingHist
protected

Definition at line 157 of file Sample.h.

◆ fHistoFactorList

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

Definition at line 142 of file Sample.h.

◆ fHistoName

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

Definition at line 128 of file Sample.h.

◆ fHistoPath

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

Definition at line 129 of file Sample.h.

◆ fHistoSysList

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

Definition at line 141 of file Sample.h.

◆ fhNominal

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

The Nominal Shape.

Definition at line 156 of file Sample.h.

◆ fInputFile

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

Definition at line 127 of file Sample.h.

◆ fName

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

Definition at line 126 of file Sample.h.

◆ fNormalizeByTheory

bool RooStats::HistFactory::Sample::fNormalizeByTheory
protected

Definition at line 151 of file Sample.h.

◆ fNormFactorList

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

Definition at line 139 of file Sample.h.

◆ fOverallSysList

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

Definition at line 138 of file Sample.h.

◆ fShapeFactorList

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

Definition at line 145 of file Sample.h.

◆ fShapeSysList

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

Definition at line 144 of file Sample.h.

◆ fStatError

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

Properties.

Definition at line 149 of file Sample.h.

◆ fStatErrorActivate

bool RooStats::HistFactory::Sample::fStatErrorActivate
protected

Definition at line 152 of file Sample.h.

Libraries for RooStats::HistFactory::Sample:
[legend]

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