CHROMA
inline_stoch_meson_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline measurement of stochastic meson operator
4  *
5  * Form-factors
6  */
7 
8 #ifndef __inline_stoch_meson_h__
9 #define __inline_stoch_meson_h__
10 
11 #include "chromabase.h"
13 #include "io/qprop_io.h"
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlinehadron */
18  namespace InlineStochMesonEnv
19  {
20  extern const std::string name;
21  bool registerAll();
22  }
23 
24  //! Parameter structure
25  /*! \ingroup inlinehadron */
27  {
29  InlineStochMesonParams(XMLReader& xml_in, const std::string& path);
30  void write(XMLWriter& xml_out, const std::string& path);
31 
32  unsigned long frequency;
33 
34  struct Param_t
35  {
36  int mom2_max; /*!< (mom)^2 <= mom2_max */
37  } param;
38 
41 
42  struct Prop_t
43  {
44  //! Operators
45  struct Operator_t
46  {
47  multi1d<std::string> soln_files;
48  };
49 
51  multi1d<Operator_t> op;
52  };
53 
55  {
59 
60  std::string xml_file; // Alternate XML file pattern
61  };
62 
63 
64  //! Inline measurement of stochastic meson operators
65  /*! \ingroup inlinehadron */
67  {
68  public:
72 
73  unsigned long getFrequency(void) const {return params.frequency;}
74 
75  //! Do the measurement
76  void operator()(const unsigned long update_no,
77  XMLWriter& xml_out);
78 
79  protected:
80  //! Do the measurement
81  void func(const unsigned long update_no,
82  XMLWriter& xml_out);
83 
84  private:
86  };
87 
88 }
89 
90 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline measurement of stochastic meson operators.
InlineStochMeson(const InlineStochMesonParams &p)
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.
InlineStochMeson(const InlineStochMeson &p)
InlineStochMesonParams params
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Routines associated with Chroma propagator IO.
void write(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineStochMesonParams::Param_t param
struct Chroma::InlineStochMesonParams::NamedObject_t named_obj
Sink-smearing parameters.
Definition: qprop_io.h:51
Source-smearing parameters.
Definition: qprop_io.h:42