ROOT  6.06/08
Reference Guide
Public Member Functions | Protected Attributes | List of all members
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 Print (std::ostream &=std::cout)
 
void PrintXML (std::ofstream &xml)
 
void writeToFile (std::string FileName, std::string DirName)
 
TH1GetHisto ()
 
void SetHisto (TH1 *histo)
 
void SetValue (Double_t Val)
 
void ActivateStatError ()
 Note that histogram name should not include the path of the histogram in the file. More...
 
void ActivateStatError (std::string HistoName, std::string InputFile, std::string HistoPath="")
 
void AddOverallSys (std::string Name, Double_t Low, Double_t High)
 
void AddOverallSys (const OverallSys &Sys)
 
void AddNormFactor (std::string Name, Double_t Val, Double_t Low, Double_t High, bool Const=false)
 
void AddNormFactor (const NormFactor &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 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 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)
 
void SetNormalizeByTheory (bool norm)
 
bool GetNormalizeByTheory ()
 
std::string GetName ()
 
void SetName (const std::string &Name)
 
std::string GetInputFile ()
 
void SetInputFile (const std::string &InputFile)
 
std::string GetHistoName ()
 
void SetHistoName (const std::string &HistoName)
 
std::string GetHistoPath ()
 
void SetHistoPath (const std::string &HistoPath)
 
std::string GetChannelName ()
 
void SetChannelName (const std::string &ChannelName)
 
std::vector< RooStats::HistFactory::OverallSys > & GetOverallSysList ()
 
std::vector< RooStats::HistFactory::NormFactor > & GetNormFactorList ()
 
std::vector< RooStats::HistFactory::HistoSys > & GetHistoSysList ()
 
std::vector< RooStats::HistFactory::HistoFactor > & GetHistoFactorList ()
 
std::vector< RooStats::HistFactory::ShapeSys > & GetShapeSysList ()
 
std::vector< RooStats::HistFactory::ShapeFactor > & GetShapeFactorList ()
 
RooStats::HistFactory::StatErrorGetStatError ()
 
void SetStatError (RooStats::HistFactory::StatError Error)
 

Protected Attributes

std::string fName
 
std::string fInputFile
 
std::string fHistoName
 
std::string fHistoPath
 
std::string fChannelName
 
std::vector< RooStats::HistFactory::OverallSysfOverallSysList
 
std::vector< RooStats::HistFactory::NormFactorfNormFactorList
 
std::vector< RooStats::HistFactory::HistoSysfHistoSysList
 
std::vector< RooStats::HistFactory::HistoFactorfHistoFactorList
 
std::vector< RooStats::HistFactory::ShapeSysfShapeSysList
 
std::vector< RooStats::HistFactory::ShapeFactorfShapeFactorList
 
RooStats::HistFactory::StatError fStatError
 
bool fNormalizeByTheory
 
bool fStatErrorActivate
 
HistRef fhNominal
 
TH1fhCountingHist
 

#include <RooStats/HistFactory/Sample.h>

+ Collaboration diagram for RooStats::HistFactory::Sample:

Constructor & Destructor Documentation

§ Sample() [1/4]

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

Definition at line 27 of file Sample.cxx.

§ Sample() [2/4]

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

Definition at line 63 of file Sample.cxx.

§ Sample() [3/4]

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

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

§ ~Sample()

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

Definition at line 69 of file Sample.cxx.

Member Function Documentation

§ ActivateStatError() [1/2]

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

Note that histogram name should not include the path of the histogram in the file.

This has to be given separatly

Definition at line 293 of file Sample.cxx.

Referenced by SetHisto().

§ ActivateStatError() [2/2]

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

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

Referenced by SetHisto().

§ AddHistoFactor() [2/2]

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

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

Referenced by SetHisto().

§ AddHistoSys() [2/2]

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

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

Referenced by SetHisto().

§ AddNormFactor() [2/2]

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

Definition at line 343 of file Sample.cxx.

§ AddOverallSys() [1/2]

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

Definition at line 314 of file Sample.cxx.

Referenced by SetHisto().

§ AddOverallSys() [2/2]

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

Definition at line 325 of file Sample.cxx.

§ AddShapeFactor() [1/2]

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

Definition at line 395 of file Sample.cxx.

Referenced by SetHisto().

§ AddShapeFactor() [2/2]

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

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

Referenced by SetHisto().

§ AddShapeSys() [2/2]

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

Definition at line 423 of file Sample.cxx.

§ GetChannelName()

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

Definition at line 102 of file Sample.h.

Referenced by RooStats::HistFactory::GetChannelEstimateSummaries().

§ GetHisto()

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

§ GetHistoFactorList()

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

§ GetHistoName()

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

§ GetHistoPath()

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

§ GetHistoSysList()

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

§ GetInputFile()

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

§ GetName()

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

§ GetNormalizeByTheory()

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

§ GetNormFactorList()

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

§ GetOverallSysList()

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

§ GetShapeFactorList()

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

§ GetShapeSysList()

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

§ GetStatError()

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

§ Print()

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

Definition at line 139 of file Sample.cxx.

§ PrintXML()

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

Definition at line 179 of file Sample.cxx.

§ SetChannelName()

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

§ SetHisto()

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

Definition at line 45 of file Sample.h.

Referenced by RooStats::HistFactory::Channel::CollectHistograms(), and SetValue().

§ SetHistoName()

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

Definition at line 94 of file Sample.h.

Referenced by RooStats::HistFactory::ConfigParser::CreateSampleElement().

§ SetHistoPath()

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

Definition at line 99 of file Sample.h.

Referenced by RooStats::HistFactory::ConfigParser::CreateSampleElement().

§ SetInputFile()

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

Definition at line 89 of file Sample.h.

Referenced by RooStats::HistFactory::ConfigParser::CreateSampleElement().

§ SetName()

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

Definition at line 84 of file Sample.h.

Referenced by RooStats::HistFactory::ConfigParser::CreateSampleElement().

§ SetNormalizeByTheory()

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

Definition at line 76 of file Sample.h.

Referenced by RooStats::HistFactory::ConfigParser::CreateSampleElement().

§ SetStatError()

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

Definition at line 118 of file Sample.h.

Referenced by RooStats::HistFactory::ConfigParser::CreateSampleElement().

§ SetValue()

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

Definition at line 115 of file Sample.cxx.

Referenced by Sample(), and SetHisto().

§ writeToFile()

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

Definition at line 80 of file Sample.cxx.

Referenced by RooStats::HistFactory::Measurement::writeToFile().

Member Data Documentation

§ fChannelName

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

Definition at line 129 of file Sample.h.

Referenced by GetChannelName(), Print(), and SetChannelName().

§ fhCountingHist

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

Definition at line 154 of file Sample.h.

Referenced by Sample(), SetValue(), and ~Sample().

§ fHistoFactorList

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

Definition at line 139 of file Sample.h.

Referenced by AddHistoFactor(), GetHistoFactorList(), and PrintXML().

§ fHistoName

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

Definition at line 125 of file Sample.h.

Referenced by GetHistoName(), Print(), PrintXML(), SetHisto(), SetHistoName(), and writeToFile().

§ fHistoPath

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

Definition at line 126 of file Sample.h.

Referenced by GetHistoPath(), Print(), PrintXML(), SetHistoPath(), and writeToFile().

§ fHistoSysList

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

Definition at line 138 of file Sample.h.

Referenced by AddHistoSys(), GetHistoSysList(), and PrintXML().

§ fhNominal

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

Definition at line 153 of file Sample.h.

Referenced by GetHisto(), and SetHisto().

§ fInputFile

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

Definition at line 124 of file Sample.h.

Referenced by GetInputFile(), Print(), PrintXML(), SetInputFile(), and writeToFile().

§ fName

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

Definition at line 123 of file Sample.h.

Referenced by GetName(), Print(), PrintXML(), SetName(), and SetValue().

§ fNormalizeByTheory

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

Definition at line 148 of file Sample.h.

Referenced by GetNormalizeByTheory(), Print(), PrintXML(), and SetNormalizeByTheory().

§ fNormFactorList

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

Definition at line 136 of file Sample.h.

Referenced by AddNormFactor(), GetNormFactorList(), and PrintXML().

§ fOverallSysList

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

Definition at line 135 of file Sample.h.

Referenced by AddOverallSys(), GetOverallSysList(), and PrintXML().

§ fShapeFactorList

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

Definition at line 142 of file Sample.h.

Referenced by AddShapeFactor(), GetShapeFactorList(), and PrintXML().

§ fShapeSysList

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

Definition at line 141 of file Sample.h.

Referenced by AddShapeSys(), GetShapeSysList(), and PrintXML().

§ fStatError

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

Definition at line 146 of file Sample.h.

Referenced by ActivateStatError(), GetStatError(), Print(), PrintXML(), and SetStatError().

§ fStatErrorActivate

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

Definition at line 149 of file Sample.h.

Referenced by Print().


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