A class for the template of models. More...
#include <Model.h>
A class for the template of models.
This template delineates the methods necessary for the construction and updating of a particular model. An example of its use can be found in the StandardModel class.
Public Member Functions | |
| virtual bool | CheckFlags () const =0 |
| A method to check the sanity of the set of model flags. More... | |
| virtual bool | CheckParameters (const std::map< std::string, double > &DPars)=0 |
| A method to check if all the mandatory parameters for the model have been provided in model initialization. More... | |
| const double & | getModelParam (std::string name) const |
| virtual bool | Init (const std::map< std::string, double > &DPars)=0 |
| A method to initialize the model parameters. More... | |
| bool | IsModelInitialized () const |
| A method to check if the model is initialized. More... | |
| bool | isModelParam (std::string name) const |
| bool | isModelSUSY () const |
| bool | isModelTHDM () const |
| bool | IsUpdateError () const |
| A method to check if there was any error in the model update process. More... | |
| Model () | |
| The default constructor. More... | |
| std::string | ModelName () const |
| A method to fetch the name of the model. More... | |
| virtual bool | PostUpdate ()=0 |
| The post-update method for the model. More... | |
| virtual bool | PreUpdate ()=0 |
| The pre-update method for the model. More... | |
| virtual bool | setFlag (const std::string name, const bool value)=0 |
| A method to set a flag of the model. More... | |
| virtual bool | setFlagStr (const std::string name, const std::string value)=0 |
| A method to set a flag of the model. More... | |
| void | setModelInitialized (bool ModelInitialized) |
| A set method to fix the failure or success of the initialization of the model. More... | |
| void | setModelName (const std::string name) |
| A method to set the name of the model. More... | |
| void | setModelSUSY () |
| void | setModelTHDM () |
| void | setUpdateError (bool UpdateError) |
| A set method to fix the update status as success or failure. More... | |
| virtual bool | Update (const std::map< std::string, double > &DPars)=0 |
| The update method for the model. More... | |
| virtual | ~Model () |
| The default destructor. More... | |
Protected Member Functions | |
| virtual void | setParameter (const std::string name, const double &value)=0 |
| A method to set the value of a parameter of the model. More... | |
Protected Attributes | |
| std::map< std::string, boost::reference_wrapper< const double > > | ModelParamMap |
| bool | UpdateError |
| A boolean set to false if update is successful. More... | |
Private Attributes | |
| bool | flagSUSYmodel |
| A flag identifying the model as a SUSY model. More... | |
| bool | flagTHDMmodel |
| A flag identifying the model as a THDM model. More... | |
| bool | ModelInitialized |
| A boolean set to true if the model is successfully initialized. More... | |
| std::string | name |
| The name of the model. More... | |
|
inline |
The default constructor.
Definition at line 30 of file Model.h.
|
inlinevirtual |
|
pure virtual |
A method to check the sanity of the set of model flags.
Implemented in QCD, and StandardModel.
|
pure virtual |
A method to check if all the mandatory parameters for the model have been provided in model initialization.
| [in] | DPars | a map of the parameters that are being updated in the Monte Carlo run (including parameters that are varied and those that are held constant) |
Implemented in QCD, StandardModel, NPEffectiveGIMR, NPEffectiveBS, HiggsKvKfgen, NPZbbbarLinearized, NPZbbbar, NPHiggs, HiggsKvgenKf, NPEpsilons, HiggsKvKf, NPSTUZbbbarLR, THDM, NPEpsilons_pureNP, NPSTU, SUSY, SUSYMassInsertion, FlavourWilsonCoefficient, myModel, and GeneralSUSY.
|
inline |
Definition at line 165 of file Model.h.
|
pure virtual |
A method to initialize the model parameters.
| [in] | DPars | a map of the parameters that are being updated in the Monte Carlo run (including parameters that are varied and those that are held constant) |
Implemented in QCD, StandardModel, THDM, SUSY, SUSYMassInsertion, FlavourWilsonCoefficient, myModel, and GeneralSUSY.
|
inline |
A method to check if the model is initialized.
Definition at line 133 of file Model.h.
|
inline |
Definition at line 170 of file Model.h.
|
inline |
Definition at line 179 of file Model.h.
|
inline |
Definition at line 187 of file Model.h.
|
inline |
A method to check if there was any error in the model update process.
Definition at line 151 of file Model.h.
|
inline |
A method to fetch the name of the model.
|
pure virtual |
The post-update method for the model.
This method runs all the procedures that are need to be executed after the model is successfully updated. This includes updating any other variable that needs to be updated at this time due to the update of the model parameters
Implemented in QCD, StandardModel, NPEffectiveGIMR, NPZbbbarLinearized, NPZbbbar, NPEpsilons, THDM, NPbase, SUSY, SUSYMassInsertion, FlavourWilsonCoefficient, myModel, and GeneralSUSY.
|
pure virtual |
The pre-update method for the model.
This method checks if all requisites for the update process of the current model has been completed. Such requisites can be procedures like update of other models or any other procedures that need to be done before the current model can be successfully updated.
Implemented in QCD, StandardModel, THDM, SUSY, SUSYMassInsertion, FlavourWilsonCoefficient, myModel, and GeneralSUSY.
|
pure virtual |
A method to set a flag of the model.
| [in] | name | name of a model flag |
| [in] | value | the boolean to be assigned to the flag specified by name |
Implemented in QCD, StandardModel, NPEffectiveGIMR, NPEpsilons, SUSY, FlavourWilsonCoefficient, and myModel.
|
pure virtual |
A method to set a flag of the model.
| [in] | name | name of a model flag |
| [in] | value | the string to be assigned to the flag specified by name |
Implemented in QCD, StandardModel, and THDM.
|
inline |
A set method to fix the failure or success of the initialization of the model.
| [in] | ModelInitialized | true if the model has been successfully initialized |
Definition at line 142 of file Model.h.
|
inline |
|
inline |
Definition at line 175 of file Model.h.
|
inline |
Definition at line 183 of file Model.h.
|
protectedpure virtual |
A method to set the value of a parameter of the model.
| [in] | name | name of a model parameter |
| [in] | value | the value to be assigned to the parameter specified by name |
Implemented in StandardModel, NPEffectiveGIMR, SUSY, NPEffectiveBS, NPEpsilons, HiggsKvKfgen, THDM, HiggsKvgenKf, HiggsKvKf, NPZbbbar, SUSYMassInsertion, NPEpsilons_pureNP, NPHiggs, FlavourWilsonCoefficient, NPZbbbarLinearized, NPSTU, NPSTUZbbbarLR, myModel, and GeneralSUSY.
|
inline |
A set method to fix the update status as success or failure.
| [in] | UpdateError | true if update is not successful |
Definition at line 160 of file Model.h.
|
pure virtual |
The update method for the model.
This method updates all the model parameters with given DPars.
| [in] | DPars | a map of the parameters that are being updated in the Monte Carlo run (including parameters that are varied and those that are held constant) |
Implemented in QCD, StandardModel, THDM, SUSY, SUSYMassInsertion, FlavourWilsonCoefficient, myModel, and GeneralSUSY.
|
private |
|
private |
|
private |
|
protected |
|
protected |