ROOT » ROOFIT » HISTFACTORY » RooStats::HistFactory::Channel

class RooStats::HistFactory::Channel


This class encapsulates all information for the statistical interpretation of one experiment. It can be combined with other channels (e.g. for the combination of multiple experiments, or to constrain nuisance parameters with information obtained in a control region). A channel contains one or more samples which describe the contribution from different processes to this measurement.



Function Members (Methods)

public:
~Channel()
voidAddAdditionalData(const RooStats::HistFactory::Data& data)
voidAddSample(RooStats::HistFactory::Sample sample)
RooStats::HistFactory::ChannelChannel()
RooStats::HistFactory::ChannelChannel(const RooStats::HistFactory::Channel& other)
RooStats::HistFactory::ChannelChannel(string Name, string InputFile = "")
boolCheckHistograms()
voidCollectHistograms()
vector<RooStats::HistFactory::Data>&GetAdditionalData()
RooStats::HistFactory::Data&GetData()
stringGetHistoPath()
stringGetInputFile()
stringGetName()
vector<RooStats::HistFactory::Sample>&GetSamples()
RooStats::HistFactory::StatErrorConfig&GetStatErrorConfig()
RooStats::HistFactory::Channel&operator=(const RooStats::HistFactory::Channel&)
voidPrint(ostream& = std::cout)
voidPrintXML(string Directory, string Prefix = "")
voidSetData(const RooStats::HistFactory::Data& data)
voidSetData(double Val)
voidSetData(TH1* hData)
voidSetData(string HistoName, string InputFile, string HistoPath = "")
voidSetHistoPath(const string& file)
voidSetInputFile(const string& file)
voidSetName(const string& Name)
voidSetStatErrorConfig(RooStats::HistFactory::StatErrorConfig Config)
voidSetStatErrorConfig(double RelErrorThreshold, RooStats::HistFactory::Constraint::Type ConstraintType)
voidSetStatErrorConfig(double RelErrorThreshold, string ConstraintType)
protected:
TH1*GetHistogram(string InputFile, string HistoPath, string HistoName)

Data Members

protected:
vector<RooStats::HistFactory::Data>fAdditionalData
RooStats::HistFactory::DatafData
stringfHistoPath
stringfInputFile
stringfName
vector<RooStats::HistFactory::Sample>fSamples
RooStats::HistFactory::StatErrorConfigfStatErrorConfig

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Channel()
 standard constructor
Channel(const RooStats::HistFactory::Channel& other)
{ ; }
Channel(string Name, string InputFile = "")
 create channel with given name and input file
void AddSample(RooStats::HistFactory::Sample sample)
 add fully configured sample to channel
void Print(ostream& = std::cout)
 print information of channel to given stream
void PrintXML(string Directory, string Prefix = "")
void SetData(string HistoName, string InputFile, string HistoPath = "")
 set data for this channel by specifying the name of the histogram,
 the external ROOT file and the path to the histogram inside the ROOT file
void SetData(TH1* hData)
 set data directly to some histogram
void SetData(double Val)
void SetStatErrorConfig( double StatRelErrorThreshold, Constraint::Type StatConstraintType )
void SetStatErrorConfig(double RelErrorThreshold, string ConstraintType)
void CollectHistograms()
bool CheckHistograms()
TH1* GetHistogram(string InputFile, string HistoPath, string HistoName)
void SetName(const string& Name)
 set name of channel
{ fName = Name; }
std::string GetName()
 get name of channel
{ return fName; }
void SetInputFile(const string& file)
 set name of input file containing histograms
{ fInputFile = file; }
std::string GetInputFile()
 get name of input file
{ return fInputFile; }
void SetHistoPath(const string& file)
 set path for histograms in input file
{ fHistoPath = file; }
std::string GetHistoPath()
 get path to histograms in input file
{ return fHistoPath; }
void SetData(const RooStats::HistFactory::Data& data)
 set data object
{ fData = data; }
RooStats::HistFactory::Data& GetData()
 get data object
{ return fData; }
void AddAdditionalData(const RooStats::HistFactory::Data& data)
 add additional data object
{ fAdditionalData.push_back(data); }
std::vector<RooStats::HistFactory::Data>& GetAdditionalData()
 retrieve vector of additional data objects
{ return fAdditionalData; }
void SetStatErrorConfig(double RelErrorThreshold, RooStats::HistFactory::Constraint::Type ConstraintType)
HistFactory::StatErrorConfig& GetStatErrorConfig()
 get information about threshold for statistical uncertainties and constraint term
{ return fStatErrorConfig; }
std::vector< RooStats::HistFactory::Sample >& GetSamples()
 get vector of samples for this channel
{ return fSamples; }