CHROMA
util_compute_8_pions_s.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Wrapper code to compute staggered meson correlators.
3  *
4  * Spectrum calculations
5  */
6 
7 #include "handle.h"
8 //#include "actions/ferm/fermbcs/fermbcs.h"
10 #include "meas/hadron/hadron_s.h"
11 #include "meas/smear/fuzz_smear.h"
12 #include "meas/sources/srcfil.h"
13 #include "util/ferm/transf.h"
14 #include "meas/hadron/pions_s.h"
16 
17 
19 
20 namespace Chroma {
21 
22 
23  void compute_8_pions( multi1d<LatticeStaggeredPropagator> & stag_prop,
24  const multi1d<LatticeColorMatrix> & u ,
25  bool gauge_shift, bool sym_shift,
26  XMLWriter & xml_out,
27  int j_decay, int t_length, int t_source,
28  bool binary_meson_dump, std::string binary_name){
29 
30  Stag_shift_option type_of_shift;
31 
32  if((gauge_shift) && (sym_shift)){
33  type_of_shift=SYM_GAUGE_INVAR;
34  }else{
35  if((gauge_shift) && (!sym_shift)){
36  type_of_shift=GAUGE_INVAR;
37  }else{
38  if((!gauge_shift) && (sym_shift)){
39  type_of_shift=SYM_NON_GAUGE_INVAR;
40  }else{
41  if((!gauge_shift) && (!sym_shift)){
42  type_of_shift=NON_GAUGE_INVAR ;
43  }
44  }
45  }
46  }
47 
48  staggered_pions pseudoscalar(t_length, u, type_of_shift) ;
49 
50 
51 
52  // ---------- LL ----------
53  pseudoscalar.compute(stag_prop,j_decay);
54 
55 
56  if(binary_meson_dump){
57 
58  std::string tagged_filename_base;
59  tagged_filename_base=binary_name+"PS.LL.";
60  pseudoscalar.binary_dump(t_source,tagged_filename_base);
61 
62  }else{
63 
64  push(xml_out,"Pseudoscalars");
65  push(xml_out, "Lsink_Lsrc");
66  pseudoscalar.dump(t_source,xml_out);
67  pop(xml_out); // Lsink_Lsrc
68  pop(xml_out); //Pseudoscalars
69 
70  }
71 
72  // -------------------------
73 
74 
75 
76  QDPIO::cout << "Computed 8 basic pseudoscalars" << std::endl;
77 
78 
79  }
80 
81 
82 
83 } // end of namespace
void binary_dump(int t_source, std::string start_name)
Definition: hadron_corr_s.h:64
void dump(int t_source, XMLWriter &xml_out)
Definition: hadron_corr_s.h:33
void compute(multi1d< LatticeStaggeredPropagator > &quark_props, int j_decay)
Definition: pions_s.cc:69
Fermion actions.
Fuzzed sources.
Hadronic observables.
Class for counted reference semantics.
int j_decay
Definition: meslate.cc:22
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
@ SYM_NON_GAUGE_INVAR
void compute_8_pions(multi1d< LatticeStaggeredPropagator > &stag_prop, const multi1d< LatticeColorMatrix > &u, bool gauge_shift, bool sym_shift, XMLWriter &xml_out, int j_decay, int t_length, int t_source, bool binary_meson_dump, std::string binary_name)
pop(xml_out)
::std::string string
Definition: gtest.h:1979
Point source construction.
Compute staggered quark propagator.