Bridge++  Version 1.5.4
 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/action.h"
19 
20 #include "IO/bridgeIO.h"
21 using Bridge::vout;
22 
24 
33 class Action_G_Plaq : public Action
34 {
35  public:
36  static const std::string class_name;
37 
38  private:
39  double m_beta;
40  std::string m_label;
41 
45 
46  public:
48  : Action()
49  {
50  m_force_G = Force_G::New("Force_G_Plaq");
51  }
52 
54  {
55  delete m_force_G;
56  }
57 
58  void set_parameters(const Parameters& params);
59  void set_parameters(const double beta);
60 
61  void set_label(std::string label)
62  {
63  m_label = label;
64  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
65  }
66 
67  std::string get_label()
68  {
69  return m_label;
70  }
71 
72  void set_config(Field *U)
73  {
74  m_U = (Field_G *)U;
75  }
76 
77  double langevin(RandomNumbers *);
78 
79  double calcH();
80 
81  void force(Field&);
82 
83 #ifdef USE_FACTORY
84  private:
85  static Action *create_object()
86  {
87  return new Action_G_Plaq();
88  }
89 
90  public:
91  static bool register_factory()
92  {
93  return Action::Factory::Register("Action_G_Plaq", create_object);
94  }
95 #endif
96 };
97 #endif
BridgeIO vout
Definition: bridgeIO.cpp:503
double langevin(RandomNumbers *)
Langevis step.
void detailed(const char *format,...)
Definition: bridgeIO.cpp:216
HMC action class for plaquette gauge action.
Definition: action_G_Plaq.h:33
void set_parameters(const Parameters &params)
Field_G * m_U
Definition: action_G_Plaq.h:42
Container of Field-type object.
Definition: field.h:45
Class for parameters.
Definition: parameters.h:46
Force_G * m_force_G
Definition: action_G_Plaq.h:44
Staple_lex m_staple
Definition: action_G_Plaq.h:43
Base class of HMC action class family.
Definition: action.h:36
void set_label(std::string label)
Definition: action_G_Plaq.h:61
Staple construction.
Definition: staple_lex.h:39
SU(N) gauge field.
Definition: field_G.h:38
Base class of gauge force calculation.
Definition: force_G.h:31
std::string get_label()
Definition: action_G_Plaq.h:67
void set_config(Field *U)
setting pointer to the gauge configuration.
Definition: action_G_Plaq.h:72
Bridge::VerboseLevel m_vl
Definition: action.h:75
Base class of random number generators.
Definition: randomNumbers.h:43
std::string m_label
Definition: action_G_Plaq.h:40
double calcH()
calculate Hamiltonian of this action term.
static const std::string class_name
Definition: action_G_Plaq.h:36
void force(Field &)
returns force for molcular dynamical update of conjugate momenta.