5 #include "qdp_config.h"
27 namespace SimpleHadronOperatorEnv
29 std::map<std::string, HadronOperator<LatticeFermion>* (*)(
const GroupXML_t&)> Ops ;
33 std::istringstream xml_l(
p.xml);
34 XMLReader xmltop(xml_l);
35 QDPIO::cout <<
"Baryon state is = " <<
p.id ;
36 QDPIO::cout << std::endl;
38 read(xmltop,
"DiqGamma",DiqGammaStr);
39 if(DiqGammaStr ==
"CG5"){
42 else if(DiqGammaStr ==
"CGmu"){
48 throw "Unknown diquark operator "+DiqGammaStr ;
54 multi1d<LatticeComplex>
61 multi1d<LatticeComplex>
d(Ns);
64 for(
int k=0;
k < Ns; ++
k)
68 for(
int j=0;
j < Ns; ++
j)
70 for(
int i=0;
i < Ns; ++
i)
73 LatticeComplex b_oper = colorContract(peekSpin(
q[0],
i),
103 HadronOperator<LatticeFermion>*
baryon(
const GroupXML_t& gxml){
104 return new Baryon(gxml);
Baryon spin and projector matrices.
Factory for producing baryon operators.
Baryon()
Hide partial constructor.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
void baryon(const LatticePropagator &quark_propagator, const SftMom &phases, int t0, int bc_spec, bool time_rev, XMLWriter &xml, const std::string &xml_group)
Baryon 2-pt functions.
All link smearing constructors.
Factory for producing link smearing objects.
bool registerAll()
Register all the factories.
static bool registered
Local registration flag.
SpinMatrix Cgmu(int k)
C g_\mu = \gamma_4 \gamma_2 \gamma_\mu.
SpinMatrix Cg5()
C g_5 = C gamma_5 = Gamma(5)
multi1d< Hadron2PtContraction_t > operator()(const multi1d< LatticeColorMatrix > &u)
LatticePropagator di_quark
Asqtad Staggered-Dirac operator.
All quark smearing constructors.
Factory for producing quark smearing objects.
Construct simple hadron operators.