11 #ifndef HISTFACTORY_SAMPLE_H 12 #define HISTFACTORY_SAMPLE_H 25 namespace HistFactory {
36 Sample(std::string Name, std::string HistoName, std::string InputFile, std::string HistoPath=
"");
39 void Print(std::ostream& = std::cout);
41 void writeToFile( std::string FileName, std::string DirName );
53 void ActivateStatError( std::string HistoName, std::string InputFile, std::string HistoPath=
"" );
61 void AddHistoSys( std::string Name, std::string HistoNameLow, std::string HistoFileLow, std::string HistoPathLow,
62 std::string HistoNameHigh, std::string HistoFileHigh, std::string HistoPathHigh );
65 void AddHistoFactor( std::string Name, std::string HistoNameLow, std::string HistoFileLow, std::string HistoPathLow,
66 std::string HistoNameHigh, std::string HistoFileHigh, std::string HistoPathHigh );
72 void AddShapeSys( std::string Name,
Constraint::Type ConstraintType, std::string HistoName, std::string HistoFile, std::string HistoPath=
"" );
virtual const char * GetName() const
Returns name of object.
RooStats::HistFactory::StatError & GetStatError()
std::string GetChannelName()
void ActivateStatError()
Note that histogram name should not include the path of the histogram in the file.
std::vector< RooStats::HistFactory::NormFactor > & GetNormFactorList()
std::string GetHistoPath()
std::vector< RooStats::HistFactory::ShapeFactor > fShapeFactorList
void SetHistoName(const std::string &HistoName)
std::vector< RooStats::HistFactory::NormFactor > fNormFactorList
bool GetNormalizeByTheory()
void SetNormalizeByTheory(bool norm)
RooStats::HistFactory::StatError fStatError
std::vector< RooStats::HistFactory::HistoSys > & GetHistoSysList()
void SetStatError(RooStats::HistFactory::StatError Error)
void AddShapeFactor(std::string Name)
std::vector< RooStats::HistFactory::HistoFactor > fHistoFactorList
void AddHistoFactor(std::string Name, std::string HistoNameLow, std::string HistoFileLow, std::string HistoPathLow, std::string HistoNameHigh, std::string HistoFileHigh, std::string HistoPathHigh)
void SetChannelName(const std::string &ChannelName)
std::string GetInputFile()
void AddShapeSys(std::string Name, Constraint::Type ConstraintType, std::string HistoName, std::string HistoFile, std::string HistoPath="")
void Print(std::ostream &=std::cout)
void Error(const char *location, const char *msgfmt,...)
void writeToFile(std::string FileName, std::string DirName)
void SetValue(Double_t Val)
void SetName(const std::string &Name)
void AddHistoSys(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::ShapeSys > & GetShapeSysList()
void SetInputFile(const std::string &InputFile)
std::vector< RooStats::HistFactory::HistoFactor > & GetHistoFactorList()
std::vector< RooStats::HistFactory::ShapeSys > fShapeSysList
std::vector< RooStats::HistFactory::OverallSys > & GetOverallSysList()
void AddOverallSys(std::string Name, Double_t Low, Double_t High)
void AddNormFactor(std::string Name, Double_t Val, Double_t Low, Double_t High, bool Const=false)
Namespace for the RooStats classes.
void SetHistoPath(const std::string &HistoPath)
std::vector< RooStats::HistFactory::OverallSys > fOverallSysList
std::string GetHistoName()
void SetHisto(TH1 *histo)
std::vector< RooStats::HistFactory::HistoSys > fHistoSysList
void PrintXML(std::ofstream &xml)
std::vector< RooStats::HistFactory::ShapeFactor > & GetShapeFactorList()