CHROMA
inline_qqbar_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline construction of qqbar
4  *
5  * QQbar calcs
6  */
7 
8 #ifndef __inline_qqbar_h__
9 #define __inline_qqbar_h__
10 
11 #include "chromabase.h"
13 #include "io/qprop_io.h"
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlinehadron */
18  namespace InlineQQbarEnv
19  {
20  extern const std::string name;
21  bool registerAll();
22  }
23 
24  //! Parameter structure
25  /*! \ingroup inlinehadron */
27  {
29  InlineQQbarParams(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  bool Dirac_basis; /*!< Use the Dirac basis for output? */
37  } param;
38 
40  {
41  std::string gauge_id; /*!< Input gauge field */
42  multi1d<std::string> prop_ids; /*!< Input sink smeared propagators */
43  std::string qqbar_file; /*!< qqbar output file */
45  };
46 
47 
48  //! Inline measurement of quark-antiquark 2-pt correlators
49  /*! \ingroup inlinehadron */
51  {
52  public:
56 
57  unsigned long getFrequency(void) const {return params.frequency;}
58 
59  //! Do the measurement
60  void operator()(const unsigned long update_no,
61  XMLWriter& xml_out);
62 
63  private:
65  };
66 
67 }
68 
69 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline measurement of quark-antiquark 2-pt correlators.
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
InlineQQbar(const InlineQQbarParams &p)
InlineQQbarParams params
InlineQQbar(const InlineQQbar &p)
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
const std::string name
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.
Parameter structure.
void write(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineQQbarParams::Param_t param
struct Chroma::InlineQQbarParams::NamedObject_t named_obj