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

class RooStats::HistFactory::Channel

This class is also known as (typedefs to this class)

vector<RooStats::HistFactory::Channel,allocator<RooStats::HistFactory::Channel> >::value_type

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()
Channel(const RooStats::HistFactory::Channel& other)
Channel(string Name, string InputFile = "")
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; }
void SetData(string HistoName, string InputFile, string HistoPath = "")
void SetData(double Val)
void SetData(TH1* hData)
 get data object
RooStats::HistFactory::Data& GetData()
{ 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, Constraint::Type ConstraintType )
void SetStatErrorConfig(double RelErrorThreshold, string ConstraintType)
 define treatment of statistical uncertainties
void SetStatErrorConfig(RooStats::HistFactory::StatErrorConfig Config)
 get information about threshold for statistical uncertainties and constraint term
{ fStatErrorConfig = Config; }
HistFactory::StatErrorConfig& GetStatErrorConfig()
{ return fStatErrorConfig; }
void AddSample(RooStats::HistFactory::Sample sample)
 get vector of samples for this channel
std::vector< RooStats::HistFactory::Sample >& GetSamples()
{ return fSamples; }
void Print(ostream& = std::cout)
void PrintXML(string Directory, string Prefix = "")
void CollectHistograms()
bool CheckHistograms()
TH1* GetHistogram(string InputFile, string HistoPath, string HistoName)
 Open a file and copy a histogram