CHROMA
inline_stoch_baryon_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline measurement of stochastic baryon operator
4  *
5  * Form-factors
6  */
7 
8 #ifndef __inline_stoch_baryon_h__
9 #define __inline_stoch_baryon_h__
10 
11 #include "chromabase.h"
13 #include "io/qprop_io.h"
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlinehadron */
18  namespace InlineStochBaryonEnv
19  {
20  extern const std::string name;
21  bool registerAll();
22  }
23 
24  //! Parameter structure
25  /*! \ingroup inlinehadron */
27  {
29  InlineStochBaryonParams(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 
38  std::string baryon_operator; /*!< baryon operator xml */
39  std::string baryon_operator_type; /*!< baryon operator name */
40 
41  } param;
42 
43  struct Prop_t
44  {
45  //! Operators
46  struct Operator_t
47  {
48  multi1d<std::string> soln_files;
49  };
50 
52  multi1d<Operator_t> op;
53  };
54 
56  {
60 
61  std::string xml_file; // Alternate XML file pattern
62  };
63 
64 
65  //! Inline measurement of stochastic baryon operators
66  /*! \ingroup inlinehadron */
68  {
69  public:
73 
74  unsigned long getFrequency(void) const {return params.frequency;}
75 
76  //! Do the measurement
77  void operator()(const unsigned long update_no,
78  XMLWriter& xml_out);
79 
80  protected:
81  //! Do the measurement
82  void func(const unsigned long update_no,
83  XMLWriter& xml_out);
84 
85  private:
87  };
88 
89 }
90 
91 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline measurement of stochastic baryon operators.
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
InlineStochBaryon(const InlineStochBaryon &p)
InlineStochBaryonParams params
InlineStochBaryon(const InlineStochBaryonParams &p)
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.
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::InlineStochBaryonParams::NamedObject_t named_obj
struct Chroma::InlineStochBaryonParams::Param_t param