CHROMA
inline_distillution_noise.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Setup the origin and noise factory for distillution
4  *
5  * Setup for distillution
6  */
7 
8 #ifndef __inline_distillution_noise_h__
9 #define __inline_distillution_noise_h__
10 
11 #include "chromabase.h"
13 
14 namespace Chroma
15 {
16  /*! \ingroup inlinehadron */
17  namespace InlineDistillutionNoiseEnv
18  {
19  bool registerAll();
20 
21  //! Parameter structure
22  /*! \ingroup inlinehadron */
23  struct Params
24  {
25  Params();
26  Params(XMLReader& xml_in, const std::string& path);
27 
28  unsigned long frequency;
29 
30  struct Param_t
31  {
32  int decay_dir; /*!< Decay direction */
33  std::string ensemble; /*!< Ensem label */
34  std::string sequence; /*!< Sequence label - the trajectory */
35  };
36 
38  {
39  std::string distillution_id;/*!< Holds state for forming noises, including the origin */
40  };
41 
44  std::string xml_file; // Alternate XML file pattern
45  };
46 
47 
48  //! Inline task for setting up distillution
49  /*! \ingroup inlinehadron */
51  {
52  public:
54  InlineMeas(const Params& p) : params(p) {}
56 
57  unsigned long getFrequency(void) const {return params.frequency;}
58 
59  //! Do the measurement
60  void operator()(const unsigned long update_no,
61  XMLWriter& xml_out);
62 
63  protected:
64  //! Do the measurement
65  void func(const unsigned long update_no,
66  XMLWriter& xml_out);
67 
68  private:
70  };
71 
72  } // namespace PropMatElemColorVec
73 
74 }
75 
76 #endif
Abstract inline measurements.
Primary include file for CHROMA library code.
Inline task for setting up distillution.
void func(const unsigned long update_no, XMLWriter &xml_out)
Do the measurement.
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.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979