Bridge++  Ver. 1.3.x
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;
48 
51 
53 
54  public:
55 
57  : Action() {}
58 
60 
61  void set_parameters(const Parameters& params);
62  void set_parameters(double beta);
63 
64  void set_label(std::string label)
65  {
66  m_label = label;
67  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
68  }
69 
70  std::string get_label()
71  {
72  return m_label;
73  }
74 
75  void set_config(Field *U)
76  {
77  m_U = (Field_G *)U;
78  }
79 
80  double langevin(RandomNumbers *);
81 
82  double calcH();
83 
84  void force(Field&);
85 };
86 #endif
BridgeIO vout
Definition: bridgeIO.cpp:278
double langevin(RandomNumbers *)
Langevis step.
void detailed(const char *format,...)
Definition: bridgeIO.cpp:82
Staple construction.
Definition: staples.h:40
void set_parameters(const Parameters &params)
Field_G * m_U
Definition: action_G_Plaq.h:49
HMC action class for plaquette gauge action.
Definition: action_G_Plaq.h:33
Container of Field-type object.
Definition: field.h:39
Class for parameters.
Definition: parameters.h:38
Base class of HMC action class family.
Definition: action.h:42
void set_label(std::string label)
Definition: action_G_Plaq.h:64
SU(N) gauge field.
Definition: field_G.h:38
std::string get_label()
Definition: action_G_Plaq.h:70
void set_config(Field *U)
setting pointer to the gauge configuration.
Definition: action_G_Plaq.h:75
RandomNumbers * m_rand
Definition: action_G_Plaq.h:52
Bridge::VerboseLevel m_vl
Definition: action.h:81
Base class of random number generators.
Definition: randomNumbers.h:39
std::string m_label
Definition: action_G_Plaq.h:47
Staples m_staple
Definition: action_G_Plaq.h:50
double calcH()
calculate Hamiltonian of this action term.
static const std::string class_name
Definition: action_G_Plaq.h:43
void force(Field &)
returns force for molcular dynamical update of conjugate momenta.