CHROMA
inline_bar3ptfn_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline measurement of bar3ptfn
4  *
5  * Form-factors
6  */
7 
8 #ifndef __inline_bar3ptfn_h__
9 #define __inline_bar3ptfn_h__
10 
11 #include "chromabase.h"
13 
14 namespace Chroma
15 {
16  /*! \ingroup inlinehadron */
17  namespace InlineBar3ptfnEnv
18  {
19  extern const std::string name;
20  bool registerAll();
21  }
22 
23 
24  //! Parameter structure
25  /*! \ingroup inlinehadron */
27  {
29  InlineBar3ptfnParams(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  int j_decay;
38  } param;
39 
40  struct SeqProp_t
41  {
43  int gamma_insertion; /*!< second gamma insertion */
44  };
45 
47  {
50  multi1d<SeqProp_t> seqprops;
53  };
54 
55 
56  //! Inline measurement of 3pt functions
57  /*! \ingroup inlinehadron */
59  {
60  public:
64 
65  unsigned long getFrequency(void) const {return params.frequency;}
66 
67  //! Do the measurement
68  void operator()(const unsigned long update_no,
69  XMLWriter& xml_out);
70 
71  private:
73  };
74 
75 }
76 
77 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline measurement of 3pt functions.
InlineBar3ptfn(const InlineBar3ptfnParams &p)
InlineBar3ptfn(const InlineBar3ptfn &p)
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
InlineBar3ptfnParams params
void operator()(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
void write(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineBar3ptfnParams::NamedObject_t named_obj
struct Chroma::InlineBar3ptfnParams::Param_t param