ROOT 6.16/01 Reference Guide |
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.
Public Member Functions | |
Channel () | |
Channel (const Channel &other) | |
Channel (std::string Name, std::string InputFile="") | |
void | AddAdditionalData (const RooStats::HistFactory::Data &data) |
add additional data object More... | |
void | AddSample (RooStats::HistFactory::Sample sample) |
bool | CheckHistograms () |
void | CollectHistograms () |
std::vector< RooStats::HistFactory::Data > & | GetAdditionalData () |
retrieve vector of additional data objects More... | |
RooStats::HistFactory::Data & | GetData () |
get data object More... | |
std::string | GetHistoPath () |
get path to histograms in input file More... | |
std::string | GetInputFile () |
get name of input file More... | |
std::string | GetName () |
get name of channel More... | |
std::vector< RooStats::HistFactory::Sample > & | GetSamples () |
get vector of samples for this channel More... | |
HistFactory::StatErrorConfig & | GetStatErrorConfig () |
get information about threshold for statistical uncertainties and constraint term More... | |
void | Print (std::ostream &=std::cout) |
void | PrintXML (std::string Directory, std::string Prefix="") |
void | SetData (const RooStats::HistFactory::Data &data) |
set data object More... | |
void | SetData (double Val) |
void | SetData (std::string HistoName, std::string InputFile, std::string HistoPath="") |
void | SetData (TH1 *hData) |
void | SetHistoPath (const std::string &file) |
set path for histograms in input file More... | |
void | SetInputFile (const std::string &file) |
set name of input file containing histograms More... | |
void | SetName (const std::string &Name) |
set name of channel More... | |
void | SetStatErrorConfig (double RelErrorThreshold, Constraint::Type ConstraintType) |
void | SetStatErrorConfig (double RelErrorThreshold, std::string ConstraintType) |
void | SetStatErrorConfig (RooStats::HistFactory::StatErrorConfig Config) |
define treatment of statistical uncertainties More... | |
Protected Member Functions | |
TH1 * | GetHistogram (std::string InputFile, std::string HistoPath, std::string HistoName) |
Open a file and copy a histogram. More... | |
Protected Attributes | |
std::vector< RooStats::HistFactory::Data > | fAdditionalData |
One can add additional datasets These are simply added to the xml under a different name. More... | |
HistFactory::Data | fData |
std::string | fHistoPath |
std::string | fInputFile |
std::string | fName |
std::vector< RooStats::HistFactory::Sample > | fSamples |
HistFactory::StatErrorConfig | fStatErrorConfig |
Friends | |
class | Measurement |
#include <RooStats/HistFactory/Channel.h>
RooStats::HistFactory::Channel::Channel | ( | ) |
Definition at line 33 of file Channel.cxx.
RooStats::HistFactory::Channel::Channel | ( | const Channel & | other | ) |
Definition at line 39 of file Channel.cxx.
RooStats::HistFactory::Channel::Channel | ( | std::string | Name, |
std::string | InputFile = "" |
||
) |
Definition at line 50 of file Channel.cxx.
|
inline |
void RooStats::HistFactory::Channel::AddSample | ( | RooStats::HistFactory::Sample | sample | ) |
Definition at line 65 of file Channel.cxx.
bool RooStats::HistFactory::Channel::CheckHistograms | ( | ) |
Definition at line 323 of file Channel.cxx.
void RooStats::HistFactory::Channel::CollectHistograms | ( | ) |
Definition at line 217 of file Channel.cxx.
|
inline |
|
inline |
|
protected |
Open a file and copy a histogram.
Definition at line 449 of file Channel.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void RooStats::HistFactory::Channel::Print | ( | std::ostream & | stream = std::cout | ) |
Definition at line 73 of file Channel.cxx.
void RooStats::HistFactory::Channel::PrintXML | ( | std::string | Directory, |
std::string | Prefix = "" |
||
) |
Definition at line 103 of file Channel.cxx.
|
inline |
void RooStats::HistFactory::Channel::SetData | ( | double | Val | ) |
Definition at line 181 of file Channel.cxx.
void RooStats::HistFactory::Channel::SetData | ( | std::string | HistoName, |
std::string | InputFile, | ||
std::string | HistoPath = "" |
||
) |
Definition at line 164 of file Channel.cxx.
Definition at line 176 of file Channel.cxx.
|
inline |
|
inline |
|
inline |
void RooStats::HistFactory::Channel::SetStatErrorConfig | ( | double | RelErrorThreshold, |
Constraint::Type | ConstraintType | ||
) |
Definition at line 201 of file Channel.cxx.
void RooStats::HistFactory::Channel::SetStatErrorConfig | ( | double | RelErrorThreshold, |
std::string | ConstraintType | ||
) |
Definition at line 208 of file Channel.cxx.
|
inline |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |