Bridge++  Ver. 1.1.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
polyakovLoop.h
Go to the documentation of this file.
1 
14 #ifndef POLYAKOVLOOP_INCLUDED
15 #define POLYAKOVLOOP_INCLUDED
16 
17 #include <cassert>
18 #include "parameters.h"
19 #include "field_G.h"
20 #include "shiftField_eo.h"
21 
22 #include "bridgeIO.h"
23 using Bridge::vout;
24 
26 
39 //- parameters class
40 class Parameters_PolyakovLoop : virtual public Parameters
41 {
42  public:
44 };
45 //- end
46 
48 {
49  protected:
51 
52  private:
55  int m_Ntype;
56 
59  int m_Nx_ext;
60  int m_Ny_ext;
61  int m_Nz_ext;
62  int m_Nt_ext;
63  int m_Nvol_ext;
64 
65  typedef std::valarray<int> unitvec;
66  std::valarray<unitvec> m_Nunit;
67  std::valarray<int> m_Nmax;
68 
69  public:
70 
72  : m_vl(CommonParameters::Vlevel()), m_Nspc_size(0), m_Ntype(0)
73  {
74  init();
75  }
76 
77  virtual ~PolyakovLoop() {}
78 
80  virtual void set_parameters(const Parameters& params);
81 
82  void set_parameters(int Nspc_size, int Ntype);
83 
85 
87  double measure_ploop(Field_G& U);
88 
90  double measure_ploop_corr(Field_G& U);
91 
92  private:
93 
95  void calc_ploop(Field_G& P, Field_G& U);
96 
98  void init();
99 };
100 #endif