Bridge++  Ver. 1.2.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
action_G_Plaq.h
Go to the documentation of this file.
1 
14 #ifndef ACTION_G_PLAQ_INCLUDED
15 #define ACTION_G_PLAQ_INCLUDED
16 
17 #include "action.h"
18 #include "staples.h"
19 
20 #include "bridgeIO.h"
21 using Bridge::vout;
22 
24 
32 //- parameters class
33 class Parameters_Action_G_Plaq : virtual public Parameters
34 {
35  public:
37 };
38 //- end
39 
40 class Action_G_Plaq : public Action
41 {
42  public:
43  static const std::string class_name;
44 
45  private:
46  double m_beta;
47  std::string m_label;
49 
53 
55 
56  public:
57 
59  : Action() {}
60 
62 
63  void set_parameters(const Parameters& params);
64  void set_parameters(double beta);
65 
66  void set_label(std::string label)
67  {
68  m_label = label;
69  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
70  }
71 
72  std::string get_label()
73  {
74  return m_label;
75  }
76 
77  void set_config(Field *U)
78  {
79  m_U = (Field_G *)U;
80  }
81 
82  void notify_linkv()
83  {
84  m_status_linkv = 0;
85  }
86 
87  double langevin(RandomNumbers *);
88 
89  double calcH();
90 
91  const Field force();
92 };
93 #endif
BridgeIO vout
Definition: bridgeIO.cpp:207
double langevin(RandomNumbers *)
Langevis step.
void detailed(const char *format,...)
Definition: bridgeIO.cpp:50
Staple construction.
Definition: staples.h:40
void notify_linkv()
to be called when gauge configuration is updated.
Definition: action_G_Plaq.h:82
void set_parameters(const Parameters &params)
Field_G * m_U
Definition: action_G_Plaq.h:50
HMC action class for plaquette gauge action.
Definition: action_G_Plaq.h:33
Container of Field-type object.
Definition: field.h:37
Class for parameters.
Definition: parameters.h:40
const Field force()
returns force for molcular dynamical update of conjugate momenta.
Base class of HMC action class family.
Definition: action.h:35
void set_label(std::string label)
Definition: action_G_Plaq.h:66
SU(N) gauge field.
Definition: field_G.h:36
std::string get_label()
Definition: action_G_Plaq.h:72
void set_config(Field *U)
setting pointer to the gauge configuration.
Definition: action_G_Plaq.h:77
RandomNumbers * m_rand
Definition: action_G_Plaq.h:54
Bridge::VerboseLevel m_vl
Definition: action.h:64
Base class of random number generators.
Definition: randomNumbers.h:40
std::string m_label
Definition: action_G_Plaq.h:47
Staples m_staple
Definition: action_G_Plaq.h:52
double calcH()
calculate Hamiltonian of this action term.
static const std::string class_name
Definition: action_G_Plaq.h:43