CHROMA
Public Member Functions | Static Private Attributes | List of all members
Chroma::staggered_scalars Class Reference

#include <stag_scalars_s.h>

Inheritance diagram for Chroma::staggered_scalars:
Chroma::staggered_hadron_corr

Public Member Functions

void compute (multi1d< LatticeStaggeredPropagator > &quark_props, int j_decay)
 
 staggered_scalars (int t_len, const multi1d< LatticeColorMatrix > &uin, Stag_shift_option type_of_shift_in=SYM_GAUGE_INVAR)
 
virtual ~staggered_scalars ()
 
- Public Member Functions inherited from Chroma::staggered_hadron_corr
void dump (int t_source, XMLWriter &xml_out)
 
void binary_dump (int t_source, std::string start_name)
 
 staggered_hadron_corr (int t_len, int t_chan, const multi1d< LatticeColorMatrix > &uin, Stag_shift_option type_of_shift_in)
 
virtual ~staggered_hadron_corr ()
 

Static Private Attributes

static const int no_scalar = 16
 

Additional Inherited Members

- Protected Member Functions inherited from Chroma::staggered_hadron_corr
LatticeStaggeredPropagator shift_deltaProp (multi1d< int > &delta, const LatticeStaggeredPropagator &src)
 
- Protected Attributes inherited from Chroma::staggered_hadron_corr
multi2d< DComplex > corr_fn
 
std::string outer_tag
 
std::string inner_tag
 
multi1d< std::string > tag_names
 
multi1d< LatticeColorMatrix > u
 

Detailed Description

Definition at line 14 of file stag_scalars_s.h.

Constructor & Destructor Documentation

◆ staggered_scalars()

Chroma::staggered_scalars::staggered_scalars ( int  t_len,
const multi1d< LatticeColorMatrix > &  uin,
Stag_shift_option  type_of_shift_in = SYM_GAUGE_INVAR 
)
inline

◆ ~staggered_scalars()

virtual Chroma::staggered_scalars::~staggered_scalars ( )
inlinevirtual

Definition at line 43 of file stag_scalars_s.h.

Member Function Documentation

◆ compute()

void Chroma::staggered_scalars::compute ( multi1d< LatticeStaggeredPropagator > &  quark_props,
int  j_decay 
)
virtual

staggeredScalars

This routine computes all 16 staggered scalars.

Caveats: i) It assumes that the propagators you give have been computed in some spatially fixed gauge eg the Coulomb Gauge.

ii) This means that there is only 8 propagators corresponding to the 8 corners of the spatial cube. The props come in an array whose single index std::maps lexicographically to the corners of the cube. ie: prop_index = 0, hypercube_coord (0,0,0,0) prop_index = 1, hypercube_coord (1,0,0,0) prop_index = 2, hypercube_coord (0,1,0,0)

essentially prop_index = x + 2*y + 4*z

    iii) The assumption is that you are working in 4d 

Parameters:

 quark_props      -- The array of input propagators (Read)
 scalar_corr_fn     -- The 2d array of scalar correlation functions
                     (16, Nt)  (Write)

 j_decay          -- The time direction (has to be Nd-1 for now)
                     (Read)

Implements Chroma::staggered_hadron_corr.

Definition at line 72 of file stag_scalars_s.cc.

References Chroma::StagPhases::alpha(), Chroma::StagPhases::beta(), Chroma::staggered_hadron_corr::corr_fn, Chroma::deltaToPropIndex(), Chroma::i, j_decay, mu, Nd, nu, NUM_STAG_PIONS, NUM_STAG_PROPS, and Chroma::staggered_hadron_corr::shift_deltaProp().

Referenced by Chroma::compute_8_scalars(), and main().

Member Data Documentation

◆ no_scalar

const int Chroma::staggered_scalars::no_scalar = 16
staticprivate

Definition at line 51 of file stag_scalars_s.h.

Referenced by staggered_scalars().


The documentation for this class was generated from the following files: