A class for the template of models.
- Author
- HEPfit Collaboration
- Copyright
- GNU General Public License
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.
Definition at line 26 of file Model.h.
| virtual bool Model::CheckParameters |
( |
const std::map< std::string, double > & |
DPars | ) |
|
|
pure virtual |
A method to check if all the mandatory parameters for the model have been provided in model initialization.
- 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) |
- Returns
- a boolean that is true if the execution is successful
Implemented in NPSMEFTd6, StandardModel, HiggsKigen, GeneralTHDM, QCD, HiggsChiral, THDMW, HiggsKvgenKfgen, HiggsKvKfgen, THDM, GeorgiMachacek, NPZbbbarLinearized, NPZbbbar, RealWeakEFTLFV, FlavourWilsonCoefficient, NPEpsilons, FlavourWilsonCoefficient_DF2, HiggsKvKf, NPSTUZbbbarLR, NPEpsilons_pureNP, RealWeakEFTCC, NPSTU, CMFV, NPDF2, myModel, and myModel.
| virtual bool Model::Init |
( |
const std::map< std::string, double > & |
DPars | ) |
|
|
pure virtual |
A method to initialize the model parameters.
- 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) |
- Returns
- a boolean that is true if the execution is successful
Implemented in StandardModel, GeneralTHDM, QCD, THDMW, THDM, GeorgiMachacek, RealWeakEFTLFV, FlavourWilsonCoefficient, RealWeakEFTCC, myModel, and myModel.
| virtual bool Model::PostUpdate |
( |
| ) |
|
|
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
- Returns
- a boolean that is true if the execution is successful
Implemented in NPSMEFTd6, StandardModel, GeneralTHDM, QCD, THDMW, HiggsKigen, THDM, GeorgiMachacek, NPZbbbarLinearized, NPZbbbar, RealWeakEFTLFV, FlavourWilsonCoefficient, NPEpsilons, FlavourWilsonCoefficient_DF2, HiggsChiral, RealWeakEFTCC, NPbase, myModel, and myModel.
| virtual bool Model::PreUpdate |
( |
| ) |
|
|
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.
- Returns
- a boolean that is true if the execution is successful
Implemented in StandardModel, GeneralTHDM, QCD, THDMW, THDM, GeorgiMachacek, RealWeakEFTLFV, FlavourWilsonCoefficient, RealWeakEFTCC, myModel, and myModel.
| virtual bool Model::setFlag |
( |
const std::string |
name, |
|
|
const bool |
value |
|
) |
| |
|
pure virtual |
A method to set a flag of the model.
- Parameters
-
| [in] | name | name of a model flag |
| [in] | value | the boolean to be assigned to the flag specified by name |
- Returns
- a boolean that is true if the execution is successful
Implemented in GeneralTHDM, GeorgiMachacek, NPSMEFT6dtopquark, NPSMEFTd6, StandardModel, QCD, HiggsKigen, THDM, RealWeakEFTLFV, FlavourWilsonCoefficient, NPEpsilons, HiggsChiral, RealWeakEFTCC, myModel, and myModel.
| virtual void Model::setParameter |
( |
const std::string |
name, |
|
|
const double & |
value |
|
) |
| |
|
protectedpure virtual |
A method to set the value of a parameter of the model.
- Parameters
-
| [in] | name | name of a model parameter |
| [in] | value | the value to be assigned to the parameter specified by name |
Implemented in GeneralTHDM, THDMW, GeorgiMachacek, FlavourWilsonCoefficient_DF2, FlavourWilsonCoefficient, myModel, myModel, CMFV, NPSMEFTd6, StandardModel, HiggsKigen, HiggsChiral, QCD, THDM, NPEpsilons, HiggsKvgenKfgen, HiggsKvKfgen, HiggsKvKf, NPZbbbar, NPEpsilons_pureNP, NPZbbbarLinearized, NPSTU, NPSTUZbbbarLR, NPSMEFT6dtopquark, and NPDF2.
| virtual bool Model::Update |
( |
const std::map< std::string, double > & |
DPars | ) |
|
|
pure virtual |
The update method for the model.
This method updates all the model parameters with given DPars.
- 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) |
- Returns
- a boolean that is true if the execution is successful
Implemented in StandardModel, GeneralTHDM, QCD, THDMW, THDM, GeorgiMachacek, RealWeakEFTLFV, FlavourWilsonCoefficient, RealWeakEFTCC, NPbase, myModel, and myModel.