CHROMA
inline_spectrum_s.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline staggered spectrum calculations
4  *
5  * Staggered spectrum calculations
6  */
7 
8 #ifndef __inline_spectrum_s_h__
9 #define __inline_spectrum_s_h__
10 
11 #include "chromabase.h"
15 #include "io/xml_group_reader.h"
16 #include "meas/glue/wloop.h"
17 
18 namespace Chroma
19 {
20  /*! \ingroup inlinehadron */
21  namespace InlineStaggeredSpectrumEnv
22  {
23  extern const std::string name;
24  bool registerAll();
25  }
26 
27  //! Parameter structure
28  /*! \ingroup inlinehadron */
30  {
32  InlineStaggeredSpectrumParams(XMLReader& xml_in, const std::string& path);
33  void write(XMLWriter& xml_out, const std::string& path);
34 
35  unsigned long frequency;
36 
37  struct Param_t
38  {
39  bool Meson_local; // Meson spectroscopy
40  bool Meson_charm_local; // Meson charm spectroscopy
41  bool Meson_charm_noisy_local; // Meson charm spectroscopy
42  bool Pion_nondegen_noisy_local; // Non-degenerate spectroscopy
43 
44  bool Pion_nondegen_noisy_local2; // Non-degenerate spectroscopy
45  bool Pion_nondegen_noisy_local3; // Non-degenerate spectroscopy
46  bool Pion_nondegen_noisy_local4; // Non-degenerate spectroscopy
47 
48  bool Wilson_loops; // Wilson loops for alpha_s
49  bool Baryon_local; // Baryons spectroscopy
50  bool Baryon_vary; // Baryons spectroscopy variational
51  bool LocalPion_vary; // local pion spectroscopy variational
52  bool LocalScalar_vary; // local scalar spectroscopy variational
53  bool disconnected_local ; // disconnected loops local
54  bool disconnected_fuzz ; // disconnected loops fuzz
57  bool eight_pions; // all pseudoscalar meson tastes
58  bool eight_scalars; // all scalar meson tastes
59  bool eight_rhos; // all std::vector meson tastes
60 
61  // choose parameters
64 
68 
69 
70  //Parameters for Gauge-fixing
71  Real GFAccu; // Gauge fixing tolerance
72  Real OrPara; // Gauge fixing over-relaxation param
73  int GFMax; // Maximum gauge fixing iterations
74 
75  // parameters for disconnected loops
76  int Nsamp;
77  int CFGNO ;
86 
87  int fuzz_width ;
88 
90 
91  multi1d<int> nrow;
92  multi1d<int> t_srce;
93 
94  } param;
95 
96  struct Quark_Prop_t
97  {
98  Real Mass; // Staggered mass
99  Real u0; // Tadpole Factor
100 
101  SysSolverCGParams invParam; // inversion parameters
102 
104 
106  {
109 
110  std::string xml_file; // Alternate XML file pattern
111  };
112 
113 
114  //! Inline measurement of Wilson loops
115  /*! \ingroup inlinehadron */
117  {
118  public:
122 
123  unsigned long getFrequency(void) const {return params.frequency;}
124 
125  //! Do the measurement
126  void operator()(const unsigned long update_no,
127  XMLWriter& xml_out);
128 
129  protected:
130  //! Do the measurement
131  void func(const unsigned long update_no,
132  XMLWriter& xml_out);
133 
134  private:
136  };
137 
138 }
139 
140 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline measurement of Wilson loops.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
InlineStaggeredSpectrum(const InlineStaggeredSpectrum &p)
void func(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
InlineStaggeredSpectrumParams params
InlineStaggeredSpectrum(const InlineStaggeredSpectrumParams &p)
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
Enums for the different types of stochastic source.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Hold group xml and type id.
struct Chroma::InlineStaggeredSpectrumParams::Quark_Prop_t prop_param
struct Chroma::InlineStaggeredSpectrumParams::NamedObject_t named_obj
struct Chroma::InlineStaggeredSpectrumParams::Param_t param
void write(XMLWriter &xml_out, const std::string &path)
Params for CG inverter.
Solve a CG1 system.
Read an XML group as a std::string.