A class for model parameters. More...
#include <ModelParameter.h>
A class for model parameters.
This class stores the details of the model parameters defined in the SomeModel.conf file or specified by the user. The name of the model parameter has to correspond to the list of names in the SomeModel.cpp file in the Model src directories.
e.g. GF, which can be found in StandardModel.cpp file in the StandardModel project source folder StandardModel/src.
Definition at line 28 of file ModelParameter.h.
Public Member Functions | |
double | getave () const |
A get method to get the average. More... | |
std::string | getCgp_name () const |
A get method to get the name of the set of correlated parameter. More... | |
double | geterrf () const |
A get method to get the flat error. More... | |
double | geterrg () const |
A get method to get the gaussian error. More... | |
double | getmax () const |
A get method to get the maximum value. More... | |
double | getmin () const |
A get method to get the minimum value. More... | |
std::string | getname () const |
A get method to get the name of each parameter. More... | |
bool | IsCorrelated () const |
A method to check if the parameters are correlated or not. More... | |
bool | IsFixed () const |
A method to check if the parameter is fixed. More... | |
ModelParameter () | |
Constructor. More... | |
ModelParameter (std::string name_in, double ave_in, double errg_in, double errf_in) | |
Constructor. More... | |
boost::tokenizer< boost::char_separator< char > >::iterator & | ParseModelParameter (boost::tokenizer< boost::char_separator< char > >::iterator &beg) |
Parser for model parameters. More... | |
void | setCgp_name (std::string cgp_name) |
A set method to set the name of the set of correlated parameter. More... | |
virtual | ~ModelParameter () |
The default destructor. More... | |
Private Attributes | |
double | ave |
The average value of the model parameter. More... | |
std::string | cgp_name |
double | errf |
The flat error of the model parameter. More... | |
double | errg |
The Gaussian error of the model parameter. More... | |
bool | isFixed |
A boolean flag that is true if the parameter is fixed. More... | |
double | max |
The maximum value of the model parameter. More... | |
double | min |
The minimum value of the model parameter. More... | |
std::string | name |
The name of the model parameter. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &output, const ModelParameter &m) |
Befriending of the std::ostream operator << to generate an output stream for printing the model parameters. More... | |
ModelParameter::ModelParameter | ( | std::string | name_in, |
double | ave_in, | ||
double | errg_in, | ||
double | errf_in | ||
) |
Constructor.
[in] | name_in | the name for the model parameter |
[in] | ave_in | the average value for the model parameter |
[in] | errg_in | the gaussian error for the model parameter |
[in] | errf_in | the flat error for the model parameter |
Definition at line 10 of file ModelParameter.cpp.
ModelParameter::ModelParameter | ( | ) |
|
virtual |
|
inline |
A get method to get the average.
Definition at line 78 of file ModelParameter.h.
|
inline |
A get method to get the name of the set of correlated parameter.
Definition at line 132 of file ModelParameter.h.
|
inline |
A get method to get the flat error.
Definition at line 87 of file ModelParameter.h.
|
inline |
A get method to get the gaussian error.
Definition at line 96 of file ModelParameter.h.
|
inline |
A get method to get the maximum value.
Definition at line 114 of file ModelParameter.h.
|
inline |
A get method to get the minimum value.
Definition at line 105 of file ModelParameter.h.
|
inline |
A get method to get the name of each parameter.
Definition at line 69 of file ModelParameter.h.
|
inline |
A method to check if the parameters are correlated or not.
Definition at line 60 of file ModelParameter.h.
|
inline |
A method to check if the parameter is fixed.
Definition at line 123 of file ModelParameter.h.
boost::tokenizer< boost::char_separator< char > >::iterator & ModelParameter::ParseModelParameter | ( | boost::tokenizer< boost::char_separator< char > >::iterator & | beg | ) |
Parser for model parameters.
[in] | beg | iterator for reading the model parameter |
Definition at line 39 of file ModelParameter.cpp.
|
inline |
A set method to set the name of the set of correlated parameter.
Definition at line 140 of file ModelParameter.h.
|
friend |
Befriending of the std::ostream operator << to generate an output stream for printing the model parameters.
[out] | output | the formatted output stream to print the model parameters |
[in] | m | a reference to an object of type ModelParameter() |
Definition at line 32 of file ModelParameter.cpp.
|
private |
The average value of the model parameter.
Definition at line 155 of file ModelParameter.h.
|
private |
Definition at line 161 of file ModelParameter.h.
|
private |
The flat error of the model parameter.
Definition at line 157 of file ModelParameter.h.
|
private |
The Gaussian error of the model parameter.
Definition at line 156 of file ModelParameter.h.
|
private |
A boolean flag that is true if the parameter is fixed.
Definition at line 160 of file ModelParameter.h.
|
private |
The maximum value of the model parameter.
Definition at line 159 of file ModelParameter.h.
|
private |
The minimum value of the model parameter.
Definition at line 158 of file ModelParameter.h.
|
private |
The name of the model parameter.
Definition at line 154 of file ModelParameter.h.