BAT  0.9.4
The Bayesian analysis toolkit
 All Classes Namespaces Functions Variables Enumerations
BCMTFAnalysisFacility Class Reference

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)
BCMTFGetBCMTF ()
 
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 > &parametervalues, int nensembles=1000)
 
std::vector< TH1D > BuildEnsemble (const std::vector< double > &parameters, std::string options="")
 
TTree * BuildEnsembles (const std::vector< double > &parameters, int nensembles, std::string options="")
 
TTree * BuildEnsembles (TTree *tree, int nensembles, std::string options="")
 
TTree * PerformEnsembleTest (const std::vector< double > &parameters, 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)
 

Detailed Description

A class summarizing a set of predefined measurements.

Author
Daniel Kollar
Kevin Kröninger
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
mtfThe MTF object.

Definition at line 47 of file BCMTFAnalysisFacility.cxx.

BCMTFAnalysisFacility::~BCMTFAnalysisFacility ( )

The default destructor.

Definition at line 57 of file BCMTFAnalysisFacility.cxx.

Member Function Documentation

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
parametersThe set of parameters which are used to generate the ensembles.
optionsA 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 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
parametersThe set of parameters which are used to generate the ensembles.
ensembelsThe number of ensembles to be generated.
optionsA set of options:
"data" : all pseudo data sets are equal to the actual data set
Returns
A tree containing the ensembles.

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.

Parameters
treeA BAT output tree containing the parameters to be used for the generation of the ensembles.
ensembelsThe number of ensembles to be generated.
optionsA set of options:
"data" : all pseudo data sets are equal to the actual data set
Returns
A tree containing the ensembles.

Definition at line 109 of file BCMTFAnalysisFacility.cxx.

BCMTF* BCMTFAnalysisFacility::GetBCMTF ( )
inline
Returns
A pointer to the MTF object.

Definition at line 58 of file BCMTFAnalysisFacility.h.

BCLog::LogLevel BCMTFAnalysisFacility::GetLogLevel ( )
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
matrixThe matrix.
Returns
A vector of histograms.

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.

Parameters
dirnameThe name of a directory into which the results are copied.
default_parametersThe set of parameters which are fixed.
indexThe index of the parameter which will be varied.
parametervaluesThe different values of the parameter which is varied.
nesemblesThe number of ensembles used in the test.
Returns
An error code.

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
parametersThe set of parameters which are used to generate the ensembles.
ensembelsThe number of ensembles to be generated.
optionsA 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 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.

Parameters
treeA BAT output tree containing the parameters to be used for the generation of the ensembles.
nensemblesThe number of ensembles to be generated.
nstartThe first ensemble used in the tree.
optionsA 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 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.

Parameters
dirnameThe name of a directory into which the results are copied.
optionsA set of options.
Returns
An error code.

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.

Parameters
dirnameThe name of a directory into which the results are copied.
optionsA set of options.
Returns
An error code.

Definition at line 986 of file BCMTFAnalysisFacility.cxx.

void BCMTFAnalysisFacility::SetBCMTF ( BCMTF mtf)
inline

Set the pointer to an MTF object.

Parameters
mtfThe MTF object.

Definition at line 68 of file BCMTFAnalysisFacility.h.

void BCMTFAnalysisFacility::SetFlagMarginalize ( bool  flag)
inline

Set a flag for using MCMC (true) or not (false).

Parameters
flagThe flag.

Definition at line 74 of file BCMTFAnalysisFacility.h.

void BCMTFAnalysisFacility::SetLogLevel ( BCLog::LogLevel  level)
inline

Set the log level for the ensemble test.

Parameters
levelThe log level.

Definition at line 92 of file BCMTFAnalysisFacility.h.


The documentation for this class was generated from the following files: