A class summarizing a set of predefined measurements. More...
#include <BCMTFAnalysisFacility.h>
Public Member Functions | |
Constructors and destructors | |
BCMTFAnalysisFacility (BCMTF *mtf) | |
The default constructor. More... | |
~BCMTFAnalysisFacility () | |
The default destructor. More... | |
Member functions (get) | |
BCMTF * | GetBCMTF () |
Member functions (set) | |
void | SetBCMTF (BCMTF *mtf) |
Set the pointer to an MTF object. More... | |
void | SetFlagMarginalize (bool flag) |
Set a flag for using MCMC (true) or not (false). More... | |
Member functions (miscellaneous methods) | |
BCLog::LogLevel | GetLogLevel () |
Get the log level for the ensemble test. More... | |
void | SetLogLevel (BCLog::LogLevel level) |
Set the log level for the ensemble test. More... | |
void | PerformSingleChannelAnalyses (const std::string &dirname, const std::string &options="") |
Perform the full set of single channel analyses and the combination. More... | |
void | PerformSingleSystematicAnalyses (const std::string &dirname, const std::string &options="") |
Perform the analysis using one systematic at a time, without systematic and with all systematics. More... | |
void | PerformCalibrationAnalysis (const std::string &dirname, const std::vector< double > &default_parameters, int index, const std::vector< double > ¶metervalues, int nensembles=1000) |
Perform the analysis on pseudo-data generated by varying one of the parameters. More... | |
std::vector< TH1D > | BuildEnsemble (const std::vector< double > ¶meters, const std::string &options="") |
Build a single ensemble based on a single set of parameters. More... | |
TTree * | BuildEnsembles (const std::vector< double > ¶meters, int nensembles, const std::string &options="") |
Build ensembles based on a single set of parameters. More... | |
TTree * | BuildEnsembles (TTree *tree, int nensembles, const std::string &options="") |
Build ensembles based on a varying sets of parameters, e.g., using the prior or posterior. More... | |
TTree * | PerformEnsembleTest (const std::vector< double > ¶meters, int nensembles, const std::string &options="") |
Perform ensemble test based on one set of parameters. More... | |
TTree * | PerformEnsembleTest (TTree *tree, int nensembles, int start=0, const std::string &options="") |
Perform ensemble test based on varying sets of parameters. More... | |
std::vector< TH1D > | MatrixToHistograms (const std::vector< std::vector< double > > &matrix) |
Transform a matrix to a set of histograms. More... | |
Detailed Description
A class summarizing a set of predefined measurements.
- Version
- 1.1
- Date
- 06.2012
This class defines a set of measurements.
Definition at line 35 of file BCMTFAnalysisFacility.h.
Constructor & Destructor Documentation
BCMTFAnalysisFacility::BCMTFAnalysisFacility | ( | BCMTF * | mtf | ) |
The default constructor.
- Parameters
-
mtf The MTF object.
Definition at line 46 of file BCMTFAnalysisFacility.cxx.
BCMTFAnalysisFacility::~BCMTFAnalysisFacility | ( | ) |
The default destructor.
Definition at line 56 of file BCMTFAnalysisFacility.cxx.
Member Function Documentation
std::vector< TH1D > BCMTFAnalysisFacility::BuildEnsemble | ( | const std::vector< double > & | parameters, |
const std::string & | options = "" |
||
) |
Build a single ensemble based on a single set of parameters.
- Parameters
-
parameters The set of parameters which are used to generate the ensembles. options A set of options:
"data" : all pseudo data sets are equal to the actual data set
- Returns
- A vector of TH1D histograms with the pseudo-data.
Definition at line 61 of file BCMTFAnalysisFacility.cxx.
TTree * BCMTFAnalysisFacility::BuildEnsembles | ( | const std::vector< double > & | parameters, |
int | nensembles, | ||
const std::string & | options = "" |
||
) |
Build ensembles based on a single set of parameters.
- Parameters
-
parameters The set of parameters which are used to generate the ensembles. nensembles The number of ensembles to be generated. options A set of options:
"data" : all pseudo data sets are equal to the actual data set
- Returns
- A tree containing the ensembles.
Definition at line 213 of file BCMTFAnalysisFacility.cxx.
TTree * BCMTFAnalysisFacility::BuildEnsembles | ( | TTree * | tree, |
int | nensembles, | ||
const std::string & | options = "" |
||
) |
Build ensembles based on a varying sets of parameters, e.g., using the prior or posterior.
- Parameters
-
tree A BAT output tree containing the parameters to be used for the generation of the ensembles. nensembles The number of ensembles to be generated. options A set of options:
"data" : all pseudo data sets are equal to the actual data set
- Returns
- A tree containing the ensembles.
Definition at line 108 of file BCMTFAnalysisFacility.cxx.
|
inline |
- Returns
- A pointer to the MTF object.
Definition at line 58 of file BCMTFAnalysisFacility.h.
|
inline |
Get the log level for the ensemble test.
- Returns
- The log level.
Definition at line 86 of file BCMTFAnalysisFacility.h.
std::vector< TH1D > BCMTFAnalysisFacility::MatrixToHistograms | ( | const std::vector< std::vector< double > > & | matrix | ) |
Transform a matrix to a set of histograms.
- Parameters
-
matrix The matrix.
- Returns
- A vector of histograms.
Definition at line 664 of file BCMTFAnalysisFacility.cxx.
void BCMTFAnalysisFacility::PerformCalibrationAnalysis | ( | const std::string & | dirname, |
const std::vector< double > & | default_parameters, | ||
int | index, | ||
const std::vector< double > & | parametervalues, | ||
int | nensembles = 1000 |
||
) |
Perform the analysis on pseudo-data generated by varying one of the parameters.
- Parameters
-
dirname The name of a directory into which the results are copied. default_parameters The set of parameters which are fixed. index The index of the parameter which will be varied. parametervalues The different values of the parameter which is varied. nensembles The number of ensembles to be generated.
Definition at line 1209 of file BCMTFAnalysisFacility.cxx.
TTree * BCMTFAnalysisFacility::PerformEnsembleTest | ( | const std::vector< double > & | parameters, |
int | nensembles, | ||
const std::string & | options = "" |
||
) |
Perform ensemble test based on one set of parameters.
- Parameters
-
parameters The set of parameters which are used to generate the ensembles. nensembles The number of ensembles used in the test. options A set of options:
"MC" : for each ensemble, the template are fluctuated statistically
"data" : all pseudo data sets are equal to the actual data set
- Returns
- A tree containing the ensembles and the output of the test.
Definition at line 309 of file BCMTFAnalysisFacility.cxx.
TTree * BCMTFAnalysisFacility::PerformEnsembleTest | ( | TTree * | tree, |
int | nensembles, | ||
int | start = 0 , |
||
const std::string & | options = "" |
||
) |
Perform ensemble test based on varying sets of parameters.
- Parameters
-
tree A BAT output tree containing the parameters to be used for the generation of the ensembles. nensembles The number of ensembles to be generated. start The first ensemble used in the tree. options A set of options:
"MC" : for each ensemble, the template are fluctuated statistically
"data" : all pseudo data sets are equal to the actual data set
- Returns
- A tree containing the ensembles and the output of the test.
Definition at line 322 of file BCMTFAnalysisFacility.cxx.
void BCMTFAnalysisFacility::PerformSingleChannelAnalyses | ( | const std::string & | dirname, |
const std::string & | options = "" |
||
) |
Perform the full set of single channel analyses and the combination.
Possible options are:
"nosyst" : ignore systematic uncertainties. "mcmc" : use mcmc.
- Parameters
-
dirname The name of a directory into which the results are copied. options A set of options.
Definition at line 701 of file BCMTFAnalysisFacility.cxx.
void BCMTFAnalysisFacility::PerformSingleSystematicAnalyses | ( | const std::string & | dirname, |
const std::string & | options = "" |
||
) |
Perform the analysis using one systematic at a time, without systematic and with all systematics.
The following options are available:
"mcmc" : use mcmc.
- Parameters
-
dirname The name of a directory into which the results are copied. options A set of options.
Definition at line 974 of file BCMTFAnalysisFacility.cxx.
|
inline |
Set the pointer to an MTF object.
- Parameters
-
mtf The MTF object.
Definition at line 68 of file BCMTFAnalysisFacility.h.
|
inline |
Set a flag for using MCMC (true) or not (false).
- Parameters
-
flag The flag.
Definition at line 74 of file BCMTFAnalysisFacility.h.
|
inline |
Set the log level for the ensemble test.
- Parameters
-
level The log level.
Definition at line 92 of file BCMTFAnalysisFacility.h.
The documentation for this class was generated from the following files:
- /root/bat/models/mtf/BCMTFAnalysisFacility.h
- /root/bat/models/mtf/BCMTFAnalysisFacility.cxx