CHROMA
inline_sfpcac_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline Schroedinger functional measurements
4  */
5 
6 #ifndef __inline_sfpcac_w_h__
7 #define __inline_sfpcac_w_h__
8 
9 #include "chromabase.h"
11 #include "io/qprop_io.h"
12 
13 namespace Chroma
14 {
15  /*! \ingroup inlinehadron */
16  namespace InlineSFpcacEnv
17  {
18  extern const std::string name;
19  bool registerAll();
20 
21 
22  //! Parameter structure
23  /*! \ingroup inlinehadron */
24  struct Params
25  {
26  Params();
27  Params(XMLReader& xml_in, const std::string& path);
28  void writeXML(XMLWriter& xml_out, const std::string& path);
29 
30  unsigned long frequency;
31 
33 
34  struct SFpcac_t
35  {
36  int decay_dir; /*!< decay direction */
37  bool ZVfactP; /*!< Measure Z_V */
38  bool ZAfactP; /*!< Measure Z_A */
39  int x0; /*!< Starting location of currents */
40  int y0; /*!< Ending location of currents */
41  } sfpcac;
42 
44  {
47 
48  std::string xml_file; // Alternate XML file pattern
49  };
50 
51 
52  //! Inline measurement of Wilson loops
53  /*! \ingroup inlinehadron */
55  {
56  public:
58  InlineMeas(const Params& p) : params(p) {}
60 
61  unsigned long getFrequency(void) const {return params.frequency;}
62 
63  //! Do the measurement
64  void operator()(const unsigned long update_no,
65  XMLWriter& xml_out);
66 
67  protected:
68  //! Do the measurement
69  void func(const unsigned long update_no,
70  XMLWriter& xml_out);
71 
72  private:
74  };
75 
76  } // namespace InlineSFpcacEnv
77 } // namespace Chroma
78 
79 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline measurement of Wilson loops.
void func(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
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.
const std::string name
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Routines associated with Chroma propagator IO.
Propagator parameters.
Definition: qprop_io.h:75
struct Chroma::InlineSFpcacEnv::Params::NamedObject_t named_obj
void writeXML(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineSFpcacEnv::Params::SFpcac_t sfpcac