CHROMA
key_hadron_2pt_corr.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Hadron 2pt correlators
4  */
5 
6 #ifndef __key_hadron_2pt_corr_h__
7 #define __key_hadron_2pt_corr_h__
8 
9 #include "chromabase.h"
10 
11 namespace Chroma
12 {
13 
14  //----------------------------------------------------------------------------
15  //! Key for Hadron 2pt corr
17  {
18  int num_vecs; /*!< Number of vectors used in this corr */
19 
20  std::string src_name; /*!< Some std::string label for the operator */
21  std::string src_smear; /*!< Some std::string label for the smearing of this operator */
22  multi1d<int> src_lorentz; /*!< Source Lorentz indices */
23  int src_spin; /*!< Source Dirac spin indices */
24 
25  std::string snk_name; /*!< Some std::string label for the operator */
26  std::string snk_smear; /*!< Some std::string label for the smearing of this operator */
27  multi1d<int> snk_lorentz; /*!< Sink Lorentz indices */
28  int snk_spin; /*!< Sink Dirac spin indices */
29 
30  multi1d<int> mom; /*!< D-1 momentum of the sink operator */
31  std::string mass; /*!< Some std::string label for the mass(es) in the corr */
32  std::string ensemble; /*!< Label for the ensemble */
33  };
34 
35  //----------------------------------------------------------------------------
36  //! Used for error output
37 // std::ostream& operator<<(std::ostream& os, const KeyHadron2PtCorr_t& d);
38 
39  //----------------------------------------------------------------------------
40  //! KeyHadron2PtCorr reader
41  void read(XMLReader& xml, const std::string& path, KeyHadron2PtCorr_t& param);
42 
43  //! KeyHadron2PtCorr writer
44  void write(XMLWriter& xml, const std::string& path, const KeyHadron2PtCorr_t& param);
45 
46  //----------------------------------------------------------------------------
47  //! KeyHadron2PtCorr reader
48  void read(BinaryReader& bin, KeyHadron2PtCorr_t& param);
49 
50  //! KeyHadron2PtCorr writer
51  void write(BinaryWriter& bin, const KeyHadron2PtCorr_t& param);
52 
53 } // namespace ColorVec
54 
55 #endif
Primary include file for CHROMA library code.
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.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979
Key for Hadron 2pt corr.