CHROMA
inline_disco_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline measurement of stochastic 3pt functions.
4  *
5  * spectroscopy
6  */
7 
8 #ifndef __inline_disco_h__
9 #define __inline_disco_h__
10 
11 #include "chromabase.h"
13 #include "io/qprop_io.h"
14 //#include <map>
15 
16 namespace Chroma
17 {
18  /*! \ingroup inlinehadron */
19  namespace InlineDiscoEnv
20  {
21  extern const std::string name;
22  bool registerAll();
23 
24  // The flavors
25  //! Parameter structure
26  /*! \ingroup inlinehadron */
27  struct Params
28  {
29  Params();
30  Params(XMLReader& xml_in, const std::string& path);
31 
32  unsigned long frequency;
33 
34  struct Param_t
35  {
36  int max_path_length ; /*! maximum displacement path */
37  int p2_max ; /*! maximum p2 */
38  multi1d<GroupXML_t> chi ; /*! dilutions */
39  std::string mass_label ; /*! a std::string flag maybe used in analysis*/
40  } param;
41 
43  {
47 
48  std::string xml_file; // Alternate XML file pattern
49 
50  void write(XMLWriter& xml_out, const std::string& path);
51 
52  };
53 
54 
55  //! Inline measurement of stochastic baryon operators
56  /*! \ingroup inlinehadron */
58  protected:
59  //! Do the measurement
60  void func(const unsigned long update_no,
61  XMLWriter& xml_out);
62 
63  private:
64 
65 
67 
68  public:
70  InlineMeas(const Params& p) : params(p) {}
72 
73  unsigned long getFrequency(void) const {return params.frequency;}
74 
75  //! Do the measurement
76  void operator()(const unsigned long update_no,
77  XMLWriter& xml_out);
78 
79  };
80 
81  } // name space InlineDiscoEnv
82 
83 }
84 
85 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline measurement of stochastic baryon operators.
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
void func(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
const std::string name
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Routines associated with Chroma propagator IO.
struct Chroma::InlineDiscoEnv::Params::NamedObject_t named_obj
struct Chroma::InlineDiscoEnv::Params::Param_t param
void write(XMLWriter &xml_out, const std::string &path)