CHROMA
inline_wilslp.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline Wilson loops
4  */
5 
6 #ifndef __inline_wilslp_h__
7 #define __inline_wilslp_h__
8 
9 #include "chromabase.h"
10 #include "handle.h"
11 #include "create_state.h"
13 #include "io/xml_group_reader.h"
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlineglue */
18  namespace InlineWilsonLoopEnv
19  {
20  extern const std::string name;
21  bool registerAll();
22  }
23 
24 
25  //! Parameter structure
26  /*! \ingroup inlineglue */
28  {
30  InlineWilsonLoopParams(XMLReader& xml_in, const std::string& path);
31 
32  unsigned long frequency;
33 
34  struct Param_t
35  {
36  int kind;
37  int j_decay;
38  int t_dir;
39  GroupXML_t cgs; /*!< Gauge State */
40  } param;
41 
43  {
46 
47  std::string xml_file; // Alternate XML file pattern
48  };
49 
50 
51  //! Inline measurement of Wilson loops
52  /*! \ingroup inlineglue */
54  {
55  public:
56  typedef multi1d<LatticeColorMatrix> P;
57  typedef multi1d<LatticeColorMatrix> Q;
58 
61 
62  unsigned long getFrequency(void) const {return params.frequency;}
63 
64  //! Do the measurement
65  void operator()(const unsigned long update_no,
66  XMLWriter& xml_out);
67 
68  protected:
69  //! Do the measurement
70  void func(const unsigned long update_no,
71  XMLWriter& xml_out);
72 
73  private:
75  };
76 
77 }
78 
79 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline measurement of Wilson loops.
Definition: inline_wilslp.h:54
multi1d< LatticeColorMatrix > P
Definition: inline_wilslp.h:56
multi1d< LatticeColorMatrix > Q
Definition: inline_wilslp.h:57
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
void func(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
InlineWilsonLoop(const InlineWilsonLoopParams &p)
Definition: inline_wilslp.h:60
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
Definition: inline_wilslp.h:62
InlineWilsonLoopParams params
Definition: inline_wilslp.h:74
Create a connection state.
Class for counted reference semantics.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Hold group xml and type id.
Parameter structure.
Definition: inline_wilslp.h:28
struct Chroma::InlineWilsonLoopParams::NamedObject_t named_obj
struct Chroma::InlineWilsonLoopParams::Param_t param
Read an XML group as a std::string.