Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
staple_eo.h
Go to the documentation of this file.
1 
14 #ifndef STAPLE_EO_INCLUDED
15 #define STAPLE_EO_INCLUDED
16 
17 #include "staple.h"
18 
19 #include "Field/shiftField_eo.h"
20 
21 #include "IO/bridgeIO.h"
22 
24 
33 class Staple_eo : public Staple
34 {
35  public:
36  static const std::string class_name;
37 
38  private:
39  std::string m_filename_output;
40 
43 
44  public:
46  {
47  m_filename_output = "stdout";
48  }
49 
51 
52  public:
53  void set_parameters(const Parameters& params);
54 
55  void upper(Field_G&, const Field_G&, const int, const int);
56  void lower(Field_G&, const Field_G&, const int, const int);
57  double plaq_s(const Field_G&);
58  double plaq_t(const Field_G&);
59  double plaquette(const Field_G&);
60 
61  void staple(Field_G&, const Field_G&, const int);
62 
63 #ifdef USE_FACTORY
64  private:
65  static Staple *create_object()
66  {
67  return new Staple_eo();
68  }
69 
70  public:
71  static bool register_factory()
72  {
73  return Staple::Factory::Register("EvenOdd", create_object);
74  }
75 #endif
76 };
77 #endif
static const std::string class_name
Definition: staple_eo.h:36
void lower(Field_G &, const Field_G &, const int, const int)
constructs lower staple in mu-nu plane.
Definition: staple_eo.cpp:154
double plaq_t(const Field_G &)
calculates temporal plaquette value.
Definition: staple_eo.cpp:84
std::string m_filename_output
Definition: staple_eo.h:39
void staple(Field_G &, const Field_G &, const int)
constructs staple in mu-direction (summing up nu-direction).
Definition: staple_eo.cpp:110
Class for parameters.
Definition: parameters.h:46
void upper(Field_G &, const Field_G &, const int, const int)
constructs upper staple in mu-nu plane.
Definition: staple_eo.cpp:131
void set_parameters(const Parameters &params)
setting parameters.
Definition: staple_eo.cpp:25
double plaquette(const Field_G &)
calculates plaquette value.
Definition: staple_eo.cpp:38
SU(N) gauge field.
Definition: field_G.h:38
Staple_eo()
Definition: staple_eo.h:45
~Staple_eo()
Definition: staple_eo.h:50
Methods to shift the even-odd field.
Definition: shiftField_eo.h:45
Staple construction.
Definition: staple_eo.h:33
Field_G m_v
Definition: staple_eo.h:41
Field_G m_w
Definition: staple_eo.h:41
double plaq_s(const Field_G &)
calculates spatial plaquette value.
Definition: staple_eo.cpp:50
ShiftField_eo m_shift
Definition: staple_eo.h:42
Base class for Staple construction.
Definition: staple.h:33