CHROMA
scalar_local_s.h
Go to the documentation of this file.
1 #ifndef SCALAR_LOCAL_S_H
2 #define SCALAR_LOCAL_S_H
3 
6 
7 namespace Chroma {
8 
9  class staggered_hadron_corr;
10 
12 
13  public:
14  void compute(LatticeStaggeredPropagator& quark_prop_A,
15  LatticeStaggeredPropagator& quark_prop_B, int j_decay);
16 
17  void compute(multi1d<LatticeStaggeredPropagator>& quark_props, int j_decay) {
18  if (quark_props.size() != 2) {
19  QDPIO::cerr << "staggered_local_scalar::compute(multi1d<LatticeStaggeredPropagator>&, int) : Array arg must contain 2 props\n";
20  QDP_abort(1);
21  } else {
22  compute(quark_props[0], quark_props[1], j_decay);
23  }
24  }
25 
26  staggered_local_scalar(int t_len, const multi1d<LatticeColorMatrix>& u_in,
27  Stag_shift_option type_of_shift_in = SYM_GAUGE_INVAR)
28  : staggered_hadron_corr(t_len, no_pions, u_in, type_of_shift_in)
29  {
30  outer_tag = "Scalar";
31  inner_tag = "Sc";
32 
33  tag_names.resize(no_pions);
34  for (int i=0;i<no_pions;++i) {
35  std::ostringstream tag;
36  tag << "re_sc" << i;
37  tag_names[i] = tag.str();
38  }
39  }
40 
42 
43  protected:
44 
45  private:
46  static const int no_pions = 1;
47 
48  };
49 
50 } //end namespace
51 
52 #endif
multi1d< std::string > tag_names
void compute(LatticeStaggeredPropagator &quark_prop_A, LatticeStaggeredPropagator &quark_prop_B, int j_decay)
void compute(multi1d< LatticeStaggeredPropagator > &quark_props, int j_decay)
staggered_local_scalar(int t_len, const multi1d< LatticeColorMatrix > &u_in, Stag_shift_option type_of_shift_in=SYM_GAUGE_INVAR)
int j_decay
Definition: meslate.cc:22
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
int i
Definition: pbg5p_w.cc:55
std::string tag(const std::string &prefix)
Definition: octave.h:15