a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
myModel.h
/*
* Copyright (C) 2015 HEPfit Collaboration
* All rights reserved.
*
* For the licensing terms see doc/COPYING.
*/
#ifndef MYMODEL_H
#define MYMODEL_H
#include <HEPfit.h>
class myModel: public StandardModel {
public:
static const int NmyModelvars = 4; /* Define number of mandatory parameters in the model. */
static const std::string myModelvars[NmyModelvars]; /* Vector of model variable names. */
virtual bool InitializeModel();
virtual bool Init(const std::map<std::string, double>& DPars);
virtual bool PreUpdate();
virtual bool Update(const std::map<std::string, double>& DPars);
virtual bool PostUpdate();
virtual bool CheckParameters(const std::map<std::string, double>& DPars);
virtual bool setFlag(const std::string name, const bool value);
double getc1() const
{
return c1;
}
double getc2() const
{
return c2;
}
double getc3() const
{
return c3;
}
double getc4() const
{
return c4;
}
bool get_condition_flag() const
{
return condition;
}
protected:
virtual void setParameter(const std::string, const double&);
private:
double c1, c2, c3, c4; /* Model Parameters */
bool condition;
};
#endif /* MYMODEL_H */
myModel::myModelvars
static const std::string myModelvars[NmyModelvars]
Definition: Doxygen/examples-src/myModel/src/myModel.h:21
myModel::myModel
myModel()
myModel constructor
Definition: Doxygen/examples-src/myModel/src/myModel.cpp:13
myModel::c4
double c4
Definition: Doxygen/examples-src/myModel/src/myModel.h:100
myModel::getc2
double getc2() const
Definition: Doxygen/examples-src/myModel/src/myModel.h:61
myModel::c2
double c2
Definition: Doxygen/examples-src/myModel/src/myModel.h:100
myModel::c1
double c1
Definition: Doxygen/examples-src/myModel/src/myModel.h:100
myModel::PreUpdate
virtual bool PreUpdate()
Definition: Doxygen/examples-src/myModel/src/myModel.cpp:44
StandardModel
A model class for the Standard Model.
Definition: StandardModel.h:474
myModel::Update
virtual bool Update(const std::map< std::string, double > &DPars)
Definition: Doxygen/examples-src/myModel/src/myModel.cpp:51
myModel
My own Model.
Definition: Doxygen/examples-src/myModel/src/myModel.h:17
myModel::PostUpdate
virtual bool PostUpdate()
Definition: Doxygen/examples-src/myModel/src/myModel.cpp:70
myModel::InitializeModel
virtual bool InitializeModel()
Definition: Doxygen/examples-src/myModel/src/myModel.cpp:31
myModel::get_condition_flag
bool get_condition_flag() const
Definition: Doxygen/examples-src/myModel/src/myModel.h:88
myModel::CheckParameters
virtual bool CheckParameters(const std::map< std::string, double > &DPars)
Definition: Doxygen/examples-src/myModel/src/myModel.cpp:92
myModel::setFlag
virtual bool setFlag(const std::string name, const bool value)
Definition: Doxygen/examples-src/myModel/src/myModel.cpp:105
myModel::condition
bool condition
Definition: Doxygen/examples-src/myModel/src/myModel.h:101
myModel::setParameter
virtual void setParameter(const std::string, const double &)
Definition: Doxygen/examples-src/myModel/src/myModel.cpp:78
myModel::getc1
double getc1() const
Definition: Doxygen/examples-src/myModel/src/myModel.h:52
myModel::c3
double c3
Definition: Doxygen/examples-src/myModel/src/myModel.h:100
myModel::Init
virtual bool Init(const std::map< std::string, double > &DPars)
Definition: Doxygen/examples-src/myModel/src/myModel.cpp:38
myModel::getc4
double getc4() const
Definition: Doxygen/examples-src/myModel/src/myModel.h:79
Model::name
std::string name
The name of the model.
Definition: Model.h:267
myModel::NmyModelvars
static const int NmyModelvars
Definition: Doxygen/examples-src/myModel/src/myModel.h:20
myModel::~myModel
~myModel()
myModel destructor
Definition: Doxygen/examples-src/myModel/src/myModel.cpp:23
myModel::getc3
double getc3() const
Definition: Doxygen/examples-src/myModel/src/myModel.h:70