CHROMA
stoch_cond_cont_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Stoch quark condensates
4  *
5  * Stoch quark condensates via the hadron contraction interface.
6  * This code is using the Hadron2PtCorr interface because the
7  * condensates are projected onto a fixed 3-space momentum. Thus,
8  * they are time-slice dependent and similar then to the 2-pt
9  * correlators. However, the origin is not an issue like that in
10  * the 2pt corrs., so that part can be avoided.
11  */
12 
13 #ifndef __stoch_cond_cont_w_h__
14 #define __stoch_cond_cont_w_h__
15 
16 #include "meas/hadron/hadron_2pt.h"
17 
18 namespace Chroma
19 {
20  //! Stochastic quark condensates
21  /*! \ingroup hadron */
22  namespace StochCondContEnv
23  {
24  bool registerAll();
25 
26 
27  //! Parameter structure
28  /*! \ingroup hadron */
29  struct Params
30  {
31  Params();
32  Params(XMLReader& xml_in, const std::string& path);
33  void writeXML(XMLWriter& xml_out, const std::string& path) const;
34 
35  int mom2_max; /*!< (mom)^2 <= mom2_max */
36  multi1d<int> mom_origin; /*!< Origin for the momentum */
37  bool avg_equiv_mom; /*!< average over equivalent momenta */
38 
39  multi1d<std::string> soln_files; /*!< Stochastic quark prop solutions */
40  };
41 
42 
43  //! Stochastic quark condensates
44  /*! \ingroup hadron */
46  {
47  public:
48  //! Full constructor
49  StochCondCont(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:
61  };
62 
63  } // namespace StochCondContEnv
64 
65 
66  //! Reader
67  /*! @ingroup hadron */
68  void read(XMLReader& xml, const std::string& path, StochCondContEnv::Params& param);
69 
70  //! Writer
71  /*! @ingroup hadron */
72  void write(XMLWriter& xml, const std::string& path, const StochCondContEnv::Params& param);
73 
74 
75 } // namespace Chroma
76 
77 #endif
Construct hadron 2pt correlators.
Definition: hadron_2pt.h:50
Stochastic quark condensates.
StochCondCont(const Params &p)
Full constructor.
std::list< Handle< HadronContractResult_t > > operator()(const multi1d< LatticeColorMatrix > &u, const std::string &xml_group, const std::string &id_tag)
Construct the correlators.
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.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
static multi1d< LatticeColorMatrix > u
::std::string string
Definition: gtest.h:1979
multi1d< std::string > soln_files
void writeXML(XMLWriter &xml_out, const std::string &path) const