CHROMA
inline_qqqNucNuc_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief The QQQ and QQBAR object calculation
4  *
5  */
6 
7 #ifndef __inline_QQQNucNuc_h__
8 #define __inline_QQQNucNuc_h__
9 
10 #include "chromabase.h"
12 
13 namespace Chroma
14 {
15  /*! \ingroup inlinehadron */
16  namespace InlineQQQNucNucEnv
17  {
18  extern const std::string name;
19  bool registerAll();
20  }
21 
22  //! Parameter structure
23  /*! \ingroup inlinehadron */
25  {
27  InlineQQQNucNucParams(XMLReader& xml_in, const std::string& path);
28  void write(XMLWriter& xml_out, const std::string& path);
29 
30  unsigned long frequency;
31 
32  struct Param_t
33  {
34  int max_p2;
37  } param;
38 
40  {
41  std::string gauge_id; /*!< Input gauge field */
42  multi1d<std::string> prop_ids; /*!< Input forward propagators */
44 
45  std::string qqq_file ; // binary file to write the qqq object
46  std::string qqbar_file ; // binary file to write the qqbar object
47 
48  std::string xml_file ; // Alternate XML file pattern
49  };
50 
51 
52  //! Inline measurement of baryon-baryon 2-pt correlators
53  /*! \ingroup inlinehadron */
55  {
56  public:
60 
61  unsigned long getFrequency(void) const {return params.frequency;}
62 
63  //! Do the measurement
64  void operator()(const unsigned long update_no,
65  XMLWriter& xml_out);
66 
67  protected:
68  //! Do the measurement
69  void func(const unsigned long update_no,
70  XMLWriter& xml_out);
71 
72  private:
74  };
75 
76 }
77 
78 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline measurement of baryon-baryon 2-pt correlators.
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.
InlineQQQNucNuc(const InlineQQQNucNuc &p)
void func(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
InlineQQQNucNuc(const InlineQQQNucNucParams &p)
InlineQQQNucNucParams params
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
struct Chroma::InlineQQQNucNucParams::NamedObject_t named_obj
struct Chroma::InlineQQQNucNucParams::Param_t param
void write(XMLWriter &xml_out, const std::string &path)