111 void mesons(
const LatticePropagator& quark_prop_1,
112 const LatticePropagator& quark_prop_2,
125 LatticePropagator anti_quark_prop = Gamma(
G5) * quark_prop_2 * Gamma(
G5);
135 XMLArrayWriter xml_gamma(xml,Ns*Ns);
136 push(xml_gamma, xml_group);
138 for (
int gamma_value=0; gamma_value < (Ns*Ns); ++gamma_value)
141 write(xml_gamma,
"gamma_value", gamma_value);
144 LatticeComplex corr_fn;
145 corr_fn = trace(adj(anti_quark_prop) * (Gamma(gamma_value) *
146 quark_prop_1 * Gamma(gamma_value)));
148 multi2d<DComplex> hsum;
149 hsum = phases.
sft(corr_fn);
152 XMLArrayWriter xml_sink_mom(xml_gamma,phases.
numMom());
153 push(xml_sink_mom,
"momenta");
155 for (
int sink_mom_num=0; sink_mom_num < phases.
numMom(); ++sink_mom_num)
158 write(xml_sink_mom,
"sink_mom_num", sink_mom_num);
159 write(xml_sink_mom,
"sink_mom", phases.
numToMom(sink_mom_num));
161 multi1d<Real> mesprop(length);
162 for (
int t=0;
t < length; ++
t)
164 int t_eff = (
t -
t0 + length) % length;
165 mesprop[t_eff] = real(hsum[sink_mom_num][
t]);
168 write(xml_sink_mom,
"mesprop", mesprop);
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 mesons(const LatticePropagator &quark_prop_1, const LatticePropagator &quark_prop_2, const SftMom &phases, int t0, XMLWriter &xml, const std::string &xml_group)
Meson 2-pt functions.
Asqtad Staggered-Dirac operator.
push(xml_out,"Condensates")
Fourier transform phase factor support.