An engine class for Monte Carlo. More...
#include <MonteCarloEngine.h>
Inheritance diagram for MonteCarloEngine:An engine class for Monte Carlo.
The MonteCarlo engine is has overloaded from BCEngineMCMC class in the BAT libraries and user defined fumctions to facilitate the Monte Carlo run.
Definition at line 42 of file MonteCarloEngine.h.
Public Member Functions | |
| void | AddChains () |
| A method to add the observable values and weights to the chain information. More... | |
| void | CheckHistogram (TH1 &hist, const std::string name) |
| This member checks if there is overflow of the 1D histogram. More... | |
| void | CheckHistogram (TH2 &hist, const std::string name) |
| This member checks if there is overflow of the 2D histogram. More... | |
| double | computeNormalizationLME () |
| A method to calculate the normalization based on the Laplace-Metropolis Estimator. More... | |
| std::vector< double > | computeNormalizationMC (int NIterationNormalizationMC) |
| A method to calculate the normalization based on the Monte Carlo Simulation. More... | |
| std::string | computeStatistics () |
| A get method to compute the mean and rms of the computed observables. More... | |
| void | CreateHistogramMaps () |
| Creation of the histogram maps for Observables, Observable2D and Correlated Gaussian Observable. More... | |
| void | DefineParameters () |
| A member to classify the prior of the model parameters varied in the Monte Carlo. More... | |
| double | FirstDerivative (BCParameter par, std::vector< double > point) |
| A method to calculate the first derivative. More... | |
| double | Function_h (std::vector< double > point) |
| A method to calculate the LogLikelihood + LogAprioriProbability. More... | |
| int | getchainedObsSize () const |
| A get method to access the number of Observable chains requested. More... | |
| std::map< std::string, BCH1D > | getHistograms1D () const |
| A get method to access the map of 1D histograms. More... | |
| std::map< std::string, BCH2D > | getHistograms2D () const |
| A get method to access the map of 2D histograms. More... | |
| std::string | getHistoLog () const |
| A get method to access the stream that stores the log messages coming from histogram printing and checking. More... | |
| int | getMPIWorldSize () |
| A get method to get the number of MPI world size. More... | |
| int | getNumOfDiscardedEvents () const |
| A get method to access the number of events discarded due to failure to update model. These events are not used for the MCMC run. More... | |
| int | getNumOfUsedEvents () const |
| A get method to access the number of events used in the MCMC run. More... | |
| bool | getWriteLogLikelihoodChain () |
| A get method to get the value of the bool the writing of Loglikelihood in the ROOT tree. More... | |
| bool | getWriteParametersChain () |
| A get method to get the value of the bool the writing of parameters in the ROOT tree. More... | |
| void | InChainFillObservablesTree () |
| void | InChainFillParametersTree () |
| void | Initialize (StandardModel *Mod_i) |
| Initialization of the Monte Carlo Engine. More... | |
| double | LogLikelihood (const std::vector< double > ¶meters) |
| This member calculates the loglikelihood for the observables included in the MCMC run. More... | |
| void | MCMCUserIterationInterface () |
| Overloaded from BCEngineMCMC in BAT More... | |
| MonteCarloEngine (const std::vector< ModelParameter > &ModPars_i, boost::ptr_vector< Observable > &Obs_i, std::vector< Observable2D > &Obs2D_i, std::vector< CorrelatedGaussianObservables > &CGO_i, std::vector< CorrelatedGaussianParameters > &CGP_i) | |
| Constructor. More... | |
| void | Print1D (BCH1D hist1D, const char *filename, int ww=0, int wh=0) |
| void | Print2D (BCH2D hist2D, const char *filename, int ww=0, int wh=0) |
| void | PrintCorrelationMatrixToLaTeX (const std::string filename) |
| This member generates the correlation matrix using BCH2D from the BAT libraries. More... | |
| void | PrintHistogram (std::string &OutFile, const std::string OutputDir) |
| Member used for printing histograms for observables, observable2D, correlated Gaussian observables and model parameters vs. observables. More... | |
| void | PrintHistogram (std::string &OutFile, Observable &it, const std::string OutputDir) |
| Overloaded from PrintHistogram(BCModelOutput&, const std::string) to print histogram for observables. More... | |
| double | SecondDerivative (BCParameter par1, BCParameter par2, std::vector< double > point) |
| A method to calculate the second derivative. More... | |
| void | setAlpha2D (double alpha) |
| A set method to toggle the printing of legends in 1D and 2D histograms. More... | |
| void | setDParsFromParameters (const std::vector< double > ¶meters, std::map< std::string, double > &DPars_i) |
| A method to rotate the diagonalized parameters to the original basis for correlated parameters. More... | |
| void | setHistogram2DType (int type) |
| A set method to set the band fill type for 2D histograms. More... | |
| void | setHistogramBufferSize (unsigned int histogramBufferSize_i) |
| A set method to set the size of the buffer used by the histograms. More... | |
| void | setNBins1D (unsigned int nbins) |
| A set method to set the number of bins for a 1D histograms. More... | |
| void | setNBins2D (unsigned int nbins) |
| A set method to set the number of bins for a 2D histograms. More... | |
| void | setNChains (unsigned int i) |
| A set method to fix the number of chains. More... | |
| void | setNoLegend (bool legend) |
| A set method to toggle the printing of legends in 1D and 2D histograms. More... | |
| void | setPrintLoglikelihoodPlots (bool plot) |
| A set method to toggle the printing of Parameters vs. Loglikelihood. More... | |
| void | setPrintLogo (bool print) |
| A set method to toggle the printing of logo on the histogram pdf. More... | |
| void | setSignificants (unsigned int significants_i) |
| A set method to set the number of significant digits in the output. More... | |
| void | setSmooth (int int_N) |
| A set method to set the number of smoothing passes for ROOT in 1D histograms. More... | |
| void | setWriteLogLikelihoodChain (bool LL) |
| A set method to toggle the writing of Loglikelihood in the ROOT tree. More... | |
| void | setWriteParametersChain (bool LL) |
| A set method to toggle the writing of parameters in the ROOT tree. More... | |
| std::string | writePreRunData () |
| A method to write in a text file the best fit parameters and the prerun scale factors. More... | |
| ~MonteCarloEngine () | |
| The default destructor. Some pointers defined in this class are explicitly freed. More... | |
Private Member Functions | |
| int | getPrecision (double value, double rms) |
| A get method to calculate the precision of the numbers in the Statistics file based on the rms. More... | |
Private Attributes | |
| double | alpha2D |
| A number between 0. and 1. that sets the opacity level of 2D Histograms, 1. being fully opaque. More... | |
| std::vector< CorrelatedGaussianObservables > & | CGO |
| A vector of correlated Gaussian observables. More... | |
| const std::vector< CorrelatedGaussianParameters > & | CGP |
| A vector of correlated Gaussian parameters. More... | |
| unsigned int | cindex |
| An index to distinguish between succesive canvases used to draw histograms. More... | |
| std::map< std::string, TPrincipal * > | CorrelationMap |
| A map between the name of a theory observable and its maximum value. More... | |
| std::map< std::string, double > | DPars |
| A map between parameter names and their values. More... | |
| std::vector< std::map< std::string, double > > | DPars_allChains |
| A vector of maps between parameter names and their values for all chains. More... | |
| int | gIdx |
| TColor * | HEPfit_green |
| < The number of significant digits in the Statistics File. More... | |
| TColor * | HEPfit_red |
| < The colour green for HEPfit. More... | |
| std::map< std::string, BCH1D > | Histo1D |
| A map between pointers to objects of type BCH1D (BAT) and their given names. More... | |
| std::map< std::string, BCH2D > | Histo2D |
| A map between pointers to objects of type BCH2D (BAT) and their given names. More... | |
| int | histogram2Dtype |
| Type of 2D Histogram 1001 -> box pixel, 101 -> filled, 1 -> contour. More... | |
| unsigned int | histogramBufferSize |
| < The colour red for HEPfit. More... | |
| std::ostringstream | HistoLog |
| A stream to store the output messages from printing and checking histograms. More... | |
| double | hMCMCLogLikelihood |
| A variable containing the LogLikelihood values to be put into the ROOT tree. More... | |
| double | hMCMCLogPriorProbability |
| A variable containing the LogPriorProbability values to be put into the ROOT tree. More... | |
| double | hMCMCLogProbability |
| A variable containing the LogProbability values to be put into the ROOT tree. More... | |
| std::vector< std::vector< double > > | hMCMCObservables |
| A vector of vectors containing the observables values of all the chains to be put into the ROOT tree. More... | |
| std::vector< std::vector< double > > | hMCMCObservables_weight |
| A vector of vectors containing the observables weight of all the chains to be put into the ROOT tree. More... | |
| TTree * | hMCMCObservableTree |
| A ROOT tree that contains the observables values and weight when the chains are written. More... | |
| std::vector< std::vector< double > > | hMCMCParameters |
| A vector of vectors containing the parameter values of all the chains to be put into the ROOT tree. More... | |
| TTree * | hMCMCParameterTree |
| A ROOT tree that contains the parameter values when the chains are written. More... | |
| std::vector< double > | hMCMCTree_Observables |
| A vector containing the observables values to be put into the ROOT tree. More... | |
| std::vector< double > | hMCMCTree_Observables_weight |
| A vector containing the observables weight to be put into the ROOT tree. More... | |
| std::vector< double > | hMCMCTree_Parameters |
| A vector containing the parameter values to be put into the ROOT tree. More... | |
| unsigned int | kchainedObs |
| The number of observables for which the chains should be written. More... | |
| unsigned int | kmax |
| The number of observables. More... | |
| unsigned int | kwmax |
| The number of observables whose weights are used for the MCMC. More... | |
| double | LogLikelihood_max |
| < vector to store the value of the parameters at maximum LogLikelihood; More... | |
| StandardModel * | Mod |
| A pointer to an abject of type Model. More... | |
| const std::vector< ModelParameter > & | ModPars |
| A vector of model parameters. More... | |
| unsigned int | nBins1D |
| The number of bins in a 1D histogram. More... | |
| unsigned int | nBins2D |
| The number of bins in a 2D histogram. More... | |
| bool | noLegend |
| A flag to toggle the histogram legends. More... | |
| int | nSmooth |
| The number of times a 1D histogram should be smoothed. More... | |
| int | NumOfDiscardedEvents |
| The number of events for which the update of the model fails and these events are not used for the MCMC run. More... | |
| int | NumOfUsedEvents |
| The number of events for which the model is successfully updated and hence used for the MCMC run. More... | |
| std::vector< Observable2D > & | Obs2D_ALL |
| A vector of all pairs of observable for Observable2D. More... | |
| boost::ptr_vector< Observable > & | Obs_ALL |
| A vector of all observables. More... | |
| double * | obval |
| A pointer to the vector of observable values. More... | |
| double * | obweight |
| A pointer to the vector of observable weights. More... | |
| std::ofstream | ofi |
| std::vector< double > | par_at_LL_max |
| < The size of the buffer used for the histograms. More... | |
| bool | PrintLoglikelihoodPlots |
| A flag to toggle the printing of Parameters vs. Loglikelihood. More... | |
| bool | printLogo |
| A flag that is set to true for printing the logo on the histogram pdf. More... | |
| int | rank |
| Rank of the process for a MPI run. Value is 0 for a serial run. More... | |
| int | rIdx |
| unsigned int | significants |
| std::map< std::string, double > | thMax |
| A map between the name of a theory observable and its maximum value. More... | |
| std::map< std::string, double > | thMin |
| A map between the name of a theory observable and its minimum value. More... | |
| std::vector< std::string > | unknownParameters |
| A vector to contain the unkenown parameters passed in the configuration file. More... | |
| bool | WriteLogLikelihoodChain |
| A flag to toggle the writing of Loglikelihood chains in the ROOT tree. More... | |
| bool | WriteParametersChain |
| A flag to toggle the writing of parameters chains in the ROOT tree. More... | |
| MonteCarloEngine::MonteCarloEngine | ( | const std::vector< ModelParameter > & | ModPars_i, |
| boost::ptr_vector< Observable > & | Obs_i, | ||
| std::vector< Observable2D > & | Obs2D_i, | ||
| std::vector< CorrelatedGaussianObservables > & | CGO_i, | ||
| std::vector< CorrelatedGaussianParameters > & | CGP_i | ||
| ) |
Constructor.
| [in] | ModPars_i | the vector of model parameters as defined in SomeModel.conf |
| [in] | Obs_i | the vector of observables as defined in SomeModel.conf |
| [in] | Obs2D_i | the vector of observables2D as defined in SomeModel.conf |
| [in] | CGO_i | the vector of correlated Gaussian observables as defined in SomeModel.conf |
Definition at line 28 of file MonteCarloEngine.cpp.
| MonteCarloEngine::~MonteCarloEngine | ( | ) |
The default destructor. Some pointers defined in this class are explicitly freed.
Definition at line 186 of file MonteCarloEngine.cpp.
| void MonteCarloEngine::AddChains | ( | ) |
A method to add the observable values and weights to the chain information.
If the WriteChain flag is set to true in the MonteCarlo.conf file then chain information is written. This method adds the observable values and weights (for the observables included in the MCMC) to the chain information.
Definition at line 884 of file MonteCarloEngine.cpp.
| void MonteCarloEngine::CheckHistogram | ( | TH1 & | hist, |
| const std::string | name | ||
| ) |
This member checks if there is overflow of the 1D histogram.
| [in] | hist | a reference to an object of type TH1D as defined in the ROOT libraries |
| [in] | name | the name for the histogram |
Definition at line 594 of file MonteCarloEngine.cpp.
| void MonteCarloEngine::CheckHistogram | ( | TH2 & | hist, |
| const std::string | name | ||
| ) |
This member checks if there is overflow of the 2D histogram.
| [in] | hist | a reference to an object of type TH2D as defined in the ROOT libraries |
| [in] | name | the name for the histogram |
Definition at line 608 of file MonteCarloEngine.cpp.
| double MonteCarloEngine::computeNormalizationLME | ( | ) |
A method to calculate the normalization based on the Laplace-Metropolis Estimator.
Definition at line 1335 of file MonteCarloEngine.cpp.
| std::vector< double > MonteCarloEngine::computeNormalizationMC | ( | int | NIterationNormalizationMC | ) |
A method to calculate the normalization based on the Monte Carlo Simulation.
Definition at line 1319 of file MonteCarloEngine.cpp.
| std::string MonteCarloEngine::computeStatistics | ( | ) |
A get method to compute the mean and rms of the computed observables.
Definition at line 1012 of file MonteCarloEngine.cpp.
| void MonteCarloEngine::CreateHistogramMaps | ( | ) |
Creation of the histogram maps for Observables, Observable2D and Correlated Gaussian Observable.
Definition at line 121 of file MonteCarloEngine.cpp.
| void MonteCarloEngine::DefineParameters | ( | ) |
A member to classify the prior of the model parameters varied in the Monte Carlo.
The model parameters being varied are first sorted out checking for the existence of of Gaussian error ( \(\delta_{g}\)) or flat error ( \(\delta_{f}\)). The SetPriorGaus method and SetPriorConstant method in BCEngineMCMC (BAT) is used to set a Gaussian or flat prior for the model parameters respectively. In case a model parameter has both a Gaussian and a flat error then the combined function is built using TF1. The definition of the combined error is
\[ \delta_{combined}(x) = \frac{1}{4\delta_f}\left(\frac{Erf(x - x_{ave}+\delta_f)}{\sqrt{2}\delta_g} - \frac{Erf(x - x_{ave}-\delta_f)}{\sqrt{2}\delta_g}\right), \]
with
\[ Erf(x)=\frac{1}{\sqrt{2}\pi}\int_0^x \exp^{-\frac{t^2}{2}}dt. \]
Definition at line 206 of file MonteCarloEngine.cpp.
| double MonteCarloEngine::FirstDerivative | ( | BCParameter | par, |
| std::vector< double > | point | ||
| ) |
A method to calculate the first derivative.
Definition at line 1389 of file MonteCarloEngine.cpp.
| double MonteCarloEngine::Function_h | ( | std::vector< double > | point | ) |
A method to calculate the LogLikelihood + LogAprioriProbability.
| [in] | point | the set of points in the parameter space |
Definition at line 1424 of file MonteCarloEngine.cpp.
|
inline |
A get method to access the number of Observable chains requested.
Definition at line 195 of file MonteCarloEngine.h.
|
inline |
A get method to access the map of 1D histograms.
Definition at line 242 of file MonteCarloEngine.h.
|
inline |
A get method to access the map of 2D histograms.
Definition at line 251 of file MonteCarloEngine.h.
|
inline |
A get method to access the stream that stores the log messages coming from histogram printing and checking.
Definition at line 186 of file MonteCarloEngine.h.
|
inline |
A get method to get the number of MPI world size.
Definition at line 422 of file MonteCarloEngine.h.
|
inline |
A get method to access the number of events discarded due to failure to update model. These events are not used for the MCMC run.
Definition at line 224 of file MonteCarloEngine.h.
|
inline |
A get method to access the number of events used in the MCMC run.
Definition at line 233 of file MonteCarloEngine.h.
|
private |
A get method to calculate the precision of the numbers in the Statistics file based on the rms.
| [in] | value | the mean value |
| [in] | rms | the rms value |
Definition at line 1004 of file MonteCarloEngine.cpp.
|
inline |
A get method to get the value of the bool the writing of Loglikelihood in the ROOT tree.
Definition at line 333 of file MonteCarloEngine.h.
|
inline |
A get method to get the value of the bool the writing of parameters in the ROOT tree.
Definition at line 350 of file MonteCarloEngine.h.
| void MonteCarloEngine::InChainFillObservablesTree | ( | ) |
Definition at line 949 of file MonteCarloEngine.cpp.
| void MonteCarloEngine::InChainFillParametersTree | ( | ) |
Definition at line 964 of file MonteCarloEngine.cpp.
| void MonteCarloEngine::Initialize | ( | StandardModel * | Mod_i | ) |
Initialization of the Monte Carlo Engine.
The initialization of the Monte Carlo Engine performs the following tasks
| [in] | Mod_i | the pointer to the model defined in SomeModel.conf |
Definition at line 76 of file MonteCarloEngine.cpp.
| double MonteCarloEngine::LogLikelihood | ( | const std::vector< double > & | parameters | ) |
This member calculates the loglikelihood for the observables included in the MCMC run.
The model is updated with the new set of parameters through the Model::Update() method. If this is successful this even is counted as a used event. Otherwise it is counted as a discarded event. The log probability is calculated using Weight(const Observable&, const double& ) function for the observables, Weight(const Observable2D&, const double&, const double& ) for the observable2D and Weight(const CorrelatedGaussianObservables& ) for the correlated Gaussian observables. Overloaded from BCEngineMCMC in BAT.
| [in] | parameters | the vector of the parameters that are being varied in the Monte Carlo |
Definition at line 312 of file MonteCarloEngine.cpp.
| void MonteCarloEngine::MCMCUserIterationInterface | ( | ) |
Overloaded from BCEngineMCMC in BAT
The interface is used to update the model parameters using the Model::Update() method. Then the values of the observables are computed and the respective histograms are filled. If the checkTheoryRange flag is true then the minimum and maximum of the theory value is checked and reset to include the current theory values.
Definition at line 359 of file MonteCarloEngine.cpp.
| void MonteCarloEngine::Print1D | ( | BCH1D | hist1D, |
| const char * | filename, | ||
| int | ww = 0, |
||
| int | wh = 0 |
||
| ) |
Definition at line 619 of file MonteCarloEngine.cpp.
| void MonteCarloEngine::Print2D | ( | BCH2D | hist2D, |
| const char * | filename, | ||
| int | ww = 0, |
||
| int | wh = 0 |
||
| ) |
Definition at line 700 of file MonteCarloEngine.cpp.
| void MonteCarloEngine::PrintCorrelationMatrixToLaTeX | ( | const std::string | filename | ) |
This member generates the correlation matrix using BCH2D from the BAT libraries.
| [in] | filename | the name of the file where the correlation matrix is printed |
Definition at line 973 of file MonteCarloEngine.cpp.
| void MonteCarloEngine::PrintHistogram | ( | std::string & | OutFile, |
| const std::string | OutputDir | ||
| ) |
Member used for printing histograms for observables, observable2D, correlated Gaussian observables and model parameters vs. observables.
| [in] | out | a reference to an object of type BCModelOutput as defined in the BAT libraries |
| [in] | OutputDir | the name of the output directory |
Definition at line 814 of file MonteCarloEngine.cpp.
| void MonteCarloEngine::PrintHistogram | ( | std::string & | OutFile, |
| Observable & | it, | ||
| const std::string | OutputDir | ||
| ) |
Overloaded from PrintHistogram(BCModelOutput&, const std::string) to print histogram for observables.
| [in] | out | a reference to an object of type BCModelOutput as defined in the BAT libraries |
| [in] | it | a reference to an object of type Observable |
| [in] | OutputDir | the name of the output directory |
Definition at line 786 of file MonteCarloEngine.cpp.
| double MonteCarloEngine::SecondDerivative | ( | BCParameter | par1, |
| BCParameter | par2, | ||
| std::vector< double > | point | ||
| ) |
A method to calculate the second derivative.
Definition at line 1354 of file MonteCarloEngine.cpp.
|
inline |
A set method to toggle the printing of legends in 1D and 2D histograms.
| [in] | legend | a boolean to toggle the the printing of legends |
Definition at line 359 of file MonteCarloEngine.h.
| void MonteCarloEngine::setDParsFromParameters | ( | const std::vector< double > & | parameters, |
| std::map< std::string, double > & | DPars_i | ||
| ) |
A method to rotate the diagonalized parameters to the original basis for correlated parameters.
| [in] | parameters | the parameters in the diagonal basis |
| [in] | DPars_i | the parameters in the in the input basis |
Definition at line 261 of file MonteCarloEngine.cpp.
|
inline |
A set method to set the band fill type for 2D histograms.
| [in] | type | 2D Histogram type, 1001 -> Lego, 101 -> Filled, 0 -> Contour |
Definition at line 377 of file MonteCarloEngine.h.
|
inline |
A set method to set the size of the buffer used by the histograms.
| [in] | histogramBufferSize_i | the size of the buffer used by the histograms |
Definition at line 413 of file MonteCarloEngine.h.
|
inline |
A set method to set the number of bins for a 1D histograms.
| [in] | nbins | the number of bins in the 1D histogram |
Definition at line 386 of file MonteCarloEngine.h.
|
inline |
A set method to set the number of bins for a 2D histograms.
| [in] | nbins | the number of bins in the 2D histogram |
Definition at line 395 of file MonteCarloEngine.h.
| void MonteCarloEngine::setNChains | ( | unsigned int | i | ) |
A set method to fix the number of chains.
The number of chains are set using the MCMCSetNChains() from BCEngineMCMC class in BAT. This also creates pointers to the vector of observable values and weights for all the chains.
| [in] | i | the number of chains |
Definition at line 178 of file MonteCarloEngine.cpp.
|
inline |
A set method to toggle the printing of legends in 1D and 2D histograms.
| [in] | legend | a boolean to toggle the printing of legends |
Definition at line 307 of file MonteCarloEngine.h.
|
inline |
A set method to toggle the printing of Parameters vs. Loglikelihood.
| [in] | legend | a boolean to toggle the printing of the 2D plots |
Definition at line 316 of file MonteCarloEngine.h.
|
inline |
A set method to toggle the printing of logo on the histogram pdf.
| [in] | a boolean to toggle the printing |
Definition at line 298 of file MonteCarloEngine.h.
|
inline |
A set method to set the number of significant digits in the output.
| [in] | significants_i | the number of significant digits in the output |
Definition at line 404 of file MonteCarloEngine.h.
|
inline |
A set method to set the number of smoothing passes for ROOT in 1D histograms.
| [in] | int_N | number of smoothing passes for ROOT |
Definition at line 368 of file MonteCarloEngine.h.
|
inline |
A set method to toggle the writing of Loglikelihood in the ROOT tree.
| [in] | LL | a boolean to toggle the writing of Loglikelihood in the ROOT tree |
Definition at line 325 of file MonteCarloEngine.h.
|
inline |
A set method to toggle the writing of parameters in the ROOT tree.
| [in] | LL | a boolean to toggle the writing of parameters in the ROOT tree |
Definition at line 342 of file MonteCarloEngine.h.
| std::string MonteCarloEngine::writePreRunData | ( | ) |
A method to write in a text file the best fit parameters and the prerun scale factors.
Definition at line 1306 of file MonteCarloEngine.cpp.
|
private |
A number between 0. and 1. that sets the opacity level of 2D Histograms, 1. being fully opaque.
Definition at line 484 of file MonteCarloEngine.h.
|
private |
A vector of correlated Gaussian observables.
Definition at line 445 of file MonteCarloEngine.h.
|
private |
A vector of correlated Gaussian parameters.
Definition at line 442 of file MonteCarloEngine.h.
|
private |
An index to distinguish between succesive canvases used to draw histograms.
Definition at line 474 of file MonteCarloEngine.h.
|
private |
A map between the name of a theory observable and its maximum value.
Definition at line 453 of file MonteCarloEngine.h.
|
private |
A map between parameter names and their values.
Definition at line 447 of file MonteCarloEngine.h.
|
private |
A vector of maps between parameter names and their values for all chains.
Definition at line 448 of file MonteCarloEngine.h.
|
private |
Definition at line 485 of file MonteCarloEngine.h.
|
private |
< The number of significant digits in the Statistics File.
Definition at line 490 of file MonteCarloEngine.h.
|
private |
< The colour green for HEPfit.
Definition at line 491 of file MonteCarloEngine.h.
|
private |
A map between pointers to objects of type BCH1D (BAT) and their given names.
Definition at line 449 of file MonteCarloEngine.h.
|
private |
A map between pointers to objects of type BCH2D (BAT) and their given names.
Definition at line 450 of file MonteCarloEngine.h.
|
private |
Type of 2D Histogram 1001 -> box pixel, 101 -> filled, 1 -> contour.
Definition at line 479 of file MonteCarloEngine.h.
|
private |
< The colour red for HEPfit.
Definition at line 492 of file MonteCarloEngine.h.
|
private |
A stream to store the output messages from printing and checking histograms.
Definition at line 459 of file MonteCarloEngine.h.
|
private |
A variable containing the LogLikelihood values to be put into the ROOT tree.
Definition at line 471 of file MonteCarloEngine.h.
|
private |
A variable containing the LogPriorProbability values to be put into the ROOT tree.
Definition at line 473 of file MonteCarloEngine.h.
|
private |
A variable containing the LogProbability values to be put into the ROOT tree.
Definition at line 472 of file MonteCarloEngine.h.
|
private |
A vector of vectors containing the observables values of all the chains to be put into the ROOT tree.
Definition at line 465 of file MonteCarloEngine.h.
|
private |
A vector of vectors containing the observables weight of all the chains to be put into the ROOT tree.
Definition at line 466 of file MonteCarloEngine.h.
|
private |
A ROOT tree that contains the observables values and weight when the chains are written.
Definition at line 463 of file MonteCarloEngine.h.
|
private |
A vector of vectors containing the parameter values of all the chains to be put into the ROOT tree.
Definition at line 467 of file MonteCarloEngine.h.
|
private |
A ROOT tree that contains the parameter values when the chains are written.
Definition at line 464 of file MonteCarloEngine.h.
|
private |
A vector containing the observables values to be put into the ROOT tree.
Definition at line 468 of file MonteCarloEngine.h.
|
private |
A vector containing the observables weight to be put into the ROOT tree.
Definition at line 469 of file MonteCarloEngine.h.
|
private |
A vector containing the parameter values to be put into the ROOT tree.
Definition at line 470 of file MonteCarloEngine.h.
|
private |
The number of observables for which the chains should be written.
Definition at line 458 of file MonteCarloEngine.h.
|
private |
The number of observables.
Definition at line 457 of file MonteCarloEngine.h.
|
private |
The number of observables whose weights are used for the MCMC.
Definition at line 456 of file MonteCarloEngine.h.
|
private |
< vector to store the value of the parameters at maximum LogLikelihood;
Definition at line 494 of file MonteCarloEngine.h.
|
private |
A pointer to an abject of type Model.
Definition at line 446 of file MonteCarloEngine.h.
|
private |
A vector of model parameters.
Definition at line 441 of file MonteCarloEngine.h.
|
private |
The number of bins in a 1D histogram.
Definition at line 487 of file MonteCarloEngine.h.
|
private |
The number of bins in a 2D histogram.
Definition at line 488 of file MonteCarloEngine.h.
|
private |
A flag to toggle the histogram legends.
Definition at line 480 of file MonteCarloEngine.h.
|
private |
The number of times a 1D histogram should be smoothed.
Definition at line 478 of file MonteCarloEngine.h.
|
private |
The number of events for which the update of the model fails and these events are not used for the MCMC run.
Definition at line 461 of file MonteCarloEngine.h.
|
private |
The number of events for which the model is successfully updated and hence used for the MCMC run.
Definition at line 460 of file MonteCarloEngine.h.
|
private |
A vector of all pairs of observable for Observable2D.
Definition at line 444 of file MonteCarloEngine.h.
|
private |
A vector of all observables.
Definition at line 443 of file MonteCarloEngine.h.
|
private |
A pointer to the vector of observable values.
Definition at line 454 of file MonteCarloEngine.h.
|
private |
A pointer to the vector of observable weights.
Definition at line 455 of file MonteCarloEngine.h.
|
private |
Definition at line 475 of file MonteCarloEngine.h.
|
private |
< The size of the buffer used for the histograms.
Definition at line 493 of file MonteCarloEngine.h.
|
private |
A flag to toggle the printing of Parameters vs. Loglikelihood.
Definition at line 481 of file MonteCarloEngine.h.
|
private |
A flag that is set to true for printing the logo on the histogram pdf.
Definition at line 477 of file MonteCarloEngine.h.
|
private |
Rank of the process for a MPI run. Value is 0 for a serial run.
Definition at line 462 of file MonteCarloEngine.h.
|
private |
Definition at line 486 of file MonteCarloEngine.h.
|
private |
Definition at line 489 of file MonteCarloEngine.h.
|
private |
A map between the name of a theory observable and its maximum value.
Definition at line 452 of file MonteCarloEngine.h.
|
private |
A map between the name of a theory observable and its minimum value.
Definition at line 451 of file MonteCarloEngine.h.
|
private |
A vector to contain the unkenown parameters passed in the configuration file.
Definition at line 476 of file MonteCarloEngine.h.
|
private |
A flag to toggle the writing of Loglikelihood chains in the ROOT tree.
Definition at line 482 of file MonteCarloEngine.h.
|
private |
A flag to toggle the writing of parameters chains in the ROOT tree.
Definition at line 483 of file MonteCarloEngine.h.