12 #include <boost/ref.hpp>
67 virtual bool Init(
const std::map<std::string, double>& DPars) = 0;
86 virtual bool Update(
const std::map<std::string, double>& DPars) = 0;
105 virtual bool CheckParameters(
const std::map<std::string, double>& DPars) = 0;
113 virtual bool setFlag(
const std::string
name,
const bool value) = 0;
121 virtual bool setFlagStr(
const std::string
name,
const std::string value) = 0;
200 std::map< std::string, boost::reference_wrapper<const double> >
ModelParamMap;
virtual bool Update(const std::map< std::string, double > &DPars)=0
The update method for the model.
virtual bool PostUpdate()=0
The post-update method for the model.
A class for the template of models.
virtual bool CheckFlags() const =0
A method to check the sanity of the set of model flags.
virtual bool setFlagStr(const std::string name, const std::string value)=0
A method to set a flag of the model.
virtual bool Init(const std::map< std::string, double > &DPars)=0
A method to initialize the model parameters.
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 initializ...
bool UpdateError
A boolean set to false if update is successful.
virtual ~Model()
The default destructor.
std::string name
The name of the model.
virtual bool PreUpdate()=0
The pre-update method for the model.
void setModelInitialized(bool ModelInitialized)
A set method to fix the failure or success of the initialization of the model.
bool isModelParam(std::string name) const
bool IsModelInitialized() const
A method to check if the model is initialized.
virtual bool setFlag(const std::string name, const bool value)=0
A method to set a flag of the model.
bool ModelInitialized
A boolean set to true if the model is successfully initialized.
bool IsUpdateError() const
A method to check if there was any error in the model update process.
bool flagTHDMmodel
A flag identifying the model as a THDM model.
void setModelName(const std::string name)
A method to set the name of the model.
void setUpdateError(bool UpdateError)
A set method to fix the update status as success or failure.
Model()
The default constructor.
bool flagSUSYmodel
A flag identifying the model as a SUSY model.
std::string ModelName() const
A method to fetch the name of the model.
std::map< std::string, boost::reference_wrapper< const double > > ModelParamMap
const double & getModelParam(std::string name) const
virtual void setParameter(const std::string name, const double &value)=0
A method to set the value of a parameter of the model.