CHROMA
inline_random_transf_gauge.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Do a random gauge transformation on a gauge field
4  */
5 
6 #ifndef __inline_random_transf_gauge_h__
7 #define __inline_random_transf_gauge_h__
8 
9 #include "chromabase.h"
11 
12 namespace Chroma
13 {
14  /*! \ingroup inlineglue */
15  namespace InlineRandomTransfGaugeEnv
16  {
17  extern const std::string name;
18  bool registerAll();
19 
20  //! Parameter structure
21  /*! \ingroup inlineglue */
22  struct Params
23  {
24  Params();
25  Params(XMLReader& xml_in, const std::string& path);
26  void writeXML(XMLWriter& xml_out, const std::string& path);
27 
28  unsigned long frequency;
29 
31  {
32  std::string gauge_id; /*!< input gauge field */
33  std::string rgauge_id; /*!< output gauge field */
34  std::string gauge_rot_id; /*!< random gauge transformation fields */
36 
37  };
38 
39 
40  //! Inline random gauge transformation on a gauge field
41  /*! \ingroup inlineglue */
43  {
44  public:
46  InlineMeas(const Params& p) : params(p) {}
48 
49  unsigned long getFrequency(void) const {return params.frequency;}
50 
51  //! Do the measurement
52  void operator()(const unsigned long update_no,
53  XMLWriter& xml_out);
54 
55  private:
57  };
58 
59  }
60 
61 }
62 
63 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline random gauge transformation on a gauge field.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
struct Chroma::InlineRandomTransfGaugeEnv::Params::NamedObject_t named_obj
void writeXML(XMLWriter &xml_out, const std::string &path)