CHROMA
inline_building_blocks_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Inline construction of BuildingBlocks
4  *
5  * Building Blocks on forward and sequential props
6  */
7 
8 #ifndef __inline_building_blocks_h__
9 #define __inline_building_blocks_h__
10 
11 #include "chromabase.h"
13 #include "io/qprop_io.h"
14 
15 namespace Chroma
16 {
17  /*! \ingroup inlinehadron */
18  namespace InlineBuildingBlocksEnv
19  {
20  extern const std::string name;
21  bool registerAll();
22  }
23 
24  //! Parameter structure
25  /*! \ingroup inlinehadron */
27  {
29  InlineBuildingBlocksParams(XMLReader& xml_in, const std::string& path);
30  void write(XMLWriter& xml_out, const std::string& path);
31 
32  unsigned long frequency;
33 
34  //! Parameters
35  struct Param_t
36  {
37  bool use_sink_offset; /*!< should insertion origin be sink_mom */
38  int mom2_max; /*!< (mom)^2 <= mom2_max */
39  int links_max; /*!< maximum number of links */
40  bool canonical; /*!< True if mom in BB filenames is canonicalized */
41  bool time_reverse; /*!< Time reverse the building blocks */
42  bool translate; /*!< Shifts the BB correlator output to start at t_source as 0*/
43  GroupXML_t cfs; /*!< Fermion state */
44  } param;
45 
46  //! Propagators
48  {
49  std::string BkwdPropId; /*!< backward propagator */
50  std::string BkwdPropG5Format; /*!< backward propagators Gamma5 Format */
51  int GammaInsertion; /*!< second gamma insertion */
52  std::string Flavor; /*!< Flavor id - values like U, D, S, C, B, T */
53  std::string BBFileNamePattern; /*!< BB output file name pattern */
54  };
55 
56  //! BB output
57  struct BB_out_t
58  {
60  std::string GaugeId; /*!< Input Gauge id */
61  std::string FrwdPropId; /*!< Input forward prop */
62  multi1d<NamedObject_t> BkwdProps;
63  } bb;
64 
65  std::string xml_file; // Alternate XML file pattern
66  };
67 
68 
69  //! Inline measurement of 3-pt functions writing building-blocks
70  /*! \ingroup inlinehadron */
72  {
73  public:
77 
78  unsigned long getFrequency(void) const {return params.frequency;}
79 
80  //! Do the measurement
81  void operator()(const unsigned long update_no,
82  XMLWriter& xml_out);
83 
84  protected:
85  //! Do the measurement
86  void func(const unsigned long update_no,
87  XMLWriter& xml_out);
88 
89  private:
91  };
92 
93 }
94 
95 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline measurement of 3-pt functions writing building-blocks.
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.
InlineBuildingBlocksParams params
InlineBuildingBlocks(const InlineBuildingBlocks &p)
InlineBuildingBlocks(const InlineBuildingBlocksParams &p)
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.
Hold group xml and type id.
void write(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineBuildingBlocksParams::BB_out_t bb
struct Chroma::InlineBuildingBlocksParams::Param_t param