A class for correlated Gaussian observables. More...
#include <CorrelatedGaussianObservables.h>
A class for correlated Gaussian observables.
This class builds the correlated Gaussian observables that are specified in the SomeModel.conf file or specified by the user.
Definition at line 31 of file Observables/src/CorrelatedGaussianObservables.h.
Public Member Functions | |
| void | AddObs (Observable &Obs_i) |
| A method to add observables to the list of correlated Gaussian observables. More... | |
| void | ComputeCov (gslpp::matrix< double > Corr) |
| Computes the covariance matrix for the correlated Gaussian observables set. More... | |
| virtual double | computeWeight () |
| A method to compute the weight associated with the observable. More... | |
| CorrelatedGaussianObservables (std::string name_i) | |
| Constructor. More... | |
| CorrelatedGaussianObservables () | |
| The default Constructor. More... | |
| CorrelatedGaussianObservables (const CorrelatedGaussianObservables &orig) | |
| The copy constructor. More... | |
| gslpp::matrix< double > | getCov () const |
| A get method to access the covariance matrix of the correlated Gaussian observables. More... | |
| std::string | getName () const |
| A get method to access the name of the correlated Gaussian observables set. More... | |
| std::vector< Observable > | getObs () const |
| A get method to access the vector of observables that are defined in one correlated Gaussian observables set. More... | |
| Observable | getObs (int i) const |
| A get method to access an element of the vector of observables that are defined in one correlated Gaussian observables set. More... | |
| bool | isEOF () |
| A method to check if the end of file has been reached. More... | |
| bool | isPrediction () |
| A method to check if the Correlated Observables are set for prediction. More... | |
| int | ParseCGO (boost::ptr_vector< Observable > &Observables, std::ifstream &ifile, boost::tokenizer< boost::char_separator< char > >::iterator &beg, std::string &infilename, ThObsFactory &myObsFactory, StandardModel *myModel, int lineNo, int rank) |
| The parser for CorrelatedGaussianObservables. More... | |
| void | setIsPrediction (bool IsPrediction_i) |
| A method to set a set of CGO to be predicted. More... | |
| void | setName (std::string name_i) |
| A method to set a set of CGO to be predicted. More... | |
| virtual | ~CorrelatedGaussianObservables () |
| The default destructor. More... | |
Private Attributes | |
| gslpp::matrix< double > * | Cov |
| The covariance matrix. More... | |
| std::string | filepath |
| The path to the config file being parsed. More... | |
| bool | IsEOF |
| A boolean which is true if the end of file is reached. More... | |
| bool | IsPrediction |
| Flag to define a set of Correlated Observables to be predicted. More... | |
| std::string | name |
| The name of the correlated Gaussian Observables set. More... | |
| std::vector< Observable > | Obs |
| A vector of observables whose correlation will be calculated. More... | |
| CorrelatedGaussianObservables::CorrelatedGaussianObservables | ( | std::string | name_i | ) |
Constructor.
| [in] | name_i | a given name for the set of correlated Gaussian observables |
Definition at line 13 of file Observables/src/CorrelatedGaussianObservables.cpp.
| CorrelatedGaussianObservables::CorrelatedGaussianObservables | ( | ) |
The default Constructor.
Definition at line 19 of file Observables/src/CorrelatedGaussianObservables.cpp.
| CorrelatedGaussianObservables::CorrelatedGaussianObservables | ( | const CorrelatedGaussianObservables & | orig | ) |
The copy constructor.
Definition at line 25 of file Observables/src/CorrelatedGaussianObservables.cpp.
|
virtual |
The default destructor.
Put in to prevent seg fault during error handling in InputParser
Definition at line 33 of file Observables/src/CorrelatedGaussianObservables.cpp.
| void CorrelatedGaussianObservables::AddObs | ( | Observable & | Obs_i | ) |
A method to add observables to the list of correlated Gaussian observables.
| Obs_i | reference to an object of type Observable |
Definition at line 39 of file Observables/src/CorrelatedGaussianObservables.cpp.
| void CorrelatedGaussianObservables::ComputeCov | ( | gslpp::matrix< double > | Corr | ) |
Computes the covariance matrix for the correlated Gaussian observables set.
| Corr | the correlation matrix for the correlated Gassian observables set |
Definition at line 44 of file Observables/src/CorrelatedGaussianObservables.cpp.
|
virtual |
A method to compute the weight associated with the observable.
Definition at line 56 of file Observables/src/CorrelatedGaussianObservables.cpp.
|
inline |
A get method to access the covariance matrix of the correlated Gaussian observables.
Definition at line 104 of file Observables/src/CorrelatedGaussianObservables.h.
|
inline |
A get method to access the name of the correlated Gaussian observables set.
Definition at line 96 of file Observables/src/CorrelatedGaussianObservables.h.
|
inline |
A get method to access the vector of observables that are defined in one correlated Gaussian observables set.
Definition at line 77 of file Observables/src/CorrelatedGaussianObservables.h.
|
inline |
A get method to access an element of the vector of observables that are defined in one correlated Gaussian observables set.
Definition at line 87 of file Observables/src/CorrelatedGaussianObservables.h.
|
inline |
A method to check if the end of file has been reached.
Definition at line 132 of file Observables/src/CorrelatedGaussianObservables.h.
|
inline |
A method to check if the Correlated Observables are set for prediction.
Definition at line 150 of file Observables/src/CorrelatedGaussianObservables.h.
| int CorrelatedGaussianObservables::ParseCGO | ( | boost::ptr_vector< Observable > & | Observables, |
| std::ifstream & | ifile, | ||
| boost::tokenizer< boost::char_separator< char > >::iterator & | beg, | ||
| std::string & | infilename, | ||
| ThObsFactory & | myObsFactory, | ||
| StandardModel * | myModel, | ||
| int | lineNo, | ||
| int | rank | ||
| ) |
The parser for CorrelatedGaussianObservables.
| [in] | Observables | the pointer vector containing the Observables |
| [in] | ifile | the stream containing the config file to be parsed |
| [in] | beg | the iterator that parses a line in the config file |
| [in] | infilename | the name of the config file being parsed |
| [in] | myModel | a pointer to the model |
| [in] | lineNo | the current line number at which the file is being parsed |
| [in] | rank | the rank of the process that is using the parser |
Definition at line 66 of file Observables/src/CorrelatedGaussianObservables.cpp.
|
inline |
A method to set a set of CGO to be predicted.
| [in] | IsPrediction_i | a boolean which is true if the set of CGO is set for prediction |
Definition at line 141 of file Observables/src/CorrelatedGaussianObservables.h.
|
inline |
A method to set a set of CGO to be predicted.
| [in] | IsPrediction_i | a boolean which is true if the set of CGO is set for prediction |
Definition at line 159 of file Observables/src/CorrelatedGaussianObservables.h.
|
private |
The covariance matrix.
Definition at line 166 of file Observables/src/CorrelatedGaussianObservables.h.
|
private |
The path to the config file being parsed.
Definition at line 168 of file Observables/src/CorrelatedGaussianObservables.h.
|
private |
A boolean which is true if the end of file is reached.
Definition at line 169 of file Observables/src/CorrelatedGaussianObservables.h.
|
private |
Flag to define a set of Correlated Observables to be predicted.
Definition at line 170 of file Observables/src/CorrelatedGaussianObservables.h.
|
private |
The name of the correlated Gaussian Observables set.
Definition at line 167 of file Observables/src/CorrelatedGaussianObservables.h.
|
private |
A vector of observables whose correlation will be calculated.
Definition at line 165 of file Observables/src/CorrelatedGaussianObservables.h.