30 const LatticePropagator& forw_prop,
31 const LatticePropagator& anti_prop)
33 int gamma_value = 1 <<
mu;
35 LatticePropagator S = 0.5*(shift(anti_prop,
FORWARD,
mu) * adj(
u[
mu])
36 * (forw_prop + Gamma(gamma_value)*forw_prop)
37 - anti_prop *
u[
mu] * shift(forw_prop - Gamma(gamma_value)*forw_prop,
FORWARD,
mu));
55 const LatticeComplex& corr_local_fn,
56 const LatticeComplex& corr_nonlocal_fn,
58 bool compute_nonlocal,
63 momenta.resize(phases.
numMom());
68 multi2d<DComplex> hsum_local = phases.
sft(corr_local_fn);
69 multi2d<DComplex> hsum_nonlocal;
71 hsum_nonlocal = phases.
sft(corr_nonlocal_fn);
74 for(
int inser_mom_num=0; inser_mom_num < phases.
numMom(); ++inser_mom_num)
76 momenta[inser_mom_num].inser_mom_num = inser_mom_num;
77 momenta[inser_mom_num].inser_mom = phases.
numToMom(inser_mom_num);
79 multi1d<Complex> local_cur3ptfn(length);
80 multi1d<Complex> nonlocal_cur3ptfn;
82 nonlocal_cur3ptfn.resize(length);
84 for (
int t=0;
t < length; ++
t)
86 int t_eff = (
t -
t0 + length) % length;
88 local_cur3ptfn[t_eff] = Complex(hsum_local[inser_mom_num][
t]);
90 nonlocal_cur3ptfn[t_eff] = Complex(hsum_nonlocal[inser_mom_num][
t]);
93 momenta[inser_mom_num].local_current = local_cur3ptfn;
94 momenta[inser_mom_num].nonlocal_current = nonlocal_cur3ptfn;
Primary include file for CHROMA library code.
Fourier transform phase factor support.
int numSubsets() const
Number of subsets - length in decay direction.
multi1d< int > numToMom(int mom_num) const
Convert momenta id to actual array of momenta.
multi2d< DComplex > sft(const LatticeComplex &cf) const
Do a sumMulti(cf*phases,getSet())
int numMom() const
Number of momenta.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void wallFormFacSft(multi1d< WallFormFac_momenta_t > &momenta, const LatticeComplex &corr_local_fn, const LatticeComplex &corr_nonlocal_fn, const SftMom &phases, bool compute_nonlocal, int t0)
Do slow SFT over hadron correlator data.
LatticePropagator nonlocalCurrentProp(const multi1d< LatticeColorMatrix > &u, int mu, const LatticePropagator &forw_prop, const LatticePropagator &anti_prop)
Compute nonlocal current propagator.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
Structures for wall-sink/source form-factors.