CHROMA
inline_prop_matelem_colorvec_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Compute the matrix element of LatticeColorVector*M^-1*LatticeColorVector
4  *
5  * Propagator calculation on a colorstd::vector
6  */
7 
8 #ifndef __inline_prop_matelem_colorvec_w_h__
9 #define __inline_prop_matelem_colorvec_w_h__
10 
11 #include "chromabase.h"
13 #include "io/qprop_io.h"
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlinehadron */
18  namespace InlinePropMatElemColorVecEnv
19  {
20  bool registerAll();
21 
22  //! Parameter structure
23  /*! \ingroup inlinehadron */
24  struct Params
25  {
26  Params();
27  Params(XMLReader& xml_in, const std::string& path);
28 
29  unsigned long frequency;
30 
31  struct Param_t
32  {
33  int num_vecs; /*!< Number of color vectors to use */
34  int decay_dir; /*!< Decay direction */
35  multi1d<int> t_sources; /*!< Array of time slice sources for props */
36  std::string mass_label; /*!< Some kind of mass label */
37  } param;
38 
40  {
41  std::string gauge_id; /*!< Gauge field */
42  std::string colorvec_id; /*!< LatticeColorVector EigenInfo */
43  std::string prop_id; /*!< Id for input propagator solutions */
44  std::string prop_op_file; /*!< File name for propagator matrix elements */
46 
47  std::string xml_file; // Alternate XML file pattern
48  };
49 
50 
51  //! Inline task for compute LatticeColorVector matrix elements of a propagator
52  /*! \ingroup inlinehadron */
54  {
55  public:
57  InlineMeas(const Params& p) : params(p) {}
59 
60  unsigned long getFrequency(void) const {return params.frequency;}
61 
62  //! Do the measurement
63  void operator()(const unsigned long update_no,
64  XMLWriter& xml_out);
65 
66  protected:
67  //! Do the measurement
68  void func(const unsigned long update_no,
69  XMLWriter& xml_out);
70 
71  private:
73  };
74 
75  } // namespace PropMatElemColorVec
76 
77 }
78 
79 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline task for compute LatticeColorVector matrix elements of a propagator.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
unsigned long getFrequency(void) const
Tell me how often I should measure this beastie.
void func(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Routines associated with Chroma propagator IO.
struct Chroma::InlinePropMatElemColorVecEnv::Params::NamedObject_t named_obj
struct Chroma::InlinePropMatElemColorVecEnv::Params::Param_t param