8 #error "DEPRECATED - TAKEN OUT OF MAKEFILE"
14 #include "meas/smear/sink_smear2.h"
30 namespace InlineSpectrumQllEnv
64 XMLReader paramtop(xml, path);
67 read(paramtop,
"version", version);
89 QDPIO::cerr <<
"Input parameter version " << version <<
" unsupported." << std::endl;
102 QDPIO::cerr <<
"wvf_param size inconsistent with wvfintpar size" << std::endl;
117 write(xml,
"version", version);
131 write(xml,
"nrow", Layout::lattSize());
140 XMLReader inputtop(xml, path);
165 XMLReader paramtop(xml_in, path);
167 if (paramtop.count(
"Frequency") == 1)
179 if (paramtop.count(
"xml_file") != 0)
186 QDPIO::cerr << __func__ <<
": Caught Exception reading XML: " << e << std::endl;
215 push(xml_out,
"spectrumQll_w");
216 write(xml_out,
"update_no", update_no);
217 write(xml_out,
"xml_file", xml_file);
220 XMLFileWriter xml(xml_file);
221 func(update_no, xml);
225 func(update_no, xml_out);
242 XMLBufferWriter gauge_xml;
248 catch( std::bad_cast )
260 const multi1d<LatticeColorMatrix>&
u =
263 push(xml_out,
"spectrumQll_w");
264 write(xml_out,
"update_no", update_no);
273 QDPIO::cerr <<
"wvf_param size inconsistent with prop_ids size" << std::endl;
277 QDPIO::cout << std::endl <<
" Gauge group: SU(" << Nc <<
")" << std::endl;
279 QDPIO::cout <<
" volume: " << Layout::lattSize()[0];
280 for (
int i=1;
i<
Nd; ++
i) {
281 QDPIO::cout <<
" x " << Layout::lattSize()[
i];
283 QDPIO::cout << std::endl;
291 write(xml_out,
"Config_info", gauge_xml);
293 push(xml_out,
"Output_version");
294 write(xml_out,
"out_version", 2);
299 MesPlq(xml_out,
"Observables",
u);
303 push(xml_array,
"Wilson_hadron_measurements");
312 QDPIO::cout <<
"Attempt to read propagator info" << std::endl;
316 LatticePropagator& prop_tmp =
320 XMLReader prop_file_xml, prop_record_xml;
328 read(prop_record_xml,
"/Propagator/PropSource", source_header);
331 catch (std::bad_cast)
344 const LatticePropagator& quark_propagator =
347 QDPIO::cout <<
"Propagator successfully read and parsed" << std::endl;
357 QDPIO::cout <<
"Try action and mass" << std::endl;
360 QDPIO::cout <<
"FermAct = " <<
prop_header.fermact.id << std::endl;
361 QDPIO::cout <<
"Mass = " <<
Mass << std::endl;
371 write(xml_array,
"loop", loop);
377 write(xml_array,
"PropSource", source_header);
382 multi1d<Double> forward_prop_corr = sumMulti(localNorm2(quark_propagator),
385 push(xml_array,
"Forward_prop_correlator");
386 write(xml_array,
"forward_prop_corr", forward_prop_corr);
395 if (source_header.
source.
id ==
"POINT_SOURCE")
397 else if (source_header.
source.
id ==
"SHELL_SOURCE")
399 else if (source_header.
source.
id ==
"WALL_SOURCE")
403 QDPIO::cerr <<
"Unsupported source type" << std::endl;
411 multi1d<LatticeColorMatrix> u_link_smr(
Nd);
417 Real BlkAccu = 1.0e-5;
421 multi1d<LatticeColorMatrix> u_tmp(
Nd);
429 u_tmp[
mu] = u_link_smr[
mu];
433 QDPIO::cout <<
"Gauge field APE-smeared!" << std::endl;
459 LatticePropagator quark_prop_smr;
460 quark_prop_smr = quark_propagator;
461 sink_smear2(u_link_smr, quark_prop_smr,
485 LatticePropagator wall_quark_prop;
486 wall_qprop(wall_quark_prop, quark_propagator, phases);
511 << snoop.getTimeInSeconds()
512 <<
" secs" << std::endl;
Inline measurement factory.
Heavy Baryon (Qll) 2-pt function : Orginos and Savage.
Inline measurement of static-light-light spectrum.
InlineSpectrumQllParams params
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
void func(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
Fourier transform phase factor support.
const Set & getSet() const
The set to be used in sumMulti.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void wall_qprop(LatticePropagator &wall_quark_prop, const LatticePropagator &quark_propagator, const SftMom &phases)
Construct a wall-sink propagator:
void Qll(const multi1d< LatticeColorMatrix > &u, const LatticePropagator &quark_prop1, const LatticePropagator &quark_prop2, const multi1d< int > &src_coord, const SftMom &phases, XMLWriter &xml, const std::string &xml_group)
Lambdaq and SigmaQ 2-pt functions.
void Qlbar(const multi1d< LatticeColorMatrix > &u, const LatticePropagator &quark_propagator, const multi1d< int > &src_coord, const SftMom &phases, XMLWriter &xml, const std::string &xml_group, const int bc)
Heavy-light meson 2-pt function.
void proginfo(XMLWriter &xml)
Print out basic information about this program.
std::string makeXMLFileName(std::string xml_file, unsigned long update_no)
Return a xml file name for inline measurements.
void APE_Smear(const multi1d< LatticeColorMatrix > &u, LatticeColorMatrix &u_smear, int mu, int bl_level, const Real &sm_fact, const Real &BlkAccu, int BlkMax, int j_decay)
Construct APE smeared links from:
ForwardProp_t prop_header
Inline spectrum calculations.
Heavy light meson (Qlbar) 2-pt function : Orginos and Savage.
Calculates the antihermitian field strength tensor iF(mu,nu)
Named object function std::map.
static bool registered
Local registration flag.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Real getMass(const GroupXML_t &fermact)
Given a fermion action in std::string form, return the Mass.
static multi1d< LatticeColorMatrix > u
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > const multi1d< Real > & Mass
push(xml_out,"Condensates")
void write(XMLWriter &xml, const std::string &path, const InlineSpectrumQllParams::NamedObject_t &input)
Propagator output.
multi1d< int > getFermActBoundary(const GroupXML_t &fermact)
Given a fermion action in std::string form, return the boundary.
void MesPlq(const multi1d< LatticeColorMatrixF3 > &u, multi2d< Double > &plane_plaq, Double &link)
Various parameter structs and reader/writers.
Print out basic info about this program.
Routines associated with Chroma propagator IO.
Fourier transform phase factor support.
multi1d< std::string > prop_ids
multi1d< int > Qsrc_coord
multi1d< Real > wvf_param
void write(XMLWriter &xml_out, const std::string &path)
InlineSpectrumQllParams()
struct Chroma::InlineSpectrumQllParams::NamedObject_t named_obj
struct Chroma::InlineSpectrumQllParams::Param_t param
Propagator source construction parameters.
Take the traceless antihermitian projection of a color matrix.
Construct a wall-sink propagator.