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.
Definition at line 579 of file Measurement.h.
Public Member Functions | |
| Channel ()=default | |
| Channel (std::string Name, std::string InputFile="") | |
| void | AddAdditionalData (const RooStats::HistFactory::Data &data) |
| add additional data object | |
| void | AddSample (RooStats::HistFactory::Sample sample) |
| bool | CheckHistograms () const |
| void | CollectHistograms () |
| std::vector< RooStats::HistFactory::Data > & | GetAdditionalData () |
| retrieve vector of additional data objects | |
| RooStats::HistFactory::Data & | GetData () |
| get data object | |
| const RooStats::HistFactory::Data & | GetData () const |
| std::string | GetHistoPath () const |
| get path to histograms in input file | |
| std::string | GetInputFile () const |
| get name of input file | |
| std::string | GetName () const |
| get name of channel | |
| std::vector< RooStats::HistFactory::Sample > & | GetSamples () |
| get vector of samples for this channel | |
| const std::vector< RooStats::HistFactory::Sample > & | GetSamples () const |
| HistFactory::StatErrorConfig & | GetStatErrorConfig () |
| get information about threshold for statistical uncertainties and constraint term | |
| const HistFactory::StatErrorConfig & | GetStatErrorConfig () const |
| void | Print (std::ostream &=std::cout) |
| void | PrintXML (std::string const &directory, std::string const &prefix="") const |
| void | SetData (const RooStats::HistFactory::Data &data) |
| set data object | |
| 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 | |
| void | SetInputFile (const std::string &file) |
| set name of input file containing histograms | |
| void | SetName (const std::string &Name) |
| set name of channel | |
| 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 | |
Protected Member Functions | |
| TH1 * | GetHistogram (std::string InputFile, std::string HistoPath, std::string HistoName, std::map< std::string, std::unique_ptr< TFile > > &lsof) |
| Open a file and copy a histogram. | |
Protected Attributes | |
| std::vector< RooStats::HistFactory::Data > | fAdditionalData |
| One can add additional datasets These are simply added to the xml under a different name. | |
| 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/Measurement.h>
|
default |
| RooStats::HistFactory::Channel::Channel | ( | std::string | Name, |
| std::string | InputFile = "" ) |
Definition at line 912 of file Measurement.cxx.
|
inline |
add additional data object
Definition at line 610 of file Measurement.h.
| void RooStats::HistFactory::Channel::AddSample | ( | RooStats::HistFactory::Sample | sample | ) |
Definition at line 921 of file Measurement.cxx.
| bool RooStats::HistFactory::Channel::CheckHistograms | ( | ) | const |
Definition at line 1130 of file Measurement.cxx.
| void RooStats::HistFactory::Channel::CollectHistograms | ( | ) |
Definition at line 1055 of file Measurement.cxx.
|
inline |
retrieve vector of additional data objects
Definition at line 612 of file Measurement.h.
|
inline |
get data object
Definition at line 606 of file Measurement.h.
|
inline |
Definition at line 607 of file Measurement.h.
|
protected |
Open a file and copy a histogram.
| InputFile | File where the histogram resides. |
| HistoPath | Path of the histogram in the file. |
| HistoName | Name of the histogram to retrieve. |
| lsof | List of open files. Helps to prevent opening and closing a file hundreds of times. |
Definition at line 1232 of file Measurement.cxx.
|
inline |
get path to histograms in input file
Definition at line 598 of file Measurement.h.
|
inline |
get name of input file
Definition at line 594 of file Measurement.h.
|
inline |
get name of channel
Definition at line 590 of file Measurement.h.
|
inline |
get vector of samples for this channel
Definition at line 624 of file Measurement.h.
|
inline |
Definition at line 625 of file Measurement.h.
|
inline |
get information about threshold for statistical uncertainties and constraint term
Definition at line 619 of file Measurement.h.
|
inline |
Definition at line 620 of file Measurement.h.
| void RooStats::HistFactory::Channel::Print | ( | std::ostream & | stream = std::cout | ) |
Definition at line 929 of file Measurement.cxx.
| void RooStats::HistFactory::Channel::PrintXML | ( | std::string const & | directory, |
| std::string const & | prefix = "" ) const |
Definition at line 952 of file Measurement.cxx.
|
inline |
set data object
Definition at line 601 of file Measurement.h.
| void RooStats::HistFactory::Channel::SetData | ( | double | Val | ) |
Definition at line 1022 of file Measurement.cxx.
| void RooStats::HistFactory::Channel::SetData | ( | std::string | HistoName, |
| std::string | InputFile, | ||
| std::string | HistoPath = "" ) |
Definition at line 1006 of file Measurement.cxx.
| void RooStats::HistFactory::Channel::SetData | ( | TH1 * | hData | ) |
Definition at line 1016 of file Measurement.cxx.
|
inline |
set path for histograms in input file
Definition at line 596 of file Measurement.h.
|
inline |
set name of input file containing histograms
Definition at line 592 of file Measurement.h.
|
inline |
set name of channel
Definition at line 588 of file Measurement.h.
| void RooStats::HistFactory::Channel::SetStatErrorConfig | ( | double | RelErrorThreshold, |
| Constraint::Type | ConstraintType ) |
Definition at line 1041 of file Measurement.cxx.
| void RooStats::HistFactory::Channel::SetStatErrorConfig | ( | double | RelErrorThreshold, |
| std::string | ConstraintType ) |
Definition at line 1048 of file Measurement.cxx.
|
inline |
define treatment of statistical uncertainties
Definition at line 617 of file Measurement.h.
|
friend |
Definition at line 582 of file Measurement.h.
|
protected |
One can add additional datasets These are simply added to the xml under a different name.
Definition at line 642 of file Measurement.h.
|
protected |
Definition at line 638 of file Measurement.h.
|
protected |
Definition at line 636 of file Measurement.h.
|
protected |
Definition at line 635 of file Measurement.h.
|
protected |
Definition at line 634 of file Measurement.h.
|
protected |
Definition at line 646 of file Measurement.h.
|
protected |
Definition at line 644 of file Measurement.h.