Bridge++  Ver. 2.0.2
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 
62  // optional
63  Corr2pt_4spinor(GammaMatrixSet *gmset, const Parameters& params)
64  : m_vl(CommonParameters::Vlevel()), m_gmset(gmset)
65  {
66  init();
67  set_parameters(params);
68  }
69 
70  private:
71  // non-copyable
74 
75  public:
76  virtual void set_parameters(const Parameters& params);
77 
78  virtual void get_parameters(Parameters& params) const;
79 
81 
82  double meson_all(
83  const std::vector<Field_F>& sq1,
84  const std::vector<Field_F>& sq2);
85 
87  void meson_correlator(
88  std::vector<dcomplex>& corr_global,
89  const GammaMatrix& gm_sink,
90  const GammaMatrix& gm_src,
91  const std::vector<Field_F>& sq1,
92  const std::vector<Field_F>& sq2);
93 
94  double meson_momentum_all(
95  const std::vector<Field_F>& sq1,
96  const std::vector<Field_F>& sq2,
97  const std::vector<int>& source_position);
98 
100  std::vector<dcomplex>& corr_global,
101  const std::vector<int>& momentum_sink,
102  const GammaMatrix& gm_sink,
103  const GammaMatrix& gm_src,
104  const std::vector<Field_F>& sq1,
105  const std::vector<Field_F>& sq2,
106  const std::vector<int>& source_position);
107 
108  double proton_test(
109  const std::vector<Field_F>& sq_u,
110  const std::vector<Field_F>& sq_d);
111 
112  void proton_correlator(
113  std::vector<dcomplex>& corr_global,
114  const GammaMatrix& gm,
115  const std::vector<Field_F>& sq_u,
116  const std::vector<Field_F>& sq_d);
117 
118  void meson_correlator_x(
119  std::vector<dcomplex>& meson,
120  const GammaMatrix& gm_sink,
121  const GammaMatrix& gm_src,
122  const std::vector<Field_F>& sq1,
123  const std::vector<Field_F>& sq2);
124 
125  void meson_momentum_correlator_x(std::vector<dcomplex>& corr_global,
126  const std::vector<int>& momentum_sink,
127  const GammaMatrix& gm_sink,
128  const GammaMatrix& gm_src,
129  const std::vector<Field_F>& sq1,
130  const std::vector<Field_F>& sq2,
131  const std::vector<int>& source_position);
132 
133  void proton_correlator_x(
134  std::vector<dcomplex>& proton,
135  const GammaMatrix& gm,
136  const std::vector<Field_F>& squ,
137  const std::vector<Field_F>& sqd);
138 
139  private:
140  void init();
141 
143  // void global_corr_t(std::vector<dcomplex>& corr_global,
144  // const std::vector<dcomplex>& corr_local);
145 };
146 #endif
GammaMatrixSet
Set of Gamma Matrices: basis class.
Definition: gammaMatrixSet.h:37
bridgeIO.h
Corr2pt_4spinor::set_parameters
virtual void set_parameters(const Parameters &params)
Definition: corr2pt_4spinor.cpp:21
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
Parameters
Class for parameters.
Definition: parameters.h:46
GammaMatrix
Gamma Matrix class.
Definition: gammaMatrix.h:44
Corr2pt_4spinor::meson_all
double meson_all(const std::vector< Field_F > &sq1, const std::vector< Field_F > &sq2)
Definition: corr2pt_4spinor.cpp:53
Corr2pt_4spinor::operator=
Corr2pt_4spinor & operator=(const Corr2pt_4spinor &)
Corr2pt_4spinor::set_parameter_verboselevel
void set_parameter_verboselevel(const Bridge::VerboseLevel vl)
Definition: corr2pt_4spinor.h:80
Corr2pt_4spinor::proton_correlator_x
void proton_correlator_x(std::vector< dcomplex > &proton, const GammaMatrix &gm, const std::vector< Field_F > &squ, const std::vector< Field_F > &sqd)
Definition: corr2pt_4spinor.cpp:656
Corr2pt_4spinor::proton_correlator
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)
Definition: corr2pt_4spinor.cpp:489
Corr2pt_4spinor::class_name
static const std::string class_name
Definition: corr2pt_4spinor.h:45
Corr2pt_4spinor::m_vl
Bridge::VerboseLevel m_vl
Definition: corr2pt_4spinor.h:48
Corr2pt_4spinor::m_gmset
GammaMatrixSet * m_gmset
Definition: corr2pt_4spinor.h:53
Corr2pt_4spinor::proton_test
double proton_test(const std::vector< Field_F > &sq_u, const std::vector< Field_F > &sq_d)
Definition: corr2pt_4spinor.cpp:430
ParameterCheck::vl
Bridge::VerboseLevel vl
Definition: parameterCheck.cpp:18
Corr2pt_4spinor::get_parameters
virtual void get_parameters(Parameters &params) const
Definition: corr2pt_4spinor.cpp:36
Corr2pt_4spinor::meson_momentum_all
double meson_momentum_all(const std::vector< Field_F > &sq1, const std::vector< Field_F > &sq2, const std::vector< int > &source_position)
Definition: corr2pt_4spinor.cpp:234
Corr2pt_4spinor::meson_correlator
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,...
Definition: corr2pt_4spinor.cpp:197
contract_4spinor.h
Corr2pt_4spinor
Two-point correlator for Wilson-type fermions.
Definition: corr2pt_4spinor.h:42
parameters.h
Corr2pt_4spinor::meson_momentum_correlator_x
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)
Definition: corr2pt_4spinor.cpp:614
Corr2pt_4spinor::Corr2pt_4spinor
Corr2pt_4spinor(GammaMatrixSet *gmset, const Parameters &params)
Definition: corr2pt_4spinor.h:63
Corr2pt_4spinor::meson_correlator_x
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)
Definition: corr2pt_4spinor.cpp:572
Corr2pt_4spinor::init
void init()
Definition: corr2pt_4spinor.cpp:44
Corr2pt_4spinor::meson_momentum_correlator
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)
Definition: corr2pt_4spinor.cpp:391
Corr2pt_4spinor::Corr2pt_4spinor
Corr2pt_4spinor(GammaMatrixSet *gmset)
Definition: corr2pt_4spinor.h:56
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Corr2pt_4spinor::m_filename_output
std::string m_filename_output
Definition: corr2pt_4spinor.h:51
gammaMatrixSet.h
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512