mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Sigma to Nucleon contractions
This commit is contained in:
parent
ac614cbc53
commit
421a4395af
@ -41,9 +41,12 @@ public:
|
|||||||
|
|
||||||
typedef typename FImpl::SitePropagator pobj;
|
typedef typename FImpl::SitePropagator pobj;
|
||||||
typedef typename ComplexField::vector_object vobj;
|
typedef typename ComplexField::vector_object vobj;
|
||||||
|
|
||||||
|
typedef Lattice<iSpinMatrix<typename FImpl::Simd>> SpinMatrixField;
|
||||||
|
typedef typename SpinMatrixField::vector_object sobj;
|
||||||
|
|
||||||
static constexpr int epsilon[6][3] = {{0,1,2},{1,2,0},{2,0,1},{0,2,1},{2,1,0},{1,0,2}};
|
static constexpr int epsilon[6][3] = {{0,1,2},{1,2,0},{2,0,1},{0,2,1},{2,1,0},{1,0,2}};
|
||||||
static constexpr Complex epsilon_sgn[6]= {1,1,1,-1,-1,-1};
|
static constexpr int epsilon_sgn[6]= {1,1,1,-1,-1,-1};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
template <class mobj, class robj>
|
template <class mobj, class robj>
|
||||||
@ -81,12 +84,70 @@ public:
|
|||||||
const char * quarks_right,
|
const char * quarks_right,
|
||||||
const int parity,
|
const int parity,
|
||||||
robj &result);
|
robj &result);
|
||||||
|
private:
|
||||||
|
template <class mobj, class mobj2, class robj>
|
||||||
|
static void Sigma_to_Nucleon_Q1_Eye_site(const mobj &Dq_loop,
|
||||||
|
const mobj2 &Du_spec,
|
||||||
|
const mobj &Dd_xf,
|
||||||
|
const mobj &Ds_xi,
|
||||||
|
const Gamma Gamma_H,
|
||||||
|
const Gamma GammaB_sigma,
|
||||||
|
const Gamma GammaB_nucl,
|
||||||
|
const int parity,
|
||||||
|
robj &result);
|
||||||
|
template <class mobj, class mobj2, class robj>
|
||||||
|
static void Sigma_to_Nucleon_Q1_NonEye_site(const mobj &Du_xi,
|
||||||
|
const mobj &Du_xf,
|
||||||
|
const mobj2 &Du_spec,
|
||||||
|
const mobj &Dd_xf,
|
||||||
|
const mobj &Ds_xi,
|
||||||
|
const Gamma Gamma_H,
|
||||||
|
const Gamma GammaB_sigma,
|
||||||
|
const Gamma GammaB_nucl,
|
||||||
|
const int parity,
|
||||||
|
robj &result);
|
||||||
|
|
||||||
|
|
||||||
|
template <class mobj, class mobj2, class robj>
|
||||||
|
static void Sigma_to_Nucleon_Q2_Eye_site(const mobj &Dq_loop,
|
||||||
|
const mobj2 &Du_spec,
|
||||||
|
const mobj &Dd_xf,
|
||||||
|
const mobj &Ds_xi,
|
||||||
|
const Gamma Gamma_H,
|
||||||
|
const Gamma GammaB_sigma,
|
||||||
|
const Gamma GammaB_nucl,
|
||||||
|
const int parity,
|
||||||
|
robj &result);
|
||||||
|
template <class mobj, class mobj2, class robj>
|
||||||
|
static void Sigma_to_Nucleon_Q2_NonEye_site(const mobj &Du_xi,
|
||||||
|
const mobj &Du_xf,
|
||||||
|
const mobj2 &Du_spec,
|
||||||
|
const mobj &Dd_xf,
|
||||||
|
const mobj &Ds_xi,
|
||||||
|
const Gamma Gamma_H,
|
||||||
|
const Gamma GammaB_sigma,
|
||||||
|
const Gamma GammaB_nucl,
|
||||||
|
const int parity,
|
||||||
|
robj &result);
|
||||||
|
public:
|
||||||
|
template <class mobj>
|
||||||
|
static void Sigma_to_Nucleon(const PropagatorField &qq_xi,
|
||||||
|
const PropagatorField &qq_xf,
|
||||||
|
const mobj &Du_spec,
|
||||||
|
const PropagatorField &qd_xf,
|
||||||
|
const PropagatorField &qs_xi,
|
||||||
|
const Gamma Gamma_H,
|
||||||
|
const Gamma GammaB_sigma,
|
||||||
|
const Gamma GammaB_nucl,
|
||||||
|
const int parity,
|
||||||
|
const std::string op,
|
||||||
|
SpinMatrixField &stn_corr);
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class FImpl>
|
template <class FImpl>
|
||||||
constexpr int BaryonUtils<FImpl>::epsilon[6][3];
|
constexpr int BaryonUtils<FImpl>::epsilon[6][3];
|
||||||
template <class FImpl>
|
template <class FImpl>
|
||||||
constexpr Complex BaryonUtils<FImpl>::epsilon_sgn[6];
|
constexpr int BaryonUtils<FImpl>::epsilon_sgn[6];
|
||||||
|
|
||||||
template <class FImpl>
|
template <class FImpl>
|
||||||
template <class mobj, class robj>
|
template <class mobj, class robj>
|
||||||
@ -123,7 +184,7 @@ void BaryonUtils<FImpl>::baryon_site(const mobj &D1,
|
|||||||
for (int alpha_right=0; alpha_right<Ns; alpha_right++){
|
for (int alpha_right=0; alpha_right<Ns; alpha_right++){
|
||||||
for (int beta_left=0; beta_left<Ns; beta_left++){
|
for (int beta_left=0; beta_left<Ns; beta_left++){
|
||||||
for (int gamma_left=0; gamma_left<Ns; gamma_left++){
|
for (int gamma_left=0; gamma_left<Ns; gamma_left++){
|
||||||
result()()() += epsilon_sgn[ie_left] * epsilon_sgn[ie_right] * pD1()(gamma_left,gamma_left)(c_right,c_left)*D2g()(alpha_right,beta_left)(a_right,a_left)*gD3()(alpha_right,beta_left)(b_right,b_left);
|
result()()() += static_cast<Complex>(epsilon_sgn[ie_left] * epsilon_sgn[ie_right]) * pD1()(gamma_left,gamma_left)(c_right,c_left)*D2g()(alpha_right,beta_left)(a_right,a_left)*gD3()(alpha_right,beta_left)(b_right,b_left);
|
||||||
}}}
|
}}}
|
||||||
}
|
}
|
||||||
//This is the \delta_{456}^{231} part
|
//This is the \delta_{456}^{231} part
|
||||||
@ -132,7 +193,7 @@ void BaryonUtils<FImpl>::baryon_site(const mobj &D1,
|
|||||||
for (int alpha_right=0; alpha_right<Ns; alpha_right++){
|
for (int alpha_right=0; alpha_right<Ns; alpha_right++){
|
||||||
for (int beta_left=0; beta_left<Ns; beta_left++){
|
for (int beta_left=0; beta_left<Ns; beta_left++){
|
||||||
for (int gamma_left=0; gamma_left<Ns; gamma_left++){
|
for (int gamma_left=0; gamma_left<Ns; gamma_left++){
|
||||||
result()()() += epsilon_sgn[ie_left] * epsilon_sgn[ie_right] * pD1g()(gamma_left,beta_left)(c_right,a_left)*D2()(alpha_right,beta_left)(a_right,b_left)*gD3()(alpha_right,gamma_left)(b_right,c_left);
|
result()()() += static_cast<Complex>(epsilon_sgn[ie_left] * epsilon_sgn[ie_right]) * pD1g()(gamma_left,beta_left)(c_right,a_left)*D2()(alpha_right,beta_left)(a_right,b_left)*gD3()(alpha_right,gamma_left)(b_right,c_left);
|
||||||
}}}
|
}}}
|
||||||
}
|
}
|
||||||
//This is the \delta_{456}^{312} part
|
//This is the \delta_{456}^{312} part
|
||||||
@ -141,7 +202,7 @@ void BaryonUtils<FImpl>::baryon_site(const mobj &D1,
|
|||||||
for (int alpha_right=0; alpha_right<Ns; alpha_right++){
|
for (int alpha_right=0; alpha_right<Ns; alpha_right++){
|
||||||
for (int beta_left=0; beta_left<Ns; beta_left++){
|
for (int beta_left=0; beta_left<Ns; beta_left++){
|
||||||
for (int gamma_left=0; gamma_left<Ns; gamma_left++){
|
for (int gamma_left=0; gamma_left<Ns; gamma_left++){
|
||||||
result()()() += epsilon_sgn[ie_left] * epsilon_sgn[ie_right] * pD1()(gamma_left,beta_left)(c_right,b_left)*D2()(alpha_right,gamma_left)(a_right,c_left)*gD3g()(alpha_right,beta_left)(b_right,a_left);
|
result()()() += static_cast<Complex>(epsilon_sgn[ie_left] * epsilon_sgn[ie_right]) * pD1()(gamma_left,beta_left)(c_right,b_left)*D2()(alpha_right,gamma_left)(a_right,c_left)*gD3g()(alpha_right,beta_left)(b_right,a_left);
|
||||||
}}}
|
}}}
|
||||||
}
|
}
|
||||||
//This is the \delta_{456}^{132} part
|
//This is the \delta_{456}^{132} part
|
||||||
@ -150,7 +211,7 @@ void BaryonUtils<FImpl>::baryon_site(const mobj &D1,
|
|||||||
for (int alpha_right=0; alpha_right<Ns; alpha_right++){
|
for (int alpha_right=0; alpha_right<Ns; alpha_right++){
|
||||||
for (int beta_left=0; beta_left<Ns; beta_left++){
|
for (int beta_left=0; beta_left<Ns; beta_left++){
|
||||||
for (int gamma_left=0; gamma_left<Ns; gamma_left++){
|
for (int gamma_left=0; gamma_left<Ns; gamma_left++){
|
||||||
result()()() -= epsilon_sgn[ie_left] * epsilon_sgn[ie_right] * pD1()(gamma_left,gamma_left)(c_right,c_left)*D2()(alpha_right,beta_left)(a_right,b_left)*gD3g()(alpha_right,beta_left)(b_right,a_left);
|
result()()() -= static_cast<Complex>(epsilon_sgn[ie_left] * epsilon_sgn[ie_right]) * pD1()(gamma_left,gamma_left)(c_right,c_left)*D2()(alpha_right,beta_left)(a_right,b_left)*gD3g()(alpha_right,beta_left)(b_right,a_left);
|
||||||
}}}
|
}}}
|
||||||
}
|
}
|
||||||
//This is the \delta_{456}^{321} part
|
//This is the \delta_{456}^{321} part
|
||||||
@ -159,7 +220,7 @@ void BaryonUtils<FImpl>::baryon_site(const mobj &D1,
|
|||||||
for (int alpha_right=0; alpha_right<Ns; alpha_right++){
|
for (int alpha_right=0; alpha_right<Ns; alpha_right++){
|
||||||
for (int beta_left=0; beta_left<Ns; beta_left++){
|
for (int beta_left=0; beta_left<Ns; beta_left++){
|
||||||
for (int gamma_left=0; gamma_left<Ns; gamma_left++){
|
for (int gamma_left=0; gamma_left<Ns; gamma_left++){
|
||||||
result()()() -= epsilon_sgn[ie_left] * epsilon_sgn[ie_right] * pD1()(gamma_left,beta_left)(c_right,b_left)*D2g()(alpha_right,beta_left)(a_right,a_left)*gD3()(alpha_right,gamma_left)(b_right,c_left);
|
result()()() -= static_cast<Complex>(epsilon_sgn[ie_left] * epsilon_sgn[ie_right]) * pD1()(gamma_left,beta_left)(c_right,b_left)*D2g()(alpha_right,beta_left)(a_right,a_left)*gD3()(alpha_right,gamma_left)(b_right,c_left);
|
||||||
}}}
|
}}}
|
||||||
}
|
}
|
||||||
//This is the \delta_{456}^{213} part
|
//This is the \delta_{456}^{213} part
|
||||||
@ -168,7 +229,7 @@ void BaryonUtils<FImpl>::baryon_site(const mobj &D1,
|
|||||||
for (int alpha_right=0; alpha_right<Ns; alpha_right++){
|
for (int alpha_right=0; alpha_right<Ns; alpha_right++){
|
||||||
for (int beta_left=0; beta_left<Ns; beta_left++){
|
for (int beta_left=0; beta_left<Ns; beta_left++){
|
||||||
for (int gamma_left=0; gamma_left<Ns; gamma_left++){
|
for (int gamma_left=0; gamma_left<Ns; gamma_left++){
|
||||||
result()()() -= epsilon_sgn[ie_left] * epsilon_sgn[ie_right] * pD1g()(gamma_left,beta_left)(c_right,a_left)*D2()(alpha_right,gamma_left)(a_right,c_left)*gD3()(alpha_right,beta_left)(b_right,b_left);
|
result()()() -= static_cast<Complex>(epsilon_sgn[ie_left] * epsilon_sgn[ie_right]) * pD1g()(gamma_left,beta_left)(c_right,a_left)*D2()(alpha_right,gamma_left)(a_right,c_left)*gD3()(alpha_right,beta_left)(b_right,b_left);
|
||||||
}}}
|
}}}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -249,4 +310,246 @@ void BaryonUtils<FImpl>::ContractBaryons_Sliced(const mobj &D1,
|
|||||||
result=Zero();
|
result=Zero();
|
||||||
baryon_site(D1,D2,D3,GammaA_left,GammaB_left,GammaA_right,GammaB_right,parity,wick_contraction,result);
|
baryon_site(D1,D2,D3,GammaA_left,GammaB_left,GammaA_right,GammaB_right,parity,wick_contraction,result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* End of Baryon 2pt-function code. *
|
||||||
|
* *
|
||||||
|
* The following code is for Sigma -> N rare hypeon decays *
|
||||||
|
**********************************************************************/
|
||||||
|
|
||||||
|
/* Dq_loop is a quark line from x_H to x_H
|
||||||
|
* Du_spec is a quark line from x_i to x_f
|
||||||
|
* Dd_xf is a quark line from x_H to x_f
|
||||||
|
* Ds_xi is a quark line from x_H to x_i */
|
||||||
|
template <class FImpl>
|
||||||
|
template <class mobj, class mobj2, class robj>
|
||||||
|
void BaryonUtils<FImpl>::Sigma_to_Nucleon_Q1_Eye_site(const mobj &Dq_loop,
|
||||||
|
const mobj2 &Du_spec,
|
||||||
|
const mobj &Dd_xf,
|
||||||
|
const mobj &Ds_xi,
|
||||||
|
const Gamma Gamma_H,
|
||||||
|
const Gamma GammaB_sigma,
|
||||||
|
const Gamma GammaB_nucl,
|
||||||
|
const int parity,
|
||||||
|
robj &result)
|
||||||
|
{
|
||||||
|
|
||||||
|
Gamma g5(Gamma::Algebra::Gamma5);
|
||||||
|
|
||||||
|
auto DuG = Du_spec * GammaB_nucl;
|
||||||
|
// Gamma^B * Ds * \gamma_\mu^L * (\gamma_5 * Dd^\dagger * \gamma_5)
|
||||||
|
auto GDsGDd = GammaB_sigma * Ds_xi * Gamma_H * g5 * adj(Dd_xf) * g5;
|
||||||
|
// Dq_loop * \gamma_\mu^L
|
||||||
|
auto DqG = Dq_loop * Gamma_H;
|
||||||
|
|
||||||
|
for (int ie_n=0; ie_n < 6 ; ie_n++){
|
||||||
|
int a_n = epsilon[ie_n][0]; //a
|
||||||
|
int b_n = epsilon[ie_n][1]; //b
|
||||||
|
int c_n = epsilon[ie_n][2]; //c
|
||||||
|
for (int ie_s=0; ie_s < 6 ; ie_s++){
|
||||||
|
int a_s = epsilon[ie_s][0]; //a'
|
||||||
|
int b_s = epsilon[ie_s][1]; //b'
|
||||||
|
int c_s = epsilon[ie_s][2]; //c'
|
||||||
|
for (int j=0; j<Nc; j++){
|
||||||
|
for (int alpha_s=0; alpha_s<Ns; alpha_s++){
|
||||||
|
for (int beta_n=0; beta_n<Ns; beta_n++){
|
||||||
|
for (int tau2=0; tau2<Ns; tau2++){
|
||||||
|
for (int gamma_s=0; gamma_s<Ns; gamma_s++){
|
||||||
|
for (int gamma_n=0; gamma_n<Ns; gamma_n++){
|
||||||
|
result()(gamma_s,gamma_n)() += static_cast<Complex>(epsilon_sgn[ie_n] * epsilon_sgn[ie_s]) * GDsGDd()(alpha_s,beta_n)(b_s,b_n) * DqG()(tau2,tau2)(j,j) * DuG()(alpha_s, beta_n)(a_s,a_n) * Du_spec()(gamma_s,gamma_n)(c_s,c_n);
|
||||||
|
result()(gamma_s,gamma_n)() -= static_cast<Complex>(epsilon_sgn[ie_n] * epsilon_sgn[ie_s]) * GDsGDd()(alpha_s,beta_n)(b_s,b_n) * DqG()(tau2,tau2)(j,j) * DuG()(gamma_s, beta_n)(c_s,a_n) * Du_spec()(alpha_s,gamma_n)(a_s,c_n);
|
||||||
|
}}}}}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Du_xi is a quark line from x_H to x_i
|
||||||
|
* Du_xf is a quark line from x_H to x_f
|
||||||
|
* Du_spec is a quark line from x_i to x_f
|
||||||
|
* Dd_xf is a quark line from x_H to x_f
|
||||||
|
* Ds_xi is a quark line from x_H to x_i */
|
||||||
|
template <class FImpl>
|
||||||
|
template <class mobj, class mobj2, class robj>
|
||||||
|
void BaryonUtils<FImpl>::Sigma_to_Nucleon_Q1_NonEye_site(const mobj &Du_xi,
|
||||||
|
const mobj &Du_xf,
|
||||||
|
const mobj2 &Du_spec,
|
||||||
|
const mobj &Dd_xf,
|
||||||
|
const mobj &Ds_xi,
|
||||||
|
const Gamma Gamma_H,
|
||||||
|
const Gamma GammaB_sigma,
|
||||||
|
const Gamma GammaB_nucl,
|
||||||
|
const int parity,
|
||||||
|
robj &result)
|
||||||
|
{
|
||||||
|
|
||||||
|
Gamma g5(Gamma::Algebra::Gamma5);
|
||||||
|
|
||||||
|
auto DuG = Du_spec * GammaB_nucl;
|
||||||
|
auto adjDu = g5 * adj(Du_xf) * g5;
|
||||||
|
auto adjDuG = adjDu * GammaB_nucl;
|
||||||
|
// Gamma^B * Ds * \gamma_\mu^L * (\gamma_5 * Dd^\dagger * \gamma_5)
|
||||||
|
auto GDsGDd = GammaB_sigma * Ds_xi * Gamma_H * g5 * adj(Dd_xf) * g5;
|
||||||
|
// Dq_loop * \gamma_\mu^L
|
||||||
|
auto DuGH = Du_xi * Gamma_H;
|
||||||
|
|
||||||
|
for (int ie_n=0; ie_n < 6 ; ie_n++){
|
||||||
|
int a_n = epsilon[ie_n][0]; //a
|
||||||
|
int b_n = epsilon[ie_n][1]; //b
|
||||||
|
int c_n = epsilon[ie_n][2]; //c
|
||||||
|
for (int ie_s=0; ie_s < 6 ; ie_s++){
|
||||||
|
int a_s = epsilon[ie_s][0]; //a'
|
||||||
|
int b_s = epsilon[ie_s][1]; //b'
|
||||||
|
int c_s = epsilon[ie_s][2]; //c'
|
||||||
|
for (int j=0; j<Nc; j++){
|
||||||
|
for (int alpha_s=0; alpha_s<Ns; alpha_s++){
|
||||||
|
for (int beta_n=0; beta_n<Ns; beta_n++){
|
||||||
|
for (int tau2=0; tau2<Ns; tau2++){
|
||||||
|
for (int gamma_s=0; gamma_s<Ns; gamma_s++){
|
||||||
|
for (int gamma_n=0; gamma_n<Ns; gamma_n++){
|
||||||
|
result()(gamma_s,gamma_n)() += static_cast<Complex>(epsilon_sgn[ie_n] * epsilon_sgn[ie_s]) * GDsGDd()(alpha_s,beta_n)(b_s,b_n) * DuGH()(alpha_s,tau2)(a_s,j) * DuG()(gamma_s, beta_n)(c_s,a_n) * adjDu()(tau2,gamma_n)(j,c_n);
|
||||||
|
result()(gamma_s,gamma_n)() += static_cast<Complex>(epsilon_sgn[ie_n] * epsilon_sgn[ie_s]) * GDsGDd()(alpha_s,beta_n)(b_s,b_n) * DuGH()(gamma_s,tau2)(c_s,j) * adjDuG()(tau2, beta_n)(j,a_n) * Du_spec()(alpha_s,gamma_n)(a_s,c_n);
|
||||||
|
result()(gamma_s,gamma_n)() -= static_cast<Complex>(epsilon_sgn[ie_n] * epsilon_sgn[ie_s]) * GDsGDd()(alpha_s,beta_n)(b_s,b_n) * DuGH()(alpha_s,tau2)(a_s,j) * adjDuG()(tau2, beta_n)(j,a_n) * Du_spec()(gamma_s,gamma_n)(c_s,c_n);
|
||||||
|
result()(gamma_s,gamma_n)() -= static_cast<Complex>(epsilon_sgn[ie_n] * epsilon_sgn[ie_s]) * GDsGDd()(alpha_s,beta_n)(b_s,b_n) * DuGH()(gamma_s,tau2)(c_s,j) * DuG()(alpha_s, beta_n)(a_s,a_n) * adjDu()(tau2,gamma_n)(j,c_n);
|
||||||
|
}}}}}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//Equivalent to "One-trace"
|
||||||
|
template <class FImpl>
|
||||||
|
template <class mobj, class mobj2, class robj>
|
||||||
|
void BaryonUtils<FImpl>::Sigma_to_Nucleon_Q2_Eye_site(const mobj &Dq_loop,
|
||||||
|
const mobj2 &Du_spec,
|
||||||
|
const mobj &Dd_xf,
|
||||||
|
const mobj &Ds_xi,
|
||||||
|
const Gamma Gamma_H,
|
||||||
|
const Gamma GammaB_sigma,
|
||||||
|
const Gamma GammaB_nucl,
|
||||||
|
const int parity,
|
||||||
|
robj &result)
|
||||||
|
{
|
||||||
|
|
||||||
|
Gamma g5(Gamma::Algebra::Gamma5);
|
||||||
|
|
||||||
|
auto DuG = Du_spec * GammaB_nucl;
|
||||||
|
// Gamma^B * Ds * \gamma_\mu^L
|
||||||
|
auto GDsG = GammaB_sigma * Ds_xi * Gamma_H;
|
||||||
|
// Dq_loop * \gamma_\mu^L * (\gamma_5 * Dd^\dagger * \gamma_5)
|
||||||
|
auto DqGDd = Dq_loop * Gamma_H * g5 * adj(Dd_xf) * g5;
|
||||||
|
|
||||||
|
for (int ie_n=0; ie_n < 6 ; ie_n++){
|
||||||
|
int a_n = epsilon[ie_n][0]; //a
|
||||||
|
int b_n = epsilon[ie_n][1]; //b
|
||||||
|
int c_n = epsilon[ie_n][2]; //c
|
||||||
|
for (int ie_s=0; ie_s < 6 ; ie_s++){
|
||||||
|
int a_s = epsilon[ie_s][0]; //a'
|
||||||
|
int b_s = epsilon[ie_s][1]; //b'
|
||||||
|
int c_s = epsilon[ie_s][2]; //c'
|
||||||
|
for (int i=0; i<Nc; i++){
|
||||||
|
for (int alpha_s=0; alpha_s<Ns; alpha_s++){
|
||||||
|
for (int beta_n=0; beta_n<Ns; beta_n++){
|
||||||
|
for (int tau=0; tau<Ns; tau++){
|
||||||
|
for (int gamma_s=0; gamma_s<Ns; gamma_s++){
|
||||||
|
for (int gamma_n=0; gamma_n<Ns; gamma_n++){
|
||||||
|
result()(gamma_s,gamma_n)() -= static_cast<Complex>(epsilon_sgn[ie_n] * epsilon_sgn[ie_s]) * GDsG()(alpha_s,tau)(b_s,i) * DqGDd()(tau,beta_n)(i,b_n) * DuG()(alpha_s, beta_n)(a_s,a_n) * Du_spec()(gamma_s,gamma_n)(c_s,c_n);
|
||||||
|
result()(gamma_s,gamma_n)() += static_cast<Complex>(epsilon_sgn[ie_n] * epsilon_sgn[ie_s]) * GDsG()(alpha_s,tau)(b_s,i) * DqGDd()(tau,beta_n)(i,b_n) * DuG()(gamma_s, beta_n)(c_s,a_n) * Du_spec()(alpha_s,gamma_n)(a_s,c_n);
|
||||||
|
}}}}}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
template <class FImpl>
|
||||||
|
template <class mobj, class mobj2, class robj>
|
||||||
|
void BaryonUtils<FImpl>::Sigma_to_Nucleon_Q2_NonEye_site(const mobj &Du_xi,
|
||||||
|
const mobj &Du_xf,
|
||||||
|
const mobj2 &Du_spec,
|
||||||
|
const mobj &Dd_xf,
|
||||||
|
const mobj &Ds_xi,
|
||||||
|
const Gamma Gamma_H,
|
||||||
|
const Gamma GammaB_sigma,
|
||||||
|
const Gamma GammaB_nucl,
|
||||||
|
const int parity,
|
||||||
|
robj &result)
|
||||||
|
{
|
||||||
|
|
||||||
|
Gamma g5(Gamma::Algebra::Gamma5);
|
||||||
|
|
||||||
|
auto DuG = Du_spec * GammaB_nucl;
|
||||||
|
auto adjDu = g5 * adj(Du_xf) * g5;
|
||||||
|
auto adjDuG = adjDu * GammaB_nucl;
|
||||||
|
// Gamma^B * Ds * \gamma_\mu^L
|
||||||
|
auto GDsG = GammaB_sigma * Ds_xi * Gamma_H;
|
||||||
|
// Du * \gamma_\mu^L * (\gamma_5 * Dd^\dagger * \gamma_5)
|
||||||
|
auto DuGDd = Du_xi * Gamma_H * g5 * adj(Dd_xf) * g5;
|
||||||
|
|
||||||
|
for (int ie_n=0; ie_n < 6 ; ie_n++){
|
||||||
|
int a_n = epsilon[ie_n][0]; //a
|
||||||
|
int b_n = epsilon[ie_n][1]; //b
|
||||||
|
int c_n = epsilon[ie_n][2]; //c
|
||||||
|
for (int ie_s=0; ie_s < 6 ; ie_s++){
|
||||||
|
int a_s = epsilon[ie_s][0]; //a'
|
||||||
|
int b_s = epsilon[ie_s][1]; //b'
|
||||||
|
int c_s = epsilon[ie_s][2]; //c'
|
||||||
|
for (int i=0; i<Nc; i++){
|
||||||
|
for (int alpha_s=0; alpha_s<Ns; alpha_s++){
|
||||||
|
for (int beta_n=0; beta_n<Ns; beta_n++){
|
||||||
|
for (int tau=0; tau<Ns; tau++){
|
||||||
|
for (int gamma_s=0; gamma_s<Ns; gamma_s++){
|
||||||
|
for (int gamma_n=0; gamma_n<Ns; gamma_n++){
|
||||||
|
result()(gamma_s,gamma_n)() -= static_cast<Complex>(epsilon_sgn[ie_n] * epsilon_sgn[ie_s]) * GDsG()(alpha_s,tau)(b_s,i) * DuGDd()(alpha_s,beta_n)(a_s,b_n) * DuG()(gamma_s, beta_n)(c_s,a_n) * adjDu()(tau,gamma_n)(i,c_n);
|
||||||
|
result()(gamma_s,gamma_n)() -= static_cast<Complex>(epsilon_sgn[ie_n] * epsilon_sgn[ie_s]) * GDsG()(alpha_s,tau)(b_s,i) * DuGDd()(gamma_s,beta_n)(c_s,b_n) * adjDuG()(tau, beta_n)(i,a_n) * Du_spec()(alpha_s,gamma_n)(a_s,c_n);
|
||||||
|
result()(gamma_s,gamma_n)() += static_cast<Complex>(epsilon_sgn[ie_n] * epsilon_sgn[ie_s]) * GDsG()(alpha_s,tau)(b_s,i) * DuGDd()(alpha_s,beta_n)(a_s,b_n) * adjDuG()(tau, beta_n)(i,a_n) * Du_spec()(gamma_s,gamma_n)(c_s,c_n);
|
||||||
|
result()(gamma_s,gamma_n)() += static_cast<Complex>(epsilon_sgn[ie_n] * epsilon_sgn[ie_s]) * GDsG()(alpha_s,tau)(b_s,i) * DuGDd()(gamma_s,beta_n)(c_s,b_n) * DuG()(alpha_s, beta_n)(a_s,a_n) * adjDu()(tau,gamma_n)(i,c_n);
|
||||||
|
}}}}}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<class FImpl>
|
||||||
|
template <class mobj>
|
||||||
|
void BaryonUtils<FImpl>::Sigma_to_Nucleon(const PropagatorField &qq_xi,
|
||||||
|
const PropagatorField &qq_xf,
|
||||||
|
const mobj &Du_spec,
|
||||||
|
const PropagatorField &qd_xf,
|
||||||
|
const PropagatorField &qs_xi,
|
||||||
|
const Gamma Gamma_H,
|
||||||
|
const Gamma GammaB_sigma,
|
||||||
|
const Gamma GammaB_nucl,
|
||||||
|
const int parity,
|
||||||
|
const std::string op,
|
||||||
|
SpinMatrixField &stn_corr)
|
||||||
|
{
|
||||||
|
assert(parity==1 || parity == -1 && "Parity must be +1 or -1");
|
||||||
|
|
||||||
|
GridBase *grid = qs_xi.Grid();
|
||||||
|
|
||||||
|
auto vcorr= stn_corr.View();
|
||||||
|
auto vq_xi = qq_xi.View();
|
||||||
|
auto vq_xf = qq_xf.View();
|
||||||
|
auto vd_xf = qd_xf.View();
|
||||||
|
auto vs_xi = qs_xi.View();
|
||||||
|
|
||||||
|
// accelerator_for(ss, grid->oSites(), grid->Nsimd(), {
|
||||||
|
thread_for(ss,grid->oSites(),{
|
||||||
|
auto Dq_xi = vq_xi[ss];
|
||||||
|
auto Dq_xf = vq_xf[ss];
|
||||||
|
auto Dd_xf = vd_xf[ss];
|
||||||
|
auto Ds_xi = vs_xi[ss];
|
||||||
|
sobj result=Zero();
|
||||||
|
if(op == "Q1_NonEye"){
|
||||||
|
Sigma_to_Nucleon_Q1_NonEye_site(Dq_xi,Dq_xf,Du_spec,Dd_xf,Ds_xi,Gamma_H,GammaB_sigma,GammaB_nucl,parity,result);
|
||||||
|
} else if(op == "Q1_Eye"){
|
||||||
|
Sigma_to_Nucleon_Q1_Eye_site(Dq_xi,Du_spec,Dd_xf,Ds_xi,Gamma_H,GammaB_sigma,GammaB_nucl,parity,result);
|
||||||
|
} else if(op == "Q2_NonEye"){
|
||||||
|
Sigma_to_Nucleon_Q2_NonEye_site(Dq_xi,Dq_xf,Du_spec,Dd_xf,Ds_xi,Gamma_H,GammaB_sigma,GammaB_nucl,parity,result);
|
||||||
|
} else if(op == "Q2_Eye"){
|
||||||
|
Sigma_to_Nucleon_Q2_Eye_site(Dq_xi,Du_spec,Dd_xf,Ds_xi,Gamma_H,GammaB_sigma,GammaB_nucl,parity,result);
|
||||||
|
} else {
|
||||||
|
assert(0 && "Weak Operator not correctly specified");
|
||||||
|
}
|
||||||
|
vcorr[ss] = result;
|
||||||
|
} );//end loop over lattice sites
|
||||||
|
}
|
||||||
|
|
||||||
NAMESPACE_END(Grid);
|
NAMESPACE_END(Grid);
|
||||||
|
@ -272,7 +272,7 @@ struct Correlator: Serializable
|
|||||||
{
|
{
|
||||||
GRID_SERIALIZABLE_CLASS_MEMBERS(ARG(Correlator<Metadata, Scalar>),
|
GRID_SERIALIZABLE_CLASS_MEMBERS(ARG(Correlator<Metadata, Scalar>),
|
||||||
Metadata, info,
|
Metadata, info,
|
||||||
std::vector<Complex>, corr);
|
std::vector<Scalar>, corr);
|
||||||
};
|
};
|
||||||
|
|
||||||
END_HADRONS_NAMESPACE
|
END_HADRONS_NAMESPACE
|
||||||
|
@ -1,73 +1,76 @@
|
|||||||
#include <Hadrons/Modules/MFermion/GaugeProp.hpp>
|
|
||||||
#include <Hadrons/Modules/MFermion/EMLepton.hpp>
|
|
||||||
#include <Hadrons/Modules/MFermion/FreeProp.hpp>
|
|
||||||
#include <Hadrons/Modules/MIO/LoadCosmHol.hpp>
|
|
||||||
#include <Hadrons/Modules/MIO/LoadEigenPack.hpp>
|
|
||||||
#include <Hadrons/Modules/MIO/LoadA2AVectors.hpp>
|
|
||||||
#include <Hadrons/Modules/MIO/LoadA2AMatrixDiskVector.hpp>
|
|
||||||
#include <Hadrons/Modules/MIO/LoadCoarseEigenPack.hpp>
|
|
||||||
#include <Hadrons/Modules/MIO/LoadNersc.hpp>
|
|
||||||
#include <Hadrons/Modules/MIO/LoadBinary.hpp>
|
|
||||||
#include <Hadrons/Modules/MAction/ZMobiusDWF.hpp>
|
|
||||||
#include <Hadrons/Modules/MAction/MobiusDWF.hpp>
|
|
||||||
#include <Hadrons/Modules/MAction/Wilson.hpp>
|
|
||||||
#include <Hadrons/Modules/MAction/DWF.hpp>
|
|
||||||
#include <Hadrons/Modules/MAction/WilsonClover.hpp>
|
|
||||||
#include <Hadrons/Modules/MAction/ScaledDWF.hpp>
|
|
||||||
#include <Hadrons/Modules/MUtilities/RandomVectors.hpp>
|
|
||||||
#include <Hadrons/Modules/MUtilities/PrecisionCast.hpp>
|
#include <Hadrons/Modules/MUtilities/PrecisionCast.hpp>
|
||||||
#include <Hadrons/Modules/MNoise/TimeDilutedSpinColorDiagonal.hpp>
|
#include <Hadrons/Modules/MUtilities/RandomVectors.hpp>
|
||||||
#include <Hadrons/Modules/MNoise/FullVolumeSpinColorDiagonal.hpp>
|
|
||||||
#include <Hadrons/Modules/MContraction/DiscLoop.hpp>
|
|
||||||
#include <Hadrons/Modules/MContraction/Meson.hpp>
|
|
||||||
#include <Hadrons/Modules/MContraction/WeakMesonDecayKl2.hpp>
|
|
||||||
#include <Hadrons/Modules/MContraction/A2AMesonField.hpp>
|
|
||||||
#include <Hadrons/Modules/MContraction/WeakNonEye3pt.hpp>
|
|
||||||
#include <Hadrons/Modules/MContraction/Gamma3pt.hpp>
|
|
||||||
#include <Hadrons/Modules/MContraction/A2AAslashField.hpp>
|
|
||||||
#include <Hadrons/Modules/MContraction/A2AFourQuarkContraction.hpp>
|
|
||||||
#include <Hadrons/Modules/MContraction/Baryon.hpp>
|
|
||||||
#include <Hadrons/Modules/MContraction/WeakEye3pt.hpp>
|
|
||||||
#include <Hadrons/Modules/MContraction/A2ALoop.hpp>
|
|
||||||
#include <Hadrons/Modules/MSink/Point.hpp>
|
|
||||||
#include <Hadrons/Modules/MSink/Smear.hpp>
|
|
||||||
#include <Hadrons/Modules/MScalarSUN/StochFreeField.hpp>
|
|
||||||
#include <Hadrons/Modules/MScalarSUN/EMT.hpp>
|
|
||||||
#include <Hadrons/Modules/MScalarSUN/Utils.hpp>
|
|
||||||
#include <Hadrons/Modules/MScalarSUN/TwoPoint.hpp>
|
|
||||||
#include <Hadrons/Modules/MScalarSUN/TransProj.hpp>
|
|
||||||
#include <Hadrons/Modules/MScalarSUN/TwoPointNPR.hpp>
|
|
||||||
#include <Hadrons/Modules/MScalarSUN/TrPhi.hpp>
|
|
||||||
#include <Hadrons/Modules/MScalarSUN/Grad.hpp>
|
|
||||||
#include <Hadrons/Modules/MScalarSUN/TrMag.hpp>
|
|
||||||
#include <Hadrons/Modules/MScalarSUN/Div.hpp>
|
|
||||||
#include <Hadrons/Modules/MScalarSUN/TrKinetic.hpp>
|
|
||||||
#include <Hadrons/Modules/MNPR/Amputate.hpp>
|
|
||||||
#include <Hadrons/Modules/MNPR/FourQuark.hpp>
|
|
||||||
#include <Hadrons/Modules/MNPR/Bilinear.hpp>
|
|
||||||
#include <Hadrons/Modules/MSource/SeqAslash.hpp>
|
|
||||||
#include <Hadrons/Modules/MSource/Momentum.hpp>
|
|
||||||
#include <Hadrons/Modules/MSource/Z2.hpp>
|
|
||||||
#include <Hadrons/Modules/MSource/Point.hpp>
|
|
||||||
#include <Hadrons/Modules/MSource/Gauss.hpp>
|
|
||||||
#include <Hadrons/Modules/MSource/SeqConserved.hpp>
|
|
||||||
#include <Hadrons/Modules/MSource/Wall.hpp>
|
|
||||||
#include <Hadrons/Modules/MSource/SeqGamma.hpp>
|
|
||||||
#include <Hadrons/Modules/MSource/Convolution.hpp>
|
|
||||||
#include <Hadrons/Modules/MGauge/Random.hpp>
|
|
||||||
#include <Hadrons/Modules/MGauge/FundtoHirep.hpp>
|
#include <Hadrons/Modules/MGauge/FundtoHirep.hpp>
|
||||||
#include <Hadrons/Modules/MGauge/StochEm.hpp>
|
#include <Hadrons/Modules/MGauge/Electrify.hpp>
|
||||||
#include <Hadrons/Modules/MGauge/UnitEm.hpp>
|
|
||||||
#include <Hadrons/Modules/MGauge/GaugeFix.hpp>
|
#include <Hadrons/Modules/MGauge/GaugeFix.hpp>
|
||||||
#include <Hadrons/Modules/MGauge/StoutSmearing.hpp>
|
#include <Hadrons/Modules/MGauge/StoutSmearing.hpp>
|
||||||
#include <Hadrons/Modules/MGauge/Unit.hpp>
|
#include <Hadrons/Modules/MGauge/Unit.hpp>
|
||||||
#include <Hadrons/Modules/MGauge/Electrify.hpp>
|
#include <Hadrons/Modules/MGauge/UnitEm.hpp>
|
||||||
#include <Hadrons/Modules/MSolver/A2AVectors.hpp>
|
#include <Hadrons/Modules/MGauge/Random.hpp>
|
||||||
#include <Hadrons/Modules/MSolver/RBPrecCG.hpp>
|
#include <Hadrons/Modules/MGauge/StochEm.hpp>
|
||||||
#include <Hadrons/Modules/MSolver/LocalCoherenceLanczos.hpp>
|
|
||||||
#include <Hadrons/Modules/MSolver/Guesser.hpp>
|
#include <Hadrons/Modules/MSolver/Guesser.hpp>
|
||||||
#include <Hadrons/Modules/MSolver/MixedPrecisionRBPrecCG.hpp>
|
#include <Hadrons/Modules/MSolver/MixedPrecisionRBPrecCG.hpp>
|
||||||
|
#include <Hadrons/Modules/MSolver/A2AVectors.hpp>
|
||||||
|
#include <Hadrons/Modules/MSolver/LocalCoherenceLanczos.hpp>
|
||||||
#include <Hadrons/Modules/MSolver/A2AAslashVectors.hpp>
|
#include <Hadrons/Modules/MSolver/A2AAslashVectors.hpp>
|
||||||
|
#include <Hadrons/Modules/MSolver/RBPrecCG.hpp>
|
||||||
|
#include <Hadrons/Modules/MSource/Convolution.hpp>
|
||||||
|
#include <Hadrons/Modules/MSource/Point.hpp>
|
||||||
|
#include <Hadrons/Modules/MSource/Gauss.hpp>
|
||||||
|
#include <Hadrons/Modules/MSource/MomentumPhase.hpp>
|
||||||
|
#include <Hadrons/Modules/MSource/Z2.hpp>
|
||||||
|
#include <Hadrons/Modules/MSource/SeqAslash.hpp>
|
||||||
|
#include <Hadrons/Modules/MSource/SeqConserved.hpp>
|
||||||
|
#include <Hadrons/Modules/MSource/SeqGamma.hpp>
|
||||||
|
#include <Hadrons/Modules/MSource/Momentum.hpp>
|
||||||
|
#include <Hadrons/Modules/MSource/Wall.hpp>
|
||||||
|
#include <Hadrons/Modules/MNPR/Amputate.hpp>
|
||||||
|
#include <Hadrons/Modules/MNPR/Bilinear.hpp>
|
||||||
|
#include <Hadrons/Modules/MNPR/FourQuark.hpp>
|
||||||
|
#include <Hadrons/Modules/MContraction/Meson.hpp>
|
||||||
|
#include <Hadrons/Modules/MContraction/WeakMesonDecayKl2.hpp>
|
||||||
|
#include <Hadrons/Modules/MContraction/WeakNonEye3pt.hpp>
|
||||||
|
#include <Hadrons/Modules/MContraction/A2AFourQuarkContraction.hpp>
|
||||||
|
#include <Hadrons/Modules/MContraction/DiscLoop.hpp>
|
||||||
|
#include <Hadrons/Modules/MContraction/WeakEye3pt.hpp>
|
||||||
|
#include <Hadrons/Modules/MContraction/A2AAslashField.hpp>
|
||||||
|
#include <Hadrons/Modules/MContraction/Gamma3pt.hpp>
|
||||||
|
#include <Hadrons/Modules/MContraction/A2AMesonField.hpp>
|
||||||
|
#include <Hadrons/Modules/MContraction/SigmaToNucleonEye.hpp>
|
||||||
|
#include <Hadrons/Modules/MContraction/A2ALoop.hpp>
|
||||||
|
#include <Hadrons/Modules/MContraction/Baryon.hpp>
|
||||||
|
#include <Hadrons/Modules/MContraction/SigmaToNucleonNonEye.hpp>
|
||||||
|
#include <Hadrons/Modules/MScalar/FreeProp.hpp>
|
||||||
#include <Hadrons/Modules/MScalar/ChargedProp.hpp>
|
#include <Hadrons/Modules/MScalar/ChargedProp.hpp>
|
||||||
#include <Hadrons/Modules/MScalar/Scalar.hpp>
|
#include <Hadrons/Modules/MScalar/Scalar.hpp>
|
||||||
#include <Hadrons/Modules/MScalar/FreeProp.hpp>
|
#include <Hadrons/Modules/MSink/Point.hpp>
|
||||||
|
#include <Hadrons/Modules/MSink/Smear.hpp>
|
||||||
|
#include <Hadrons/Modules/MNoise/FullVolumeSpinColorDiagonal.hpp>
|
||||||
|
#include <Hadrons/Modules/MNoise/TimeDilutedSpinColorDiagonal.hpp>
|
||||||
|
#include <Hadrons/Modules/MIO/LoadBinary.hpp>
|
||||||
|
#include <Hadrons/Modules/MIO/LoadNersc.hpp>
|
||||||
|
#include <Hadrons/Modules/MIO/LoadEigenPack.hpp>
|
||||||
|
#include <Hadrons/Modules/MIO/LoadA2AMatrixDiskVector.hpp>
|
||||||
|
#include <Hadrons/Modules/MIO/LoadCoarseEigenPack.hpp>
|
||||||
|
#include <Hadrons/Modules/MIO/LoadA2AVectors.hpp>
|
||||||
|
#include <Hadrons/Modules/MIO/LoadCosmHol.hpp>
|
||||||
|
#include <Hadrons/Modules/MScalarSUN/TwoPointNPR.hpp>
|
||||||
|
#include <Hadrons/Modules/MScalarSUN/TransProj.hpp>
|
||||||
|
#include <Hadrons/Modules/MScalarSUN/TwoPoint.hpp>
|
||||||
|
#include <Hadrons/Modules/MScalarSUN/TrPhi.hpp>
|
||||||
|
#include <Hadrons/Modules/MScalarSUN/Utils.hpp>
|
||||||
|
#include <Hadrons/Modules/MScalarSUN/TrMag.hpp>
|
||||||
|
#include <Hadrons/Modules/MScalarSUN/EMT.hpp>
|
||||||
|
#include <Hadrons/Modules/MScalarSUN/Grad.hpp>
|
||||||
|
#include <Hadrons/Modules/MScalarSUN/StochFreeField.hpp>
|
||||||
|
#include <Hadrons/Modules/MScalarSUN/Div.hpp>
|
||||||
|
#include <Hadrons/Modules/MScalarSUN/TrKinetic.hpp>
|
||||||
|
#include <Hadrons/Modules/MAction/ZMobiusDWF.hpp>
|
||||||
|
#include <Hadrons/Modules/MAction/ScaledDWF.hpp>
|
||||||
|
#include <Hadrons/Modules/MAction/WilsonClover.hpp>
|
||||||
|
#include <Hadrons/Modules/MAction/Wilson.hpp>
|
||||||
|
#include <Hadrons/Modules/MAction/MobiusDWF.hpp>
|
||||||
|
#include <Hadrons/Modules/MAction/DWF.hpp>
|
||||||
|
#include <Hadrons/Modules/MFermion/FreeProp.hpp>
|
||||||
|
#include <Hadrons/Modules/MFermion/EMLepton.hpp>
|
||||||
|
#include <Hadrons/Modules/MFermion/GaugeProp.hpp>
|
||||||
|
7
Hadrons/Modules/MContraction/SigmaToNucleonEye.cc
Normal file
7
Hadrons/Modules/MContraction/SigmaToNucleonEye.cc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#include <Hadrons/Modules/MContraction/SigmaToNucleonEye.hpp>
|
||||||
|
|
||||||
|
using namespace Grid;
|
||||||
|
using namespace Hadrons;
|
||||||
|
using namespace MContraction;
|
||||||
|
|
||||||
|
template class Grid::Hadrons::MContraction::TSigmaToNucleonEye<FIMPL,FIMPL,FIMPL,FIMPL>;
|
219
Hadrons/Modules/MContraction/SigmaToNucleonEye.hpp
Normal file
219
Hadrons/Modules/MContraction/SigmaToNucleonEye.hpp
Normal file
@ -0,0 +1,219 @@
|
|||||||
|
/*************************************************************************************
|
||||||
|
|
||||||
|
Grid physics library, www.github.com/paboyle/Grid
|
||||||
|
|
||||||
|
Source file: Hadrons/Modules/MContraction/SigmaToNucleonEye.hpp
|
||||||
|
|
||||||
|
Copyright (C) 2015-2019
|
||||||
|
|
||||||
|
Author: Antonin Portelli <antonin.portelli@me.com>
|
||||||
|
Author: Felix Erben <felix.erben@ed.ac.uk>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
See the full license in the file "LICENSE" in the top level distribution directory
|
||||||
|
*************************************************************************************/
|
||||||
|
/* END LEGAL */
|
||||||
|
|
||||||
|
#ifndef Hadrons_MContraction_SigmaToNucleonEye_hpp_
|
||||||
|
#define Hadrons_MContraction_SigmaToNucleonEye_hpp_
|
||||||
|
|
||||||
|
#include <Hadrons/Global.hpp>
|
||||||
|
#include <Hadrons/Module.hpp>
|
||||||
|
#include <Hadrons/ModuleFactory.hpp>
|
||||||
|
#include <Grid/qcd/utils/BaryonUtils.h>
|
||||||
|
|
||||||
|
BEGIN_HADRONS_NAMESPACE
|
||||||
|
|
||||||
|
/******************************************************************************
|
||||||
|
* SigmaToNucleonEye *
|
||||||
|
******************************************************************************/
|
||||||
|
/*
|
||||||
|
* Sigma-to-nucleon 3-pt diagrams, eye topologies.
|
||||||
|
*
|
||||||
|
* Schematics: qq_loop |
|
||||||
|
* /-<-¬ |
|
||||||
|
* / \ | qs_xi G qd_xf
|
||||||
|
* \ / | /----<------*------<----¬
|
||||||
|
* qs_xi \ / qd_xf | / /-*-¬ \
|
||||||
|
* /-----<-----* *-----<----¬ | / / G \ \
|
||||||
|
* * G G * | * \ / qq_loop *
|
||||||
|
* |\ /| | |\ \->-/ /|
|
||||||
|
* | \ / | | | \ / |
|
||||||
|
* | \---------->---------/ | | | \----------->----------/ |
|
||||||
|
* \ qu_spec / | \ qu_spec /
|
||||||
|
* \ / | \ /
|
||||||
|
* \---------->---------/ | \----------->----------/
|
||||||
|
* qu_spec | qu_spec
|
||||||
|
*
|
||||||
|
* analogously to the rare-kaon naming, the left diagram is named 'one-trace' and
|
||||||
|
* the diagram on the right 'two-trace'
|
||||||
|
*/
|
||||||
|
BEGIN_MODULE_NAMESPACE(MContraction)
|
||||||
|
|
||||||
|
class SigmaToNucleonEyePar: Serializable
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
GRID_SERIALIZABLE_CLASS_MEMBERS(SigmaToNucleonEyePar,
|
||||||
|
std::string, qq_loop,
|
||||||
|
std::string, qu_spec,
|
||||||
|
std::string, qd_xf,
|
||||||
|
std::string, qs_xi,
|
||||||
|
unsigned int, tOut,
|
||||||
|
std::string, parity,
|
||||||
|
std::string, sink,
|
||||||
|
std::string, output);
|
||||||
|
};
|
||||||
|
|
||||||
|
template <typename FImpl1, typename FImpl2, typename FImpl3, typename FImpl4>
|
||||||
|
class TSigmaToNucleonEye: public Module<SigmaToNucleonEyePar>
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
FERM_TYPE_ALIASES(FImpl1, 1);
|
||||||
|
FERM_TYPE_ALIASES(FImpl2, 2);
|
||||||
|
FERM_TYPE_ALIASES(FImpl3, 3);
|
||||||
|
FERM_TYPE_ALIASES(FImpl3, 4);
|
||||||
|
BASIC_TYPE_ALIASES(ScalarImplCR, Scalar);
|
||||||
|
SINK_TYPE_ALIASES(Scalar);
|
||||||
|
typedef typename SpinMatrixField1::vector_object::scalar_object SpinMatrix;
|
||||||
|
class Metadata: Serializable
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
GRID_SERIALIZABLE_CLASS_MEMBERS(Metadata,
|
||||||
|
Gamma::Algebra, gamma_H,
|
||||||
|
Gamma::Algebra, gammaA_sigma,
|
||||||
|
Gamma::Algebra, gammaB_sigma,
|
||||||
|
Gamma::Algebra, gammaA_nucl,
|
||||||
|
Gamma::Algebra, gammaB_nucl,
|
||||||
|
int, trace,
|
||||||
|
int, parity);
|
||||||
|
};
|
||||||
|
typedef Correlator<Metadata, SpinMatrix> Result;
|
||||||
|
public:
|
||||||
|
// constructor
|
||||||
|
TSigmaToNucleonEye(const std::string name);
|
||||||
|
// destructor
|
||||||
|
virtual ~TSigmaToNucleonEye(void) {};
|
||||||
|
// dependency relation
|
||||||
|
virtual std::vector<std::string> getInput(void);
|
||||||
|
virtual std::vector<std::string> getOutput(void);
|
||||||
|
protected:
|
||||||
|
// setup
|
||||||
|
virtual void setup(void);
|
||||||
|
// execution
|
||||||
|
virtual void execute(void);
|
||||||
|
// Which gamma algebra was specified
|
||||||
|
Gamma::Algebra al;
|
||||||
|
};
|
||||||
|
|
||||||
|
MODULE_REGISTER_TMP(SigmaToNucleonEye, ARG(TSigmaToNucleonEye<FIMPL, FIMPL, FIMPL, FIMPL>), MContraction);
|
||||||
|
|
||||||
|
/******************************************************************************
|
||||||
|
* TSigmaToNucleonEye implementation *
|
||||||
|
******************************************************************************/
|
||||||
|
// constructor /////////////////////////////////////////////////////////////////
|
||||||
|
template <typename FImpl1, typename FImpl2, typename FImpl3, typename FImpl4>
|
||||||
|
TSigmaToNucleonEye<FImpl1, FImpl2, FImpl3, FImpl4>::TSigmaToNucleonEye(const std::string name)
|
||||||
|
: Module<SigmaToNucleonEyePar>(name)
|
||||||
|
{}
|
||||||
|
|
||||||
|
// dependencies/products ///////////////////////////////////////////////////////
|
||||||
|
template <typename FImpl1, typename FImpl2, typename FImpl3, typename FImpl4>
|
||||||
|
std::vector<std::string> TSigmaToNucleonEye<FImpl1, FImpl2, FImpl3, FImpl4>::getInput(void)
|
||||||
|
{
|
||||||
|
std::vector<std::string> input = {par().qq_loop, par().qu_spec, par().qd_xf, par().qs_xi, par().sink};
|
||||||
|
|
||||||
|
return input;
|
||||||
|
}
|
||||||
|
|
||||||
|
template <typename FImpl1, typename FImpl2, typename FImpl3, typename FImpl4>
|
||||||
|
std::vector<std::string> TSigmaToNucleonEye<FImpl1, FImpl2, FImpl3, FImpl4>::getOutput(void)
|
||||||
|
{
|
||||||
|
std::vector<std::string> out = {};
|
||||||
|
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
|
||||||
|
// setup ///////////////////////////////////////////////////////////////////////
|
||||||
|
template <typename FImpl1, typename FImpl2, typename FImpl3, typename FImpl4>
|
||||||
|
void TSigmaToNucleonEye<FImpl1, FImpl2, FImpl3, FImpl4>::setup(void)
|
||||||
|
{
|
||||||
|
envTmpLat(SpinMatrixField1, "c");
|
||||||
|
}
|
||||||
|
|
||||||
|
// execution ///////////////////////////////////////////////////////////////////
|
||||||
|
template <typename FImpl1, typename FImpl2, typename FImpl3, typename FImpl4>
|
||||||
|
void TSigmaToNucleonEye<FImpl1, FImpl2, FImpl3, FImpl4>::execute(void)
|
||||||
|
{
|
||||||
|
const int parity {par().parity.size()>0 ? std::stoi(par().parity) : 1};
|
||||||
|
const Gamma GammaB(Gamma::Algebra::SigmaXZ); // C*gamma_5
|
||||||
|
const Gamma Id(Gamma::Algebra::Identity); // C*gamma_5
|
||||||
|
|
||||||
|
LOG(Message) << "Computing sigma-to-nucleon contractions '" << getName() << "'" << std::endl;
|
||||||
|
LOG(Message) << "' with (Gamma^A,Gamma^B)_sigma = ( Identity, C*gamma_5 ) and (Gamma^A,Gamma^B)_nucl = ( Identity, C*gamma_5 )" << std::endl;
|
||||||
|
LOG(Message) << "and parity " << parity << " using sink " << par().sink << "." << std::endl;
|
||||||
|
|
||||||
|
envGetTmp(SpinMatrixField1, c);
|
||||||
|
std::vector<SpinMatrix> buf;
|
||||||
|
|
||||||
|
std::vector<Result> result;
|
||||||
|
Result r;
|
||||||
|
r.info.parity = parity;
|
||||||
|
r.info.gammaA_sigma = Id.g;
|
||||||
|
r.info.gammaB_sigma = GammaB.g;
|
||||||
|
r.info.gammaA_nucl = Id.g;
|
||||||
|
r.info.gammaB_nucl = GammaB.g;
|
||||||
|
|
||||||
|
auto &qq_loop = envGet(PropagatorField1, par().qq_loop);
|
||||||
|
auto &qu_spec = envGet(SlicedPropagator2, par().qu_spec);
|
||||||
|
auto &qd_xf = envGet(PropagatorField3, par().qd_xf);
|
||||||
|
auto &qs_xi = envGet(PropagatorField4, par().qs_xi);
|
||||||
|
auto qut = qu_spec[par().tOut];
|
||||||
|
for (auto &G: Gamma::gall)
|
||||||
|
{
|
||||||
|
r.info.gamma_H = G.g;
|
||||||
|
//Operator Q1, equivalent to the two-trace case in the rare-kaons module
|
||||||
|
c=Zero();
|
||||||
|
BaryonUtils<FIMPL>::Sigma_to_Nucleon(qq_loop,qq_loop,qut,qd_xf,qs_xi,G,GammaB,GammaB,parity,"Q1_Eye",c);
|
||||||
|
sliceSum(c,buf,Tp);
|
||||||
|
r.corr.clear();
|
||||||
|
for (unsigned int t = 0; t < buf.size(); ++t)
|
||||||
|
{
|
||||||
|
r.corr.push_back(buf[t]);
|
||||||
|
}
|
||||||
|
r.info.trace = 2;
|
||||||
|
result.push_back(r);
|
||||||
|
//Operator Q2, equivalent to the one-trace case in the rare-kaons module
|
||||||
|
c=Zero();
|
||||||
|
BaryonUtils<FIMPL>::Sigma_to_Nucleon(qq_loop,qq_loop,qut,qd_xf,qs_xi,G,GammaB,GammaB,parity,"Q2_Eye",c);
|
||||||
|
sliceSum(c,buf,Tp);
|
||||||
|
r.corr.clear();
|
||||||
|
for (unsigned int t = 0; t < buf.size(); ++t)
|
||||||
|
{
|
||||||
|
r.corr.push_back(buf[t]);
|
||||||
|
}
|
||||||
|
r.info.trace = 1;
|
||||||
|
result.push_back(r);
|
||||||
|
}
|
||||||
|
|
||||||
|
saveResult(par().output, "StN_Eye", result);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
END_MODULE_NAMESPACE
|
||||||
|
|
||||||
|
END_HADRONS_NAMESPACE
|
||||||
|
|
||||||
|
#endif // Hadrons_MContraction_SigmaToNucleonEye_hpp_
|
7
Hadrons/Modules/MContraction/SigmaToNucleonNonEye.cc
Normal file
7
Hadrons/Modules/MContraction/SigmaToNucleonNonEye.cc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#include <Hadrons/Modules/MContraction/SigmaToNucleonNonEye.hpp>
|
||||||
|
|
||||||
|
using namespace Grid;
|
||||||
|
using namespace Hadrons;
|
||||||
|
using namespace MContraction;
|
||||||
|
|
||||||
|
template class Grid::Hadrons::MContraction::TSigmaToNucleonNonEye<FIMPL,FIMPL,FIMPL,FIMPL>;
|
225
Hadrons/Modules/MContraction/SigmaToNucleonNonEye.hpp
Normal file
225
Hadrons/Modules/MContraction/SigmaToNucleonNonEye.hpp
Normal file
@ -0,0 +1,225 @@
|
|||||||
|
/*************************************************************************************
|
||||||
|
|
||||||
|
Grid physics library, www.github.com/paboyle/Grid
|
||||||
|
|
||||||
|
Source file: Hadrons/Modules/MContraction/SigmaToNucleonNonEye.hpp
|
||||||
|
|
||||||
|
Copyright (C) 2015-2019
|
||||||
|
|
||||||
|
Author: Antonin Portelli <antonin.portelli@me.com>
|
||||||
|
Author: Felix Erben <felix.erben@ed.ac.uk>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
See the full license in the file "LICENSE" in the top level distribution directory
|
||||||
|
*************************************************************************************/
|
||||||
|
/* END LEGAL */
|
||||||
|
|
||||||
|
#ifndef Hadrons_MContraction_SigmaToNucleonNonEye_hpp_
|
||||||
|
#define Hadrons_MContraction_SigmaToNucleonNonEye_hpp_
|
||||||
|
|
||||||
|
#include <Hadrons/Global.hpp>
|
||||||
|
#include <Hadrons/Module.hpp>
|
||||||
|
#include <Hadrons/ModuleFactory.hpp>
|
||||||
|
#include <Grid/qcd/utils/BaryonUtils.h>
|
||||||
|
|
||||||
|
BEGIN_HADRONS_NAMESPACE
|
||||||
|
|
||||||
|
/******************************************************************************
|
||||||
|
* SigmaToNucleonNonEye *
|
||||||
|
******************************************************************************/
|
||||||
|
/*
|
||||||
|
* Sigma-to-Nucleon 3-pt diagrams, non-eye topologies.
|
||||||
|
*
|
||||||
|
* Schematic:
|
||||||
|
* qs_xi qd_xf | qs_xi qd_xf
|
||||||
|
* /--<--¬ /--<--¬ | /--<--¬ /--<--¬
|
||||||
|
* / \ / \ | / \ / \
|
||||||
|
* / \ / \ | / \ / \
|
||||||
|
* / \ / \ | / \ / \
|
||||||
|
* * * G * | * G * * G *
|
||||||
|
* |\ * G | | |\ / \ /|
|
||||||
|
* | \ / \ /| | | \ / \ / |
|
||||||
|
* | \ / \ / | | | \ / \ / |
|
||||||
|
* | \ / \ / | | | \-->--/ \-->--/ |
|
||||||
|
* \ \-->--/ \-->--/ / | \ qu_xi qu_xf /
|
||||||
|
* \ qu_xf qu_xf / | \ /
|
||||||
|
* \ / | \ /
|
||||||
|
* \--------->----------/ | \--------->-----------/
|
||||||
|
* qu_spec | qu_spec
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* analogously to the rare-kaon naming, the left diagram is named 'one-trace' and
|
||||||
|
* the diagram on the right 'two-trace'
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
BEGIN_MODULE_NAMESPACE(MContraction)
|
||||||
|
|
||||||
|
class SigmaToNucleonNonEyePar: Serializable
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
GRID_SERIALIZABLE_CLASS_MEMBERS(SigmaToNucleonNonEyePar,
|
||||||
|
std::string, qu_xi,
|
||||||
|
std::string, qu_xf,
|
||||||
|
std::string, qu_spec,
|
||||||
|
std::string, qd_xf,
|
||||||
|
std::string, qs_xi,
|
||||||
|
unsigned int, tOut,
|
||||||
|
std::string, parity,
|
||||||
|
std::string, sink,
|
||||||
|
std::string, output);
|
||||||
|
};
|
||||||
|
|
||||||
|
template <typename FImpl1, typename FImpl2, typename FImpl3, typename FImpl4>
|
||||||
|
class TSigmaToNucleonNonEye: public Module<SigmaToNucleonNonEyePar>
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
FERM_TYPE_ALIASES(FImpl1, 1);
|
||||||
|
FERM_TYPE_ALIASES(FImpl2, 2);
|
||||||
|
FERM_TYPE_ALIASES(FImpl3, 3);
|
||||||
|
FERM_TYPE_ALIASES(FImpl3, 4);
|
||||||
|
BASIC_TYPE_ALIASES(ScalarImplCR, Scalar);
|
||||||
|
SINK_TYPE_ALIASES(Scalar);
|
||||||
|
typedef typename SpinMatrixField1::vector_object::scalar_object SpinMatrix;
|
||||||
|
class Metadata: Serializable
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
GRID_SERIALIZABLE_CLASS_MEMBERS(Metadata,
|
||||||
|
Gamma::Algebra, gamma_H,
|
||||||
|
Gamma::Algebra, gammaA_sigma,
|
||||||
|
Gamma::Algebra, gammaB_sigma,
|
||||||
|
Gamma::Algebra, gammaA_nucl,
|
||||||
|
Gamma::Algebra, gammaB_nucl,
|
||||||
|
int, trace,
|
||||||
|
int, parity);
|
||||||
|
};
|
||||||
|
typedef Correlator<Metadata, SpinMatrix> Result;
|
||||||
|
public:
|
||||||
|
// constructor
|
||||||
|
TSigmaToNucleonNonEye(const std::string name);
|
||||||
|
// destructor
|
||||||
|
virtual ~TSigmaToNucleonNonEye(void) {};
|
||||||
|
// dependency relation
|
||||||
|
virtual std::vector<std::string> getInput(void);
|
||||||
|
virtual std::vector<std::string> getOutput(void);
|
||||||
|
protected:
|
||||||
|
// setup
|
||||||
|
virtual void setup(void);
|
||||||
|
// execution
|
||||||
|
virtual void execute(void);
|
||||||
|
// Which gamma algebra was specified
|
||||||
|
Gamma::Algebra al;
|
||||||
|
};
|
||||||
|
|
||||||
|
MODULE_REGISTER_TMP(SigmaToNucleonNonEye, ARG(TSigmaToNucleonNonEye<FIMPL, FIMPL, FIMPL, FIMPL>), MContraction);
|
||||||
|
|
||||||
|
/******************************************************************************
|
||||||
|
* TSigmaToNucleonNonEye implementation *
|
||||||
|
******************************************************************************/
|
||||||
|
// constructor /////////////////////////////////////////////////////////////////
|
||||||
|
template <typename FImpl1, typename FImpl2, typename FImpl3, typename FImpl4>
|
||||||
|
TSigmaToNucleonNonEye<FImpl1, FImpl2, FImpl3, FImpl4>::TSigmaToNucleonNonEye(const std::string name)
|
||||||
|
: Module<SigmaToNucleonNonEyePar>(name)
|
||||||
|
{}
|
||||||
|
|
||||||
|
// dependencies/products ///////////////////////////////////////////////////////
|
||||||
|
template <typename FImpl1, typename FImpl2, typename FImpl3, typename FImpl4>
|
||||||
|
std::vector<std::string> TSigmaToNucleonNonEye<FImpl1, FImpl2, FImpl3, FImpl4>::getInput(void)
|
||||||
|
{
|
||||||
|
std::vector<std::string> input = {par().qu_xi, par().qu_xf, par().qu_spec, par().qd_xf, par().qs_xi, par().sink};
|
||||||
|
|
||||||
|
return input;
|
||||||
|
}
|
||||||
|
|
||||||
|
template <typename FImpl1, typename FImpl2, typename FImpl3, typename FImpl4>
|
||||||
|
std::vector<std::string> TSigmaToNucleonNonEye<FImpl1, FImpl2, FImpl3, FImpl4>::getOutput(void)
|
||||||
|
{
|
||||||
|
std::vector<std::string> out = {};
|
||||||
|
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
|
||||||
|
// setup ///////////////////////////////////////////////////////////////////////
|
||||||
|
template <typename FImpl1, typename FImpl2, typename FImpl3, typename FImpl4>
|
||||||
|
void TSigmaToNucleonNonEye<FImpl1, FImpl2, FImpl3, FImpl4>::setup(void)
|
||||||
|
{
|
||||||
|
envTmpLat(SpinMatrixField1, "c");
|
||||||
|
}
|
||||||
|
|
||||||
|
// execution ///////////////////////////////////////////////////////////////////
|
||||||
|
template <typename FImpl1, typename FImpl2, typename FImpl3, typename FImpl4>
|
||||||
|
void TSigmaToNucleonNonEye<FImpl1, FImpl2, FImpl3, FImpl4>::execute(void)
|
||||||
|
{
|
||||||
|
const int parity {par().parity.size()>0 ? std::stoi(par().parity) : 1};
|
||||||
|
const Gamma GammaB(Gamma::Algebra::SigmaXZ); // C*gamma_5
|
||||||
|
const Gamma Id(Gamma::Algebra::Identity); // C*gamma_5
|
||||||
|
|
||||||
|
LOG(Message) << "Computing sigma-to-nucleon contractions '" << getName() << "'" << std::endl;
|
||||||
|
LOG(Message) << "' with (Gamma^A,Gamma^B)_sigma = ( Identity, C*gamma_5 ) and (Gamma^A,Gamma^B)_nucl = ( Identity, C*gamma_5 )" << std::endl;
|
||||||
|
LOG(Message) << "and parity " << parity << " using sink " << par().sink << "." << std::endl;
|
||||||
|
|
||||||
|
envGetTmp(SpinMatrixField1, c);
|
||||||
|
std::vector<SpinMatrix> buf;
|
||||||
|
|
||||||
|
std::vector<Result> result;
|
||||||
|
Result r;
|
||||||
|
r.info.parity = parity;
|
||||||
|
r.info.gammaA_sigma = Id.g;
|
||||||
|
r.info.gammaB_sigma = GammaB.g;
|
||||||
|
r.info.gammaA_nucl = Id.g;
|
||||||
|
r.info.gammaB_nucl = GammaB.g;
|
||||||
|
|
||||||
|
auto &qu_xi = envGet(PropagatorField1, par().qu_xi);
|
||||||
|
auto &qu_xf = envGet(PropagatorField1, par().qu_xf);
|
||||||
|
auto &qu_spec = envGet(SlicedPropagator2, par().qu_spec);
|
||||||
|
auto &qd_xf = envGet(PropagatorField3, par().qd_xf);
|
||||||
|
auto &qs_xi = envGet(PropagatorField4, par().qs_xi);
|
||||||
|
auto qut = qu_spec[par().tOut];
|
||||||
|
for (auto &G: Gamma::gall)
|
||||||
|
{
|
||||||
|
r.info.gamma_H = G.g;
|
||||||
|
//Operator Q1, equivalent to the two-trace case in the rare-kaons module
|
||||||
|
c=Zero();
|
||||||
|
BaryonUtils<FIMPL>::Sigma_to_Nucleon(qu_xi,qu_xf,qut,qd_xf,qs_xi,G,GammaB,GammaB,parity,"Q1_NonEye",c);
|
||||||
|
sliceSum(c,buf,Tp);
|
||||||
|
r.corr.clear();
|
||||||
|
for (unsigned int t = 0; t < buf.size(); ++t)
|
||||||
|
{
|
||||||
|
r.corr.push_back(buf[t]);
|
||||||
|
}
|
||||||
|
r.info.trace = 2;
|
||||||
|
result.push_back(r);
|
||||||
|
//Operator Q2, equivalent to the one-trace case in the rare-kaons module
|
||||||
|
c=Zero();
|
||||||
|
BaryonUtils<FIMPL>::Sigma_to_Nucleon(qu_xi,qu_xf,qut,qd_xf,qs_xi,G,GammaB,GammaB,parity,"Q2_NonEye",c);
|
||||||
|
sliceSum(c,buf,Tp);
|
||||||
|
r.corr.clear();
|
||||||
|
for (unsigned int t = 0; t < buf.size(); ++t)
|
||||||
|
{
|
||||||
|
r.corr.push_back(buf[t]);
|
||||||
|
}
|
||||||
|
r.info.trace = 1;
|
||||||
|
result.push_back(r);
|
||||||
|
}
|
||||||
|
|
||||||
|
saveResult(par().output, "StN_NonEye", result);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
END_MODULE_NAMESPACE
|
||||||
|
|
||||||
|
END_HADRONS_NAMESPACE
|
||||||
|
|
||||||
|
#endif // Hadrons_MContraction_SigmaToNucleonNonEye_hpp_
|
@ -144,7 +144,7 @@ void TWeakEye3pt<FImpl>::execute(void)
|
|||||||
{
|
{
|
||||||
LOG(Message) << "Computing mesonic weak 3pt contractions, eye topologies" << std::endl;
|
LOG(Message) << "Computing mesonic weak 3pt contractions, eye topologies" << std::endl;
|
||||||
LOG(Message) << "gIn : " << par().gammaIn << std::endl;
|
LOG(Message) << "gIn : " << par().gammaIn << std::endl;
|
||||||
LOG(Message) << "gOut: " << par().gammaIn << std::endl;
|
LOG(Message) << "gOut: " << par().gammaOut << std::endl;
|
||||||
LOG(Message) << "tOut: " << par().tOut << std::endl;
|
LOG(Message) << "tOut: " << par().tOut << std::endl;
|
||||||
LOG(Message) << "qbl : " << par().qBarLeft << std::endl;
|
LOG(Message) << "qbl : " << par().qBarLeft << std::endl;
|
||||||
LOG(Message) << "qbr : " << par().qBarRight << std::endl;
|
LOG(Message) << "qbr : " << par().qBarRight << std::endl;
|
||||||
|
@ -144,7 +144,7 @@ void TWeakNonEye3pt<FImpl>::execute(void)
|
|||||||
{
|
{
|
||||||
LOG(Message) << "Computing mesonic weak 3pt contractions, non-eye topologies" << std::endl;
|
LOG(Message) << "Computing mesonic weak 3pt contractions, non-eye topologies" << std::endl;
|
||||||
LOG(Message) << "gIn : " << par().gammaIn << std::endl;
|
LOG(Message) << "gIn : " << par().gammaIn << std::endl;
|
||||||
LOG(Message) << "gOut: " << par().gammaIn << std::endl;
|
LOG(Message) << "gOut: " << par().gammaOut << std::endl;
|
||||||
LOG(Message) << "ql : " << par().qLeft << std::endl;
|
LOG(Message) << "ql : " << par().qLeft << std::endl;
|
||||||
LOG(Message) << "qbl : " << par().qBarLeft << std::endl;
|
LOG(Message) << "qbl : " << par().qBarLeft << std::endl;
|
||||||
LOG(Message) << "qr : " << par().qRight << std::endl;
|
LOG(Message) << "qr : " << par().qRight << std::endl;
|
||||||
|
@ -140,7 +140,7 @@ void TMomentumPhase<FImpl>::execute(void)
|
|||||||
|
|
||||||
envGetTmp(LatticeComplex, coor);
|
envGetTmp(LatticeComplex, coor);
|
||||||
p = strToVec<Real>(par().mom);
|
p = strToVec<Real>(par().mom);
|
||||||
ph = zero;
|
ph = Zero();
|
||||||
for(unsigned int mu = 0; mu < env().getNd(); mu++)
|
for(unsigned int mu = 0; mu < env().getNd(); mu++)
|
||||||
{
|
{
|
||||||
LatticeCoordinate(coor, mu);
|
LatticeCoordinate(coor, mu);
|
||||||
|
@ -1,147 +1,153 @@
|
|||||||
modules_cc =\
|
modules_cc =\
|
||||||
Modules/MFermion/FreeProp.cc \
|
|
||||||
Modules/MFermion/GaugeProp.cc \
|
|
||||||
Modules/MFermion/EMLepton.cc \
|
|
||||||
Modules/MIO/LoadA2AVectors.cc \
|
|
||||||
Modules/MIO/LoadEigenPack.cc \
|
|
||||||
Modules/MIO/LoadCosmHol.cc \
|
|
||||||
Modules/MIO/LoadBinary.cc \
|
|
||||||
Modules/MIO/LoadA2AMatrixDiskVector.cc \
|
|
||||||
Modules/MIO/LoadCoarseEigenPack.cc \
|
|
||||||
Modules/MIO/LoadNersc.cc \
|
|
||||||
Modules/MAction/ZMobiusDWF.cc \
|
|
||||||
Modules/MAction/ScaledDWF.cc \
|
|
||||||
Modules/MAction/Wilson.cc \
|
|
||||||
Modules/MAction/DWF.cc \
|
|
||||||
Modules/MAction/WilsonClover.cc \
|
|
||||||
Modules/MAction/MobiusDWF.cc \
|
|
||||||
Modules/MUtilities/RandomVectors.cc \
|
Modules/MUtilities/RandomVectors.cc \
|
||||||
Modules/MUtilities/PrecisionCast.cc \
|
Modules/MUtilities/PrecisionCast.cc \
|
||||||
Modules/MNoise/FullVolumeSpinColorDiagonal.cc \
|
Modules/MGauge/FundtoHirep.cc \
|
||||||
Modules/MNoise/TimeDilutedSpinColorDiagonal.cc \
|
Modules/MGauge/UnitEm.cc \
|
||||||
Modules/MContraction/Gamma3pt.cc \
|
Modules/MGauge/StoutSmearing.cc \
|
||||||
Modules/MContraction/A2AFourQuarkContraction.cc \
|
Modules/MGauge/Electrify.cc \
|
||||||
Modules/MContraction/A2AAslashField.cc \
|
Modules/MGauge/Unit.cc \
|
||||||
Modules/MContraction/A2ALoop.cc \
|
Modules/MGauge/StochEm.cc \
|
||||||
Modules/MContraction/WeakEye3pt.cc \
|
Modules/MGauge/GaugeFix.cc \
|
||||||
Modules/MContraction/WeakNonEye3pt.cc \
|
Modules/MGauge/Random.cc \
|
||||||
Modules/MContraction/A2AMesonField.cc \
|
Modules/MSolver/MixedPrecisionRBPrecCG.cc \
|
||||||
Modules/MContraction/DiscLoop.cc \
|
Modules/MSolver/RBPrecCG.cc \
|
||||||
Modules/MContraction/Baryon.cc \
|
Modules/MSolver/LocalCoherenceLanczos.cc \
|
||||||
Modules/MContraction/WeakMesonDecayKl2.cc \
|
Modules/MSolver/A2AAslashVectors.cc \
|
||||||
Modules/MContraction/Meson.cc \
|
Modules/MSolver/A2AVectors.cc \
|
||||||
Modules/MSink/Point.cc \
|
|
||||||
Modules/MSink/Smear.cc \
|
|
||||||
Modules/MScalarSUN/TrPhi.cc \
|
|
||||||
Modules/MScalarSUN/TrMag.cc \
|
|
||||||
Modules/MScalarSUN/TrKinetic.cc \
|
|
||||||
Modules/MScalarSUN/TwoPoint.cc \
|
|
||||||
Modules/MScalarSUN/Grad.cc \
|
|
||||||
Modules/MScalarSUN/TwoPointNPR.cc \
|
|
||||||
Modules/MScalarSUN/StochFreeField.cc \
|
|
||||||
Modules/MScalarSUN/TransProj.cc \
|
|
||||||
Modules/MScalarSUN/EMT.cc \
|
|
||||||
Modules/MScalarSUN/Div.cc \
|
|
||||||
Modules/MNPR/Amputate.cc \
|
|
||||||
Modules/MNPR/Bilinear.cc \
|
|
||||||
Modules/MNPR/FourQuark.cc \
|
|
||||||
Modules/MSource/SeqGamma.cc \
|
|
||||||
Modules/MSource/Z2.cc \
|
Modules/MSource/Z2.cc \
|
||||||
Modules/MSource/Convolution.cc \
|
|
||||||
Modules/MSource/Momentum.cc \
|
|
||||||
Modules/MSource/Wall.cc \
|
Modules/MSource/Wall.cc \
|
||||||
Modules/MSource/Point.cc \
|
Modules/MSource/Point.cc \
|
||||||
Modules/MSource/SeqAslash.cc \
|
Modules/MSource/MomentumPhase.cc \
|
||||||
Modules/MSource/Gauss.cc \
|
Modules/MSource/Gauss.cc \
|
||||||
|
Modules/MSource/Convolution.cc \
|
||||||
|
Modules/MSource/SeqGamma.cc \
|
||||||
|
Modules/MSource/Momentum.cc \
|
||||||
Modules/MSource/SeqConserved.cc \
|
Modules/MSource/SeqConserved.cc \
|
||||||
Modules/MGauge/StoutSmearing.cc \
|
Modules/MSource/SeqAslash.cc \
|
||||||
Modules/MGauge/GaugeFix.cc \
|
Modules/MNPR/Bilinear.cc \
|
||||||
Modules/MGauge/Electrify.cc \
|
Modules/MNPR/FourQuark.cc \
|
||||||
Modules/MGauge/Random.cc \
|
Modules/MNPR/Amputate.cc \
|
||||||
Modules/MGauge/Unit.cc \
|
Modules/MContraction/Baryon.cc \
|
||||||
Modules/MGauge/UnitEm.cc \
|
Modules/MContraction/A2ALoop.cc \
|
||||||
Modules/MGauge/FundtoHirep.cc \
|
Modules/MContraction/A2AFourQuarkContraction.cc \
|
||||||
Modules/MGauge/StochEm.cc \
|
Modules/MContraction/DiscLoop.cc \
|
||||||
Modules/MSolver/RBPrecCG.cc \
|
Modules/MContraction/SigmaToNucleonEye.cc \
|
||||||
Modules/MSolver/A2AAslashVectors.cc \
|
Modules/MContraction/WeakEye3pt.cc \
|
||||||
Modules/MSolver/MixedPrecisionRBPrecCG.cc \
|
Modules/MContraction/A2AAslashField.cc \
|
||||||
Modules/MSolver/A2AVectors.cc \
|
Modules/MContraction/Meson.cc \
|
||||||
Modules/MSolver/LocalCoherenceLanczos.cc \
|
Modules/MContraction/WeakMesonDecayKl2.cc \
|
||||||
|
Modules/MContraction/WeakNonEye3pt.cc \
|
||||||
|
Modules/MContraction/SigmaToNucleonNonEye.cc \
|
||||||
|
Modules/MContraction/Gamma3pt.cc \
|
||||||
|
Modules/MContraction/A2AMesonField.cc \
|
||||||
|
Modules/MScalar/FreeProp.cc \
|
||||||
Modules/MScalar/ChargedProp.cc \
|
Modules/MScalar/ChargedProp.cc \
|
||||||
Modules/MScalar/FreeProp.cc
|
Modules/MSink/Point.cc \
|
||||||
|
Modules/MSink/Smear.cc \
|
||||||
|
Modules/MNoise/TimeDilutedSpinColorDiagonal.cc \
|
||||||
|
Modules/MNoise/FullVolumeSpinColorDiagonal.cc \
|
||||||
|
Modules/MIO/LoadA2AVectors.cc \
|
||||||
|
Modules/MIO/LoadBinary.cc \
|
||||||
|
Modules/MIO/LoadA2AMatrixDiskVector.cc \
|
||||||
|
Modules/MIO/LoadNersc.cc \
|
||||||
|
Modules/MIO/LoadCoarseEigenPack.cc \
|
||||||
|
Modules/MIO/LoadCosmHol.cc \
|
||||||
|
Modules/MIO/LoadEigenPack.cc \
|
||||||
|
Modules/MScalarSUN/Div.cc \
|
||||||
|
Modules/MScalarSUN/TwoPointNPR.cc \
|
||||||
|
Modules/MScalarSUN/TrPhi.cc \
|
||||||
|
Modules/MScalarSUN/TransProj.cc \
|
||||||
|
Modules/MScalarSUN/TwoPoint.cc \
|
||||||
|
Modules/MScalarSUN/Grad.cc \
|
||||||
|
Modules/MScalarSUN/EMT.cc \
|
||||||
|
Modules/MScalarSUN/TrKinetic.cc \
|
||||||
|
Modules/MScalarSUN/StochFreeField.cc \
|
||||||
|
Modules/MScalarSUN/TrMag.cc \
|
||||||
|
Modules/MAction/MobiusDWF.cc \
|
||||||
|
Modules/MAction/DWF.cc \
|
||||||
|
Modules/MAction/ScaledDWF.cc \
|
||||||
|
Modules/MAction/Wilson.cc \
|
||||||
|
Modules/MAction/ZMobiusDWF.cc \
|
||||||
|
Modules/MAction/WilsonClover.cc \
|
||||||
|
Modules/MFermion/EMLepton.cc \
|
||||||
|
Modules/MFermion/FreeProp.cc \
|
||||||
|
Modules/MFermion/GaugeProp.cc
|
||||||
|
|
||||||
modules_hpp =\
|
modules_hpp =\
|
||||||
Modules/MFermion/GaugeProp.hpp \
|
|
||||||
Modules/MFermion/EMLepton.hpp \
|
|
||||||
Modules/MFermion/FreeProp.hpp \
|
|
||||||
Modules/MIO/LoadCosmHol.hpp \
|
|
||||||
Modules/MIO/LoadEigenPack.hpp \
|
|
||||||
Modules/MIO/LoadA2AVectors.hpp \
|
|
||||||
Modules/MIO/LoadA2AMatrixDiskVector.hpp \
|
|
||||||
Modules/MIO/LoadCoarseEigenPack.hpp \
|
|
||||||
Modules/MIO/LoadNersc.hpp \
|
|
||||||
Modules/MIO/LoadBinary.hpp \
|
|
||||||
Modules/MAction/ZMobiusDWF.hpp \
|
|
||||||
Modules/MAction/MobiusDWF.hpp \
|
|
||||||
Modules/MAction/Wilson.hpp \
|
|
||||||
Modules/MAction/DWF.hpp \
|
|
||||||
Modules/MAction/WilsonClover.hpp \
|
|
||||||
Modules/MAction/ScaledDWF.hpp \
|
|
||||||
Modules/MUtilities/RandomVectors.hpp \
|
|
||||||
Modules/MUtilities/PrecisionCast.hpp \
|
Modules/MUtilities/PrecisionCast.hpp \
|
||||||
Modules/MNoise/TimeDilutedSpinColorDiagonal.hpp \
|
Modules/MUtilities/RandomVectors.hpp \
|
||||||
Modules/MNoise/FullVolumeSpinColorDiagonal.hpp \
|
|
||||||
Modules/MContraction/DiscLoop.hpp \
|
|
||||||
Modules/MContraction/Meson.hpp \
|
|
||||||
Modules/MContraction/WeakMesonDecayKl2.hpp \
|
|
||||||
Modules/MContraction/A2AMesonField.hpp \
|
|
||||||
Modules/MContraction/WeakNonEye3pt.hpp \
|
|
||||||
Modules/MContraction/Gamma3pt.hpp \
|
|
||||||
Modules/MContraction/A2AAslashField.hpp \
|
|
||||||
Modules/MContraction/A2AFourQuarkContraction.hpp \
|
|
||||||
Modules/MContraction/Baryon.hpp \
|
|
||||||
Modules/MContraction/WeakEye3pt.hpp \
|
|
||||||
Modules/MContraction/A2ALoop.hpp \
|
|
||||||
Modules/MSink/Point.hpp \
|
|
||||||
Modules/MSink/Smear.hpp \
|
|
||||||
Modules/MScalarSUN/StochFreeField.hpp \
|
|
||||||
Modules/MScalarSUN/EMT.hpp \
|
|
||||||
Modules/MScalarSUN/Utils.hpp \
|
|
||||||
Modules/MScalarSUN/TwoPoint.hpp \
|
|
||||||
Modules/MScalarSUN/TransProj.hpp \
|
|
||||||
Modules/MScalarSUN/TwoPointNPR.hpp \
|
|
||||||
Modules/MScalarSUN/TrPhi.hpp \
|
|
||||||
Modules/MScalarSUN/Grad.hpp \
|
|
||||||
Modules/MScalarSUN/TrMag.hpp \
|
|
||||||
Modules/MScalarSUN/Div.hpp \
|
|
||||||
Modules/MScalarSUN/TrKinetic.hpp \
|
|
||||||
Modules/MNPR/Amputate.hpp \
|
|
||||||
Modules/MNPR/FourQuark.hpp \
|
|
||||||
Modules/MNPR/Bilinear.hpp \
|
|
||||||
Modules/MSource/SeqAslash.hpp \
|
|
||||||
Modules/MSource/Momentum.hpp \
|
|
||||||
Modules/MSource/Z2.hpp \
|
|
||||||
Modules/MSource/Point.hpp \
|
|
||||||
Modules/MSource/Gauss.hpp \
|
|
||||||
Modules/MSource/SeqConserved.hpp \
|
|
||||||
Modules/MSource/Wall.hpp \
|
|
||||||
Modules/MSource/SeqGamma.hpp \
|
|
||||||
Modules/MSource/Convolution.hpp \
|
|
||||||
Modules/MGauge/Random.hpp \
|
|
||||||
Modules/MGauge/FundtoHirep.hpp \
|
Modules/MGauge/FundtoHirep.hpp \
|
||||||
Modules/MGauge/StochEm.hpp \
|
Modules/MGauge/Electrify.hpp \
|
||||||
Modules/MGauge/UnitEm.hpp \
|
|
||||||
Modules/MGauge/GaugeFix.hpp \
|
Modules/MGauge/GaugeFix.hpp \
|
||||||
Modules/MGauge/StoutSmearing.hpp \
|
Modules/MGauge/StoutSmearing.hpp \
|
||||||
Modules/MGauge/Unit.hpp \
|
Modules/MGauge/Unit.hpp \
|
||||||
Modules/MGauge/Electrify.hpp \
|
Modules/MGauge/UnitEm.hpp \
|
||||||
Modules/MSolver/A2AVectors.hpp \
|
Modules/MGauge/Random.hpp \
|
||||||
Modules/MSolver/RBPrecCG.hpp \
|
Modules/MGauge/StochEm.hpp \
|
||||||
Modules/MSolver/LocalCoherenceLanczos.hpp \
|
|
||||||
Modules/MSolver/Guesser.hpp \
|
Modules/MSolver/Guesser.hpp \
|
||||||
Modules/MSolver/MixedPrecisionRBPrecCG.hpp \
|
Modules/MSolver/MixedPrecisionRBPrecCG.hpp \
|
||||||
|
Modules/MSolver/A2AVectors.hpp \
|
||||||
|
Modules/MSolver/LocalCoherenceLanczos.hpp \
|
||||||
Modules/MSolver/A2AAslashVectors.hpp \
|
Modules/MSolver/A2AAslashVectors.hpp \
|
||||||
|
Modules/MSolver/RBPrecCG.hpp \
|
||||||
|
Modules/MSource/Convolution.hpp \
|
||||||
|
Modules/MSource/Point.hpp \
|
||||||
|
Modules/MSource/Gauss.hpp \
|
||||||
|
Modules/MSource/MomentumPhase.hpp \
|
||||||
|
Modules/MSource/Z2.hpp \
|
||||||
|
Modules/MSource/SeqAslash.hpp \
|
||||||
|
Modules/MSource/SeqConserved.hpp \
|
||||||
|
Modules/MSource/SeqGamma.hpp \
|
||||||
|
Modules/MSource/Momentum.hpp \
|
||||||
|
Modules/MSource/Wall.hpp \
|
||||||
|
Modules/MNPR/Amputate.hpp \
|
||||||
|
Modules/MNPR/Bilinear.hpp \
|
||||||
|
Modules/MNPR/FourQuark.hpp \
|
||||||
|
Modules/MContraction/Meson.hpp \
|
||||||
|
Modules/MContraction/WeakMesonDecayKl2.hpp \
|
||||||
|
Modules/MContraction/WeakNonEye3pt.hpp \
|
||||||
|
Modules/MContraction/A2AFourQuarkContraction.hpp \
|
||||||
|
Modules/MContraction/DiscLoop.hpp \
|
||||||
|
Modules/MContraction/WeakEye3pt.hpp \
|
||||||
|
Modules/MContraction/A2AAslashField.hpp \
|
||||||
|
Modules/MContraction/Gamma3pt.hpp \
|
||||||
|
Modules/MContraction/A2AMesonField.hpp \
|
||||||
|
Modules/MContraction/SigmaToNucleonEye.hpp \
|
||||||
|
Modules/MContraction/A2ALoop.hpp \
|
||||||
|
Modules/MContraction/Baryon.hpp \
|
||||||
|
Modules/MContraction/SigmaToNucleonNonEye.hpp \
|
||||||
|
Modules/MScalar/FreeProp.hpp \
|
||||||
Modules/MScalar/ChargedProp.hpp \
|
Modules/MScalar/ChargedProp.hpp \
|
||||||
Modules/MScalar/Scalar.hpp \
|
Modules/MScalar/Scalar.hpp \
|
||||||
Modules/MScalar/FreeProp.hpp
|
Modules/MSink/Point.hpp \
|
||||||
|
Modules/MSink/Smear.hpp \
|
||||||
|
Modules/MNoise/FullVolumeSpinColorDiagonal.hpp \
|
||||||
|
Modules/MNoise/TimeDilutedSpinColorDiagonal.hpp \
|
||||||
|
Modules/MIO/LoadBinary.hpp \
|
||||||
|
Modules/MIO/LoadNersc.hpp \
|
||||||
|
Modules/MIO/LoadEigenPack.hpp \
|
||||||
|
Modules/MIO/LoadA2AMatrixDiskVector.hpp \
|
||||||
|
Modules/MIO/LoadCoarseEigenPack.hpp \
|
||||||
|
Modules/MIO/LoadA2AVectors.hpp \
|
||||||
|
Modules/MIO/LoadCosmHol.hpp \
|
||||||
|
Modules/MScalarSUN/TwoPointNPR.hpp \
|
||||||
|
Modules/MScalarSUN/TransProj.hpp \
|
||||||
|
Modules/MScalarSUN/TwoPoint.hpp \
|
||||||
|
Modules/MScalarSUN/TrPhi.hpp \
|
||||||
|
Modules/MScalarSUN/Utils.hpp \
|
||||||
|
Modules/MScalarSUN/TrMag.hpp \
|
||||||
|
Modules/MScalarSUN/EMT.hpp \
|
||||||
|
Modules/MScalarSUN/Grad.hpp \
|
||||||
|
Modules/MScalarSUN/StochFreeField.hpp \
|
||||||
|
Modules/MScalarSUN/Div.hpp \
|
||||||
|
Modules/MScalarSUN/TrKinetic.hpp \
|
||||||
|
Modules/MAction/ZMobiusDWF.hpp \
|
||||||
|
Modules/MAction/ScaledDWF.hpp \
|
||||||
|
Modules/MAction/WilsonClover.hpp \
|
||||||
|
Modules/MAction/Wilson.hpp \
|
||||||
|
Modules/MAction/MobiusDWF.hpp \
|
||||||
|
Modules/MAction/DWF.hpp \
|
||||||
|
Modules/MFermion/FreeProp.hpp \
|
||||||
|
Modules/MFermion/EMLepton.hpp \
|
||||||
|
Modules/MFermion/GaugeProp.hpp
|
||||||
|
|
||||||
|
154
tests/hadrons/Test_sigma_to_nucleon.cc
Normal file
154
tests/hadrons/Test_sigma_to_nucleon.cc
Normal file
@ -0,0 +1,154 @@
|
|||||||
|
/*************************************************************************************
|
||||||
|
|
||||||
|
Grid physics library, www.github.com/paboyle/Grid
|
||||||
|
|
||||||
|
Source file: Tests/Hadrons/Test_hadrons_spectrum.cc
|
||||||
|
|
||||||
|
Copyright (C) 2015-2018
|
||||||
|
|
||||||
|
Author: Antonin Portelli <antonin.portelli@me.com>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
See the full license in the file "LICENSE" in the top level distribution directory
|
||||||
|
*************************************************************************************/
|
||||||
|
/* END LEGAL */
|
||||||
|
|
||||||
|
#include <Hadrons/Application.hpp>
|
||||||
|
#include <Hadrons/Modules.hpp>
|
||||||
|
|
||||||
|
using namespace Grid;
|
||||||
|
using namespace Hadrons;
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
// initialization //////////////////////////////////////////////////////////
|
||||||
|
Grid_init(&argc, &argv);
|
||||||
|
HadronsLogError.Active(GridLogError.isActive());
|
||||||
|
HadronsLogWarning.Active(GridLogWarning.isActive());
|
||||||
|
HadronsLogMessage.Active(GridLogMessage.isActive());
|
||||||
|
HadronsLogIterative.Active(GridLogIterative.isActive());
|
||||||
|
HadronsLogDebug.Active(GridLogDebug.isActive());
|
||||||
|
LOG(Message) << "Grid initialized" << std::endl;
|
||||||
|
|
||||||
|
// run setup ///////////////////////////////////////////////////////////////
|
||||||
|
Application application;
|
||||||
|
std::vector<std::string> flavour = {"l", "s", "c"};
|
||||||
|
std::vector<double> mass = {.01, .04, .2 };
|
||||||
|
|
||||||
|
// global parameters
|
||||||
|
Application::GlobalPar globalPar;
|
||||||
|
globalPar.trajCounter.start = 1500;
|
||||||
|
globalPar.trajCounter.end = 1520;
|
||||||
|
globalPar.trajCounter.step = 20;
|
||||||
|
globalPar.runId = "test";
|
||||||
|
application.setPar(globalPar);
|
||||||
|
// gauge field
|
||||||
|
application.createModule<MGauge::Unit>("gauge");
|
||||||
|
// sources
|
||||||
|
MSource::Point::Par ptPar;
|
||||||
|
ptPar.position = "0 0 0 0";
|
||||||
|
application.createModule<MSource::Point>("pt_0", ptPar);
|
||||||
|
ptPar.position = "0 0 0 4";
|
||||||
|
application.createModule<MSource::Point>("pt_4", ptPar);
|
||||||
|
// sink
|
||||||
|
MSink::Point::Par sinkPar;
|
||||||
|
sinkPar.mom = "0 0 0";
|
||||||
|
application.createModule<MSink::ScalarPoint>("sink", sinkPar);
|
||||||
|
application.createModule<MSink::Point>("sink_spec", sinkPar);
|
||||||
|
|
||||||
|
// set fermion boundary conditions to be periodic space, antiperiodic time.
|
||||||
|
std::string boundary = "1 1 1 -1";
|
||||||
|
std::string twist = "0. 0. 0. 0.";
|
||||||
|
|
||||||
|
for (unsigned int i = 0; i < flavour.size(); ++i)
|
||||||
|
{
|
||||||
|
// actions
|
||||||
|
MAction::DWF::Par actionPar;
|
||||||
|
actionPar.gauge = "gauge";
|
||||||
|
actionPar.Ls = 12;
|
||||||
|
actionPar.M5 = 1.8;
|
||||||
|
actionPar.mass = mass[i];
|
||||||
|
actionPar.boundary = boundary;
|
||||||
|
actionPar.twist = twist;
|
||||||
|
application.createModule<MAction::DWF>("DWF_" + flavour[i], actionPar);
|
||||||
|
|
||||||
|
// solvers
|
||||||
|
MSolver::RBPrecCG::Par solverPar;
|
||||||
|
solverPar.action = "DWF_" + flavour[i];
|
||||||
|
solverPar.residual = 1.0e-8;
|
||||||
|
solverPar.maxIteration = 10000;
|
||||||
|
application.createModule<MSolver::RBPrecCG>("CG_" + flavour[i],
|
||||||
|
solverPar);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// propagators
|
||||||
|
MFermion::GaugeProp::Par quarkPar;
|
||||||
|
quarkPar.solver = "CG_l";
|
||||||
|
quarkPar.source = "pt_0";
|
||||||
|
application.createModule<MFermion::GaugeProp>("Qpt_l_0", quarkPar);
|
||||||
|
quarkPar.source = "pt_4";
|
||||||
|
application.createModule<MFermion::GaugeProp>("Qpt_l_4", quarkPar);
|
||||||
|
quarkPar.solver = "CG_s";
|
||||||
|
quarkPar.source = "pt_0";
|
||||||
|
application.createModule<MFermion::GaugeProp>("Qpt_s_0", quarkPar);
|
||||||
|
//This should be a loop - how do I make this?
|
||||||
|
quarkPar.solver = "CG_c";
|
||||||
|
quarkPar.source = "pt_0";
|
||||||
|
application.createModule<MFermion::GaugeProp>("Qpt_c_loop", quarkPar);
|
||||||
|
quarkPar.solver = "CG_l";
|
||||||
|
quarkPar.source = "pt_0";
|
||||||
|
application.createModule<MFermion::GaugeProp>("Qpt_l_loop", quarkPar);
|
||||||
|
|
||||||
|
MSink::Smear::Par smearPar;
|
||||||
|
smearPar.q="Qpt_l_0";
|
||||||
|
smearPar.sink = "sink_spec";
|
||||||
|
application.createModule<MSink::Smear>("Qpt_u_spec",smearPar);
|
||||||
|
|
||||||
|
|
||||||
|
MContraction::SigmaToNucleonEye::Par EyePar;
|
||||||
|
EyePar.output = "SigmaToNucleon/Eye_u";
|
||||||
|
EyePar.qq_loop = "Qpt_l_loop";
|
||||||
|
EyePar.qu_spec = "Qpt_u_spec";
|
||||||
|
EyePar.qd_xf = "Qpt_l_4";
|
||||||
|
EyePar.qs_xi = "Qpt_s_0";
|
||||||
|
EyePar.tOut = 0;
|
||||||
|
EyePar.sink = "sink";
|
||||||
|
application.createModule<MContraction::SigmaToNucleonEye>("SigmaToNucleonEye_u", EyePar);
|
||||||
|
EyePar.output = "SigmaToNucleon/Eye_c";
|
||||||
|
EyePar.qq_loop = "Qpt_c_loop";
|
||||||
|
application.createModule<MContraction::SigmaToNucleonEye>("SigmaToNucleonEye_c", EyePar);
|
||||||
|
MContraction::SigmaToNucleonNonEye::Par NonEyePar;
|
||||||
|
NonEyePar.output = "SigmaToNucleon/NonEye";
|
||||||
|
NonEyePar.qu_xi = "Qpt_l_0";
|
||||||
|
NonEyePar.qu_xf = "Qpt_l_4";
|
||||||
|
NonEyePar.qu_spec = "Qpt_u_spec";
|
||||||
|
NonEyePar.qd_xf = "Qpt_l_4";
|
||||||
|
NonEyePar.qs_xi = "Qpt_s_0";
|
||||||
|
NonEyePar.tOut = 0;
|
||||||
|
NonEyePar.sink = "sink";
|
||||||
|
application.createModule<MContraction::SigmaToNucleonNonEye>("SigmaToNucleonNonEye", NonEyePar);
|
||||||
|
|
||||||
|
// execution
|
||||||
|
application.saveParameterFile("stn.xml");
|
||||||
|
application.run();
|
||||||
|
|
||||||
|
// epilogue
|
||||||
|
LOG(Message) << "Grid is finalizing now" << std::endl;
|
||||||
|
Grid_finalize();
|
||||||
|
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user