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 
bool get_condition_flag() const
Definition: myModel.h:88
virtual bool CheckParameters(const std::map< std::string, double > &DPars)
Definition: myModel.cpp:92
virtual bool Init(const std::map< std::string, double > &DPars)
Definition: myModel.cpp:38
virtual void setParameter(const std::string, const double &)
Definition: myModel.cpp:78
virtual bool Update(const std::map< std::string, double > &DPars)
Definition: myModel.cpp:51
virtual bool PreUpdate()
Definition: myModel.cpp:44
double c2
Definition: myModel.h:100
virtual bool InitializeModel()
Definition: myModel.cpp:31
double getc1() const
Definition: myModel.h:52
double c4
Definition: myModel.h:100
static const std::string myModelvars[NmyModelvars]
Definition: myModel.h:21
virtual bool PostUpdate()
Definition: myModel.cpp:70
double getc2() const
Definition: myModel.h:61
std::string name
The name of the model.
Definition: Model.h:203
A model class for the Standard Model.
static const int NmyModelvars
Definition: myModel.h:20
double getc4() const
Definition: myModel.h:79
~myModel()
myModel destructor
Definition: myModel.cpp:23
myModel()
myModel constructor
Definition: myModel.cpp:13
double getc3() const
Definition: myModel.h:70
bool condition
Definition: myModel.h:101
virtual bool setFlag(const std::string name, const bool value)
Definition: myModel.cpp:105
double c1
Definition: myModel.h:100
My own Model.
Definition: myModel.h:17
double c3
Definition: myModel.h:100