BAT
0.9.4
The Bayesian analysis toolkit
|
A class summarizing a set of predefined measurements. More...
#include <BCMTFAnalysisFacility.h>
Public Member Functions | |
Constructors and destructors | |
BCMTFAnalysisFacility (BCMTF *mtf) | |
~BCMTFAnalysisFacility () | |
Member functions (get) | |
BCMTF * | GetBCMTF () |
Member functions (set) | |
void | SetBCMTF (BCMTF *mtf) |
void | SetFlagMarginalize (bool flag) |
Member functions (miscellaneous methods) | |
BCLog::LogLevel | GetLogLevel () |
void | SetLogLevel (BCLog::LogLevel level) |
int | PerformSingleChannelAnalyses (const char *dirname, const char *options="") |
int | PerformSingleSystematicAnalyses (const char *dirname, const char *options="") |
int | PerformCalibrationAnalysis (const char *dirname, const std::vector< double > &default_parameters, int index, const std::vector< double > ¶metervalues, int nensembles=1000) |
std::vector< TH1D > | BuildEnsemble (const std::vector< double > ¶meters, std::string options="") |
TTree * | BuildEnsembles (const std::vector< double > ¶meters, int nensembles, std::string options="") |
TTree * | BuildEnsembles (TTree *tree, int nensembles, std::string options="") |
TTree * | PerformEnsembleTest (const std::vector< double > ¶meters, int nensembles, std::string options="") |
TTree * | PerformEnsembleTest (TTree *tree, int nensembles, int start=0, std::string options="") |
std::vector< TH1D > | MatrixToHistograms (const std::vector< std::vector< double > > &matrix) |
A class summarizing a set of predefined measurements.
Definition at line 35 of file BCMTFAnalysisFacility.h.
BCMTFAnalysisFacility::BCMTFAnalysisFacility | ( | BCMTF * | mtf | ) |
The default constructor.
mtf | The MTF object. |
Definition at line 47 of file BCMTFAnalysisFacility.cxx.
BCMTFAnalysisFacility::~BCMTFAnalysisFacility | ( | ) |
The default destructor.
Definition at line 57 of file BCMTFAnalysisFacility.cxx.
std::vector< TH1D > BCMTFAnalysisFacility::BuildEnsemble | ( | const std::vector< double > & | parameters, |
std::string | options = "" |
||
) |
Build a single ensemble based on a single set of 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 |
Definition at line 62 of file BCMTFAnalysisFacility.cxx.
TTree * BCMTFAnalysisFacility::BuildEnsembles | ( | const std::vector< double > & | parameters, |
int | nensembles, | ||
std::string | options = "" |
||
) |
Build ensembles based on a single set of parameters.
parameters | The set of parameters which are used to generate the ensembles. |
ensembels | The number of ensembles to be generated. |
options | A set of options: "data" : all pseudo data sets are equal to the actual data set |
Definition at line 214 of file BCMTFAnalysisFacility.cxx.
TTree * BCMTFAnalysisFacility::BuildEnsembles | ( | TTree * | tree, |
int | nensembles, | ||
std::string | options = "" |
||
) |
Build ensembles based on a varying sets of parameters, e.g., using the prior or posterior.
tree | A BAT output tree containing the parameters to be used for the generation of the ensembles. |
ensembels | The number of ensembles to be generated. |
options | A set of options: "data" : all pseudo data sets are equal to the actual data set |
Definition at line 109 of file BCMTFAnalysisFacility.cxx.
|
inline |
Definition at line 58 of file BCMTFAnalysisFacility.h.
|
inline |
Get the log level for the ensemble test.
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.
matrix | The matrix. |
Definition at line 659 of file BCMTFAnalysisFacility.cxx.
int BCMTFAnalysisFacility::PerformCalibrationAnalysis | ( | const char * | 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.
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. |
nesembles | The number of ensembles used in the test. |
Definition at line 1229 of file BCMTFAnalysisFacility.cxx.
TTree * BCMTFAnalysisFacility::PerformEnsembleTest | ( | const std::vector< double > & | parameters, |
int | nensembles, | ||
std::string | options = "" |
||
) |
Perform ensemble test based on one set of parameters.
parameters | The set of parameters which are used to generate the ensembles. |
ensembels | The number of ensembles to be generated. |
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 |
Definition at line 310 of file BCMTFAnalysisFacility.cxx.
TTree * BCMTFAnalysisFacility::PerformEnsembleTest | ( | TTree * | tree, |
int | nensembles, | ||
int | start = 0 , |
||
std::string | options = "" |
||
) |
Perform ensemble test based on varying sets of 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. |
nstart | 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 |
Definition at line 323 of file BCMTFAnalysisFacility.cxx.
int BCMTFAnalysisFacility::PerformSingleChannelAnalyses | ( | const char * | dirname, |
const char * | options = "" |
||
) |
Perform the full set of single channel analyses and the combination. Possible options are:
"nosyst" : ignore systematic uncertainties. "mcmc" : use mcmc.
dirname | The name of a directory into which the results are copied. |
options | A set of options. |
Definition at line 696 of file BCMTFAnalysisFacility.cxx.
int BCMTFAnalysisFacility::PerformSingleSystematicAnalyses | ( | const char * | dirname, |
const char * | options = "" |
||
) |
Perform the analysis using one systematic at a time, without systematic and with all systematics. The following options are available:
"mcmc" : use mcmc.
dirname | The name of a directory into which the results are copied. |
options | A set of options. |
Definition at line 986 of file BCMTFAnalysisFacility.cxx.
|
inline |
Set the pointer to an MTF object.
mtf | The MTF object. |
Definition at line 68 of file BCMTFAnalysisFacility.h.
|
inline |
Set a flag for using MCMC (true) or not (false).
flag | The flag. |
Definition at line 74 of file BCMTFAnalysisFacility.h.
|
inline |
Set the log level for the ensemble test.
level | The log level. |
Definition at line 92 of file BCMTFAnalysisFacility.h.