Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
corr2pt_4spinor.h
Go to the documentation of this file.
1 
14 #ifndef CORR2PT_4SPINOR_INCLUDED
15 #define CORR2PT_4SPINOR_INCLUDED
16 
17 #include "contract_4spinor.h"
18 
19 #include "Parameters/parameters.h"
20 #include "Tools/gammaMatrixSet.h"
21 
22 #include "IO/bridgeIO.h"
23 using Bridge::vout;
24 
26 
43 {
44  public:
45  static const std::string class_name;
46 
47  protected:
49 
50  private:
51  std::string m_filename_output;
52 
54 
55  public:
57  : m_vl(CommonParameters::Vlevel()), m_gmset(gmset)
58  {
59  init();
60  }
61 
63  : m_vl(CommonParameters::Vlevel()), m_gmset(gmset.get())
64  {
65  init();
66  }
67 
68  private:
69  // non-copyable
72 
73  public:
74  virtual void set_parameters(const Parameters& params);
75 
77 
78  double meson_all(
79  const std::vector<Field_F>& sq1,
80  const std::vector<Field_F>& sq2);
81 
83  void meson_correlator(
84  std::vector<dcomplex>& corr_global,
85  const GammaMatrix& gm_sink,
86  const GammaMatrix& gm_src,
87  const std::vector<Field_F>& sq1,
88  const std::vector<Field_F>& sq2);
89 
90  double meson_momentum_all(
91  const std::vector<Field_F>& sq1,
92  const std::vector<Field_F>& sq2,
93  const std::vector<int>& source_position);
94 
96  std::vector<dcomplex>& corr_global,
97  const std::vector<int>& momentum_sink,
98  const GammaMatrix& gm_sink,
99  const GammaMatrix& gm_src,
100  const std::vector<Field_F>& sq1,
101  const std::vector<Field_F>& sq2,
102  const std::vector<int>& source_position);
103 
104  double proton_test(
105  const std::vector<Field_F>& sq_u,
106  const std::vector<Field_F>& sq_d);
107 
108  void proton_correlator(
109  std::vector<dcomplex>& corr_global,
110  const GammaMatrix& gm,
111  const std::vector<Field_F>& sq_u,
112  const std::vector<Field_F>& sq_d);
113 
114  void meson_correlator_x(
115  std::vector<dcomplex>& meson,
116  const GammaMatrix& gm_sink,
117  const GammaMatrix& gm_src,
118  const std::vector<Field_F>& sq1,
119  const std::vector<Field_F>& sq2);
120 
121  void meson_momentum_correlator_x(std::vector<dcomplex>& corr_global,
122  const std::vector<int>& momentum_sink,
123  const GammaMatrix& gm_sink,
124  const GammaMatrix& gm_src,
125  const std::vector<Field_F>& sq1,
126  const std::vector<Field_F>& sq2,
127  const std::vector<int>& source_position);
128 
129  void proton_correlator_x(
130  std::vector<dcomplex>& proton,
131  const GammaMatrix& gm,
132  const std::vector<Field_F>& squ,
133  const std::vector<Field_F>& sqd);
134 
135  private:
136  void init();
137 
139  // void global_corr_t(std::vector<dcomplex>& corr_global,
140  // const std::vector<dcomplex>& corr_local);
141 };
142 #endif
BridgeIO vout
Definition: bridgeIO.cpp:503
double meson_all(const std::vector< Field_F > &sq1, const std::vector< Field_F > &sq2)
Two-point correlator for Wilson-type fermions.
Bridge::VerboseLevel m_vl
void proton_correlator(std::vector< dcomplex > &corr_global, const GammaMatrix &gm, const std::vector< Field_F > &sq_u, const std::vector< Field_F > &sq_d)
GammaMatrixSet * m_gmset
Corr2pt_4spinor & operator=(const Corr2pt_4spinor &)
Class for parameters.
Definition: parameters.h:46
void set_parameter_verboselevel(const Bridge::VerboseLevel vl)
double proton_test(const std::vector< Field_F > &sq_u, const std::vector< Field_F > &sq_d)
void proton_correlator_x(std::vector< dcomplex > &proton, const GammaMatrix &gm, const std::vector< Field_F > &squ, const std::vector< Field_F > &sqd)
Gamma Matrix class.
Definition: gammaMatrix.h:44
static const std::string class_name
void meson_correlator(std::vector< dcomplex > &corr_global, const GammaMatrix &gm_sink, const GammaMatrix &gm_src, const std::vector< Field_F > &sq1, const std::vector< Field_F > &sq2)
corr_global=(sq2)_{ab}(0,x) (gm_sink)_{bc} (sq1)_{cd}(x,0) (gm_src)_{da}=(sq2^*)_{ba}(x,0) (gamma_5 gm_sink)_{bc} (sq1)_{cd}(x,0) (gm_src gamma_5)_{da} , where sq1 and sq2 are quark propagators.
Set of Gamma Matrices: basis class.
Common parameter class: provides parameters as singleton.
void meson_momentum_correlator_x(std::vector< dcomplex > &corr_global, const std::vector< int > &momentum_sink, const GammaMatrix &gm_sink, const GammaMatrix &gm_src, const std::vector< Field_F > &sq1, const std::vector< Field_F > &sq2, const std::vector< int > &source_position)
void meson_correlator_x(std::vector< dcomplex > &meson, const GammaMatrix &gm_sink, const GammaMatrix &gm_src, const std::vector< Field_F > &sq1, const std::vector< Field_F > &sq2)
double meson_momentum_all(const std::vector< Field_F > &sq1, const std::vector< Field_F > &sq2, const std::vector< int > &source_position)
Corr2pt_4spinor(unique_ptr< GammaMatrixSet > &gmset)
Corr2pt_4spinor(GammaMatrixSet *gmset)
Bridge::VerboseLevel vl
VerboseLevel
Definition: bridgeIO.h:42
std::string m_filename_output
virtual void set_parameters(const Parameters &params)
void meson_momentum_correlator(std::vector< dcomplex > &corr_global, const std::vector< int > &momentum_sink, const GammaMatrix &gm_sink, const GammaMatrix &gm_src, const std::vector< Field_F > &sq1, const std::vector< Field_F > &sq2, const std::vector< int > &source_position)