CHROMA
delta_2pt_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Construct delta 2pt correlators.
4  */
5 
6 #ifndef __delta_2pt_w_h__
7 #define __delta_2pt_w_h__
8 
10 
11 namespace Chroma
12 {
13 
14  //! Name and registration
15  /*! @ingroup hadron */
16  namespace Delta2PtEnv
17  {
18  bool registerAll();
19 
20 
21  //! Simple meson 2pt parameters
22  /*! @ingroup hadron */
23  struct Params
24  {
25  Params();
26  Params(XMLReader& in, const std::string& path);
27  void writeXML(XMLWriter& in, const std::string& path) const;
28 
29  int mom2_max; /*!< (mom - mom_origin)^2 <= mom2_max */
30  multi1d<int> mom_origin; /*!< Origin for the momentum */
31  bool avg_equiv_mom; /*!< average over equivalent momenta */
32 
33  bool min_contractions;/*!< Only do minimal number of contractions*/
34  std::string parity; /*!< Which parity/parities to do?*/
35  std::string first_id; /*!< First/light quark id */
36  std::string second_id; /*!< Second/heavy quark id */
37  };
38 
39 
40  //! Decuplet baryon 2pt construction
41  /*! @ingroup hadron
42  *
43  * Create all possible Decuplet polarization states
44  */
45  class DeltaCorrs : public Hadron2PtCorr
46  {
47  public:
48  //! Full constructor
49  DeltaCorrs(const Params& p) : params(p) {}
50 
51  //! Default destructor
53 
54  //! Construct the correlators
55  std::list< Handle<HadronContractResult_t> > operator()(const multi1d<LatticeColorMatrix>& u,
56  const std::string& xml_group,
57  const std::string& id_tag);
58 
59  private:
60  //! Hide partial constructor
62 
63  private:
64  Params params; /*!< The common params */
65  };
66  } // end namespace
67 
68 
69  //! Reader
70  /*! @ingroup hadron */
71  void read(XMLReader& xml, const std::string& path, Delta2PtEnv::Params& param);
72 
73  //! Writer
74  /*! @ingroup hadron */
75  void write(XMLWriter& xml, const std::string& path, const Delta2PtEnv::Params& param);
76 
77 
78 } // end namespace Chroma
79 
80 #endif
Decuplet baryon 2pt construction.
Definition: delta_2pt_w.h:46
~DeltaCorrs()
Default destructor.
Definition: delta_2pt_w.h:52
DeltaCorrs()
Hide partial constructor.
Definition: delta_2pt_w.h:61
std::list< Handle< HadronContractResult_t > > operator()(const multi1d< LatticeColorMatrix > &u, const std::string &xml_group, const std::string &id_tag)
Construct the correlators.
Definition: delta_2pt_w.cc:120
DeltaCorrs(const Params &p)
Full constructor.
Definition: delta_2pt_w.h:49
Construct hadron 2pt correlators.
Definition: hadron_2pt.h:50
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams &param)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams &param)
Writer parameters.
Construct hadron 2pt correlators.
bool registerAll()
Register all the factories.
Definition: delta_2pt_w.cc:389
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
static multi1d< LatticeColorMatrix > u
static QDP_ColorVector * in
::std::string string
Definition: gtest.h:1979
Simple meson 2pt parameters.
Definition: delta_2pt_w.h:24
void writeXML(XMLWriter &in, const std::string &path) const
Definition: delta_2pt_w.cc:99
multi1d< int > mom_origin
Definition: delta_2pt_w.h:30