11#ifndef HISTFACTORY_SAMPLE_H
12#define HISTFACTORY_SAMPLE_H
25namespace HistFactory {
37 Sample(std::string
Name, std::string HistoName, std::string InputFile, std::string HistoPath=
"");
40 void Print(std::ostream& = std::cout)
const;
42 void writeToFile( std::string FileName, std::string DirName );
54 void ActivateStatError( std::string HistoName, std::string InputFile, std::string HistoPath=
"" );
62 void AddHistoSys( std::string
Name, std::string HistoNameLow, std::string HistoFileLow, std::string HistoPathLow,
63 std::string HistoNameHigh, std::string HistoFileHigh, std::string HistoPathHigh );
66 void AddHistoFactor( std::string
Name, std::string HistoNameLow, std::string HistoFileLow, std::string HistoPathLow,
67 std::string HistoNameHigh, std::string HistoFileHigh, std::string HistoPathHigh );
void Error(const char *location, const char *msgfmt,...)
Internal class wrapping an histogram and managing its content.
Configuration for an *un*constrained, coherent shape variation of affected samples.
Configuration for a constrained, coherent shape variation of affected samples.
Configuration for an un- constrained overall systematic to scale sample normalisations.
Configuration for a constrained overall systematic to scale sample normalisations.
std::vector< RooStats::HistFactory::OverallSys > & GetOverallSysList()
std::vector< RooStats::HistFactory::OverallSys > fOverallSysList
std::string GetHistoName() const
get histogram name
void SetStatError(RooStats::HistFactory::StatError Error)
void AddShapeSys(std::string Name, Constraint::Type ConstraintType, std::string HistoName, std::string HistoFile, std::string HistoPath="")
std::string GetName() const
get name of sample
void writeToFile(std::string FileName, std::string DirName)
const TH1 * GetHisto() const
std::vector< RooStats::HistFactory::HistoFactor > fHistoFactorList
void SetInputFile(const std::string &InputFile)
set input ROOT file
RooStats::HistFactory::StatError fStatError
Properties.
void SetChannelName(const std::string &ChannelName)
set name of associated channel
void SetHistoName(const std::string &HistoName)
set histogram name
std::vector< RooStats::HistFactory::NormFactor > fNormFactorList
std::vector< RooStats::HistFactory::HistoSys > fHistoSysList
std::string fChannelName
The Name of the parent channel.
void SetHisto(TH1 *histo)
void Print(std::ostream &=std::cout) const
void AddNormFactor(std::string Name, Double_t Val, Double_t Low, Double_t High, bool Const=false)
Sample & operator=(const Sample &other)
std::string GetHistoPath() const
get histogram path
std::vector< RooStats::HistFactory::ShapeSys > fShapeSysList
void SetNormalizeByTheory(bool norm)
defines whether the normalization scale with luminosity
void SetValue(Double_t Val)
void PrintXML(std::ofstream &xml)
void AddOverallSys(std::string Name, Double_t Low, Double_t High)
RooStats::HistFactory::StatError & GetStatError()
void AddHistoFactor(std::string Name, std::string HistoNameLow, std::string HistoFileLow, std::string HistoPathLow, std::string HistoNameHigh, std::string HistoFileHigh, std::string HistoPathHigh)
std::vector< RooStats::HistFactory::ShapeFactor > & GetShapeFactorList()
void SetName(const std::string &Name)
set name of sample
std::vector< RooStats::HistFactory::HistoFactor > & GetHistoFactorList()
void SetHistoPath(const std::string &HistoPath)
set histogram path
std::string GetChannelName() const
get name of associated channel
std::vector< RooStats::HistFactory::NormFactor > & GetNormFactorList()
std::string GetInputFile() const
get input ROOT file
std::vector< RooStats::HistFactory::HistoSys > & GetHistoSysList()
bool GetNormalizeByTheory() const
does the normalization scale with luminosity
HistRef fhNominal
The Nominal Shape.
void AddShapeFactor(std::string Name)
std::vector< RooStats::HistFactory::ShapeFactor > fShapeFactorList
std::vector< RooStats::HistFactory::ShapeSys > & GetShapeSysList()
void AddHistoSys(std::string Name, std::string HistoNameLow, std::string HistoFileLow, std::string HistoPathLow, std::string HistoNameHigh, std::string HistoFileHigh, std::string HistoPathHigh)
*Un*constrained bin-by-bin variation of affected histogram.
Constrained bin-by-bin variation of affected histogram.
Statistical error of Monte Carlo predictions.
virtual const char * GetName() const
Returns name of object.
Namespace for the RooStats classes.