a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
Doxygen/examples-src/myModel/src/myModel.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 HEPfit Collaboration
3  * All rights reserved.
4  *
5  * For the licensing terms see doc/COPYING.
6  */
7 
8 #ifndef MYMODEL_H
9 #define MYMODEL_H
10 
11 #include <HEPfit.h>
12 
17 class myModel: public StandardModel {
18 public:
19 
20  static const int NmyModelvars = 4; /* Define number of mandatory parameters in the model. */
21  static const std::string myModelvars[NmyModelvars]; /* Vector of model variable names. */
22 
26  myModel();
27 
31  ~myModel();
32 
33  virtual bool InitializeModel();
34 
35  virtual bool Init(const std::map<std::string, double>& DPars);
36 
37  virtual bool PreUpdate();
38 
39  virtual bool Update(const std::map<std::string, double>& DPars);
40 
41  virtual bool PostUpdate();
42 
43  virtual bool CheckParameters(const std::map<std::string, double>& DPars);
44 
45  virtual bool setFlag(const std::string name, const bool value);
46 
47 
52  double getc1() const
53  {
54  return c1;
55  }
56 
61  double getc2() const
62  {
63  return c2;
64  }
65 
70  double getc3() const
71  {
72  return c3;
73  }
74 
79  double getc4() const
80  {
81  return c4;
82  }
83 
88  bool get_condition_flag() const
89  {
90  return condition;
91  }
92 
93 
94 protected:
95 
96  virtual void setParameter(const std::string, const double&);
97 
98 private:
99 
100  double c1, c2, c3, c4; /* Model Parameters */
101  bool condition;
102 
103 };
104 
105 #endif /* MYMODEL_H */
106 
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