CHROMA
key_glue_matelem.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Key for glueball colorstd::vector matrix elements
4  */
5 
6 #ifndef __key_glue_matelem_h__
7 #define __key_glue_matelem_h__
8 
9 #include "chromabase.h"
10 #include "util/ferm/key_val_db.h"
11 
12 namespace Chroma
13 {
14  //----------------------------------------------------------------------------
15  /*!
16  * \ingroup gauge
17  * @{
18  */
19  //! Glue operator
21  {
22  int t_slice; /*!< Glue operator time slice */
23  int left; /*!< Left B field direction */
24  int right; /*!< Right B field direction */
25  multi1d<int> displacement; /*!< Displacement dirs of right colorstd::vector */
26  multi1d<int> mom; /*!< D-1 momentum of this operator */
27  };
28 
29 
30  //! Glue operator
32  {
33  multi1d<ComplexD> op; /*!< Colorstd::vector source/sink (diagonal) with momentum projection */
34  };
35 
36 
37  //----------------------------------------------------------------------------
38  //! Holds key and value as temporaries
40  {
43  };
44 
45  //----------------------------------------------------------------------------
46  //! GlueElementalOperator reader
47  void read(BinaryReader& bin, KeyGlueElementalOperator_t& param);
48 
49  //! GlueElementalOperator write
50  void write(BinaryWriter& bin, const KeyGlueElementalOperator_t& param);
51 
52  //! GlueElementalOperator reader
53  void read(XMLReader& xml, const std::string& path, KeyGlueElementalOperator_t& param);
54 
55  //! GlueElementalOperator writer
56  void write(XMLWriter& xml, const std::string& path, const KeyGlueElementalOperator_t& param);
57 
58 
59  //----------------------------------------------------------------------------
60  //! GlueElementalOperator reader
61  void read(BinaryReader& bin, ValGlueElementalOperator_t& param);
62 
63  //! GlueElementalOperator write
64  void write(BinaryWriter& bin, const ValGlueElementalOperator_t& param);
65 
66  /*! @} */ // end of group ferm
67 
68 } // namespace Chroma
69 
70 #endif
Primary include file for CHROMA library code.
Serializable value harness.
Definition: key_val_db.h:69
Serializable key harness.
Definition: key_val_db.h:21
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams &param)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams &param)
Writer parameters.
Key and values for DB.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Holds key and value as temporaries.
SerialDBKey< KeyGlueElementalOperator_t > key
SerialDBData< ValGlueElementalOperator_t > val