CHROMA
baryon_seqsrc_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Construct baryon sequential sources.
4  */
5 
6 #ifndef __baryon_seqsrc_w_h__
7 #define __baryon_seqsrc_w_h__
8 
10 
11 namespace Chroma
12 {
13 
14  //! Baryon-Baryon seqsources have a time order phase
15  /*! @ingroup hadron */
16  class BaryonSeqSourceBase : public HadronSeqSource<LatticePropagator>
17  {
18  public:
19  //! Virtual destructor to help with cleanup;
20  virtual ~BaryonSeqSourceBase() {}
21 
22  //! Construct the source
23  virtual LatticePropagator operator()(const multi1d<LatticeColorMatrix>& u,
24  const multi1d<ForwardProp_t>& forward_headers,
25  const multi1d<LatticePropagator>& forward_props) = 0;
26 
27  protected:
28  //! Combine projection with time-ordering
29  virtual LatticePropagator projectBaryon(const LatticePropagator& src_prop_tmp,
30  const multi1d<ForwardProp_t>& forward_headers);
31 
32  //! Time-ordering phase of source and sink hadron states
33  virtual Complex timeOrder() const;
34 
35  //! Convenience function to yank the boundary condition from the forward prop headers
36  virtual void setBC(const multi1d<ForwardProp_t>& forward_headers);
37 
38  //! Set bc
39  virtual multi1d<int>& getBC() = 0;
40 
41  //! Get bc
42  virtual const multi1d<int>& getBC() const = 0;
43  };
44 
45 } // end namespace Chroma
46 
47 
48 #endif
Baryon-Baryon seqsources have a time order phase.
virtual ~BaryonSeqSourceBase()
Virtual destructor to help with cleanup;.
virtual multi1d< int > & getBC()=0
Set bc.
virtual Complex timeOrder() const
Time-ordering phase of source and sink hadron states.
virtual LatticePropagator projectBaryon(const LatticePropagator &src_prop_tmp, const multi1d< ForwardProp_t > &forward_headers)
Combine projection with time-ordering.
virtual LatticePropagator operator()(const multi1d< LatticeColorMatrix > &u, const multi1d< ForwardProp_t > &forward_headers, const multi1d< LatticePropagator > &forward_props)=0
Construct the source.
virtual const multi1d< int > & getBC() const =0
Get bc.
virtual void setBC(const multi1d< ForwardProp_t > &forward_headers)
Convenience function to yank the boundary condition from the forward prop headers.
Definition: baryon_2pt_w.cc:50
Construct hadron sequential sources.
Construct hadron sequential sources.
multi1d< ForwardProp_t > & forward_headers
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
static multi1d< LatticeColorMatrix > u