BCMTFAnalysisFacility Class Reference

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)
BCMTFGetBCMTF ()
 
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 > &parametervalues, 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 > &parameters, const std::string &options="")
 Build a single ensemble based on a single set of parameters. More...
 
TTree * BuildEnsembles (const std::vector< double > &parameters, 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 > &parameters, 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.

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 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
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 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
parametersThe set of parameters which are used to generate the ensembles.
nensemblesThe 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 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
treeA BAT output tree containing the parameters to be used for the generation of the ensembles.
nensemblesThe 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 108 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 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
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.
nensemblesThe 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
parametersThe set of parameters which are used to generate the ensembles.
nensemblesThe number of ensembles used in the test.
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 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
treeA BAT output tree containing the parameters to be used for the generation of the ensembles.
nensemblesThe number of ensembles to be generated.
startThe 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 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
dirnameThe name of a directory into which the results are copied.
optionsA 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
dirnameThe name of a directory into which the results are copied.
optionsA set of options.

Definition at line 974 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: