CHROMA
sfcorr_w.cc
Go to the documentation of this file.
1 
2 #include "chromabase.h"
5 
6 namespace Chroma
7 {
8 
9  //! Schroedinger functional correlation functions
10  /*!
11  * @ingroup schrfun
12  *
13  * Construct 'current correlators' and axial density used for the PCAC determination
14  * in the Schroedinger Functional
15  *
16  * \param quark_propagator quark propagator ( Read )
17  * \param pseudo_prop pion correlator ( Write )
18  * \param axial_prop axial-current to pion_1 correlators ( Modify )
19  * \param phases object holds list of momenta and Fourier phases ( Read )
20  *
21  *
22  * \
23  * cc(t) = > < m(0, 0) c(t + L, x) >
24  * /
25  * ----
26  * x
27  */
28 
29  void SFcorr(multi1d<Real>& pseudo_prop,
30  multi1d<Real>& axial_prop,
31  const LatticePropagator& quark_propagator,
32  const SftMom& phases)
33  {
34  START_CODE();
35 
36  // Length of lattice in decay direction
37  int length = phases.numSubsets();
38 
39  /* First compute the pion correlator - the pseudoscalar */
40  LatticeReal corr_fn = localNorm2(quark_propagator);
41 
42  /* Do a slice-wise sum. */
43  multi2d<DComplex> hsum;
44  hsum = phases.sft(corr_fn);
45 
46  pseudo_prop.resize(length);
47  for(int t = 0; t < length; ++t)
48  pseudo_prop[t] = real(hsum[0][t]);
49 
50  /* Construct the axial-current to pion correlator */
51  int jd = 1 << phases.getDir();
52  corr_fn = real(trace(adj(quark_propagator) * (Gamma(jd) * quark_propagator)));
53 
54  /* Do a slice-wise sum. */
55  hsum = phases.sft(corr_fn);
56 
57  axial_prop.resize(length);
58  for(int t = 0; t < length; ++t)
59  axial_prop[t] = -real(hsum[0][t]);
60 
61  END_CODE();
62  }
63 
64 } // end namespace
Primary include file for CHROMA library code.
Fourier transform phase factor support.
Definition: sftmom.h:35
int numSubsets() const
Number of subsets - length in decay direction.
Definition: sftmom.h:63
int getDir() const
Decay direction.
Definition: sftmom.h:69
multi2d< DComplex > sft(const LatticeComplex &cf) const
Do a sumMulti(cf*phases,getSet())
Definition: sftmom.cc:524
void SFcorr(multi1d< Real > &pseudo_prop, multi1d< Real > &axial_prop, const LatticePropagator &quark_propagator, const SftMom &phases)
Schroedinger functional correlation functions.
Definition: sfcorr_w.cc:29
int t
Definition: meslate.cc:37
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
START_CODE()
Schroedinger functional correlation functions.
Current renormalizations within Schroedinger functional.