CHROMA
inline_mres_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline mres calculations
4  *
5  * Mres calculations
6  */
7 
8 #ifndef __inline_mres_h__
9 #define __inline_mres_h__
10 
11 #include "chromabase.h"
13 
14 namespace Chroma
15 {
16  /*! \ingroup inlinehadron */
17  namespace InlineMresEnv
18  {
19  extern const std::string name;
20  bool registerAll();
21  }
22 
23  //! Parameter structure
24  /*! \ingroup inlinehadron */
26  {
28  InlineMresParams(XMLReader& xml_in, const std::string& path);
29  void write(XMLWriter& xml_out, const std::string& path);
30 
31  unsigned long frequency;
32 
33  struct Param_t
34  {
36  } param;
37 
39 
41  {
45 
46  std::string xml_file; // Alternate XML file pattern
47  };
48 
49 
50  //! Inline measurement of chiral fermion residual mass
51  /*! \ingroup inlinehadron */
53  {
54  public:
58 
59  unsigned long getFrequency(void) const {return params.frequency;}
60 
61  //! Do the measurement
62  void operator()(const unsigned long update_no,
63  XMLWriter& xml_out);
64 
65  protected:
66  //! Do the measurement
67  void func(const unsigned long update_no,
68  XMLWriter& xml_out);
69 
70  private:
72  };
73 
74 }
75 
76 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline measurement of chiral fermion residual mass.
Definition: inline_mres_w.h:53
InlineMres(const InlineMresParams &p)
Definition: inline_mres_w.h:56
void func(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
InlineMres(const InlineMres &p)
Definition: inline_mres_w.h:57
InlineMresParams params
Definition: inline_mres_w.h:71
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
Definition: inline_mres_w.h:59
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
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
Hold group xml and type id.
Parameter structure.
Definition: inline_mres_w.h:26
void write(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineMresParams::Param_t param
struct Chroma::InlineMresParams::NamedObject_t named_obj