CHROMA
inline_prop_3pt_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_prop_3pt_h__
9 #define __inline_prop_3pt_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 InlineProp3ptEnv
20  {
21  extern const std::string name;
22  bool registerAll();
23 
24  // The flavors
26 
27  //! Parameter structure
28  /*! \ingroup inlinehadron */
29  struct Params
30  {
31  Params();
32  Params(XMLReader& xml_in, const std::string& path);
33 
34  unsigned long frequency;
35 
36  struct Operator_t{
37  int t ; /*!< time for insersion */
38  multi1d<int> p ; /*!< the momentum inserted */
39  int gamma ; /*!< insersion operator gamma Matrix 0..15 */
40  Complex f ; /*!< overal factor */
41  } ;
42 
43  struct Param_t
44  {
45  Operator_t op ; /*! the operator */
46  multi1d<GroupXML_t> chi ; /*! dilutions */
47  } param;
48 
49 
51  {
56 
57  std::string xml_file; // Alternate XML file pattern
58 
59  void write(XMLWriter& xml_out, const std::string& path);
60 
61  };
62 
63 
64  //! Inline measurement of stochastic baryon operators
65  /*! \ingroup inlinehadron */
67  protected:
68  //! Do the measurement
69  void func(const unsigned long update_no,
70  XMLWriter& xml_out);
71 
72  private:
73 
74 
76 
77  public:
79  InlineMeas(const Params& p) : params(p) {}
81 
82  unsigned long getFrequency(void) const {return params.frequency;}
83 
84  //! Do the measurement
85  void operator()(const unsigned long update_no,
86  XMLWriter& xml_out);
87 
88  };
89 
90  } // name space InlineProp3ptEnv
91 
92 }
93 
94 #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.
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::InlineProp3ptEnv::Params::Param_t param
void write(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineProp3ptEnv::Params::NamedObject_t named_obj