11#ifndef HISTFACTORY_CHANNEL_H
12#define HISTFACTORY_CHANNEL_H
24namespace HistFactory {
34 Channel(std::string
Name, std::string InputFile=
"");
51 void SetData( std::string HistoName, std::string InputFile, std::string HistoPath=
"" );
73 void Print(std::ostream& = std::cout);
93 std::vector< RooStats::HistFactory::Sample >
fSamples;
96 TH1*
GetHistogram( std::string InputFile, std::string HistoPath, std::string HistoName );
This class encapsulates all information for the statistical interpretation of one experiment.
std::string GetInputFile()
get name of input file
void SetName(const std::string &Name)
set name of channel
std::vector< RooStats::HistFactory::Data > fAdditionalData
One can add additional datasets These are simply added to the xml under a different name.
std::string GetHistoPath()
get path to histograms in input file
std::vector< RooStats::HistFactory::Data > & GetAdditionalData()
retrieve vector of additional data objects
void Print(std::ostream &=std::cout)
HistFactory::StatErrorConfig & GetStatErrorConfig()
get information about threshold for statistical uncertainties and constraint term
TH1 * GetHistogram(std::string InputFile, std::string HistoPath, std::string HistoName)
Open a file and copy a histogram.
RooStats::HistFactory::Data & GetData()
get data object
void AddAdditionalData(const RooStats::HistFactory::Data &data)
add additional data object
void PrintXML(std::string Directory, std::string Prefix="")
HistFactory::StatErrorConfig fStatErrorConfig
void SetData(const RooStats::HistFactory::Data &data)
set data object
void SetInputFile(const std::string &file)
set name of input file containing histograms
void AddSample(RooStats::HistFactory::Sample sample)
std::string GetName()
get name of channel
void SetStatErrorConfig(double RelErrorThreshold, Constraint::Type ConstraintType)
std::vector< RooStats::HistFactory::Sample > fSamples
std::vector< RooStats::HistFactory::Sample > & GetSamples()
get vector of samples for this channel
void SetHistoPath(const std::string &file)
set path for histograms in input file
void SetStatErrorConfig(RooStats::HistFactory::StatErrorConfig Config)
define treatment of statistical uncertainties
The RooStats::HistFactory::Measurement class can be used to construct a model by combining multiple R...
Configuration to automatically assign nuisance parameters for the statistical error of the Monte Carl...
Namespace for the RooStats classes.