CHROMA
BuildingBlocks_w.h
Go to the documentation of this file.
1 //###################################################################################//
2 //###################################################################################//
3 // //
4 // BuildingBlocks.hh //
5 // //
6 //###################################################################################//
7 //###################################################################################//
8 // //
9 // description: //
10 // //
11 // BuildingBlocks combines a gauge field, a forward propagator, and backward (or //
12 // sequential) propagators to form the corresponding building blocks (three point //
13 // functions). //
14 // //
15 // history: //
16 // //
17 // There were at least four versions of "MIT" code. Andrew Pochinsky has a c //
18 // version. Dmitri Dolgov has a c++ version. Dru B. Renner has c and c++ versions. //
19 // All were independent and checked against one another. Of course, all were //
20 // developed under the guidance of John W. Negele. The code here is just the //
21 // "Building Blocks" portion of the MIT code. //
22 // //
23 // authors: //
24 // //
25 // Dru B. Renner, dru@mit.edu, 2002 - port of Building Blocks (MIT) code to qdp++ //
26 // //
27 // There are others who have contributed since the code has been migrated to qdp++. //
28 // The cvs log entries indicate these other authors. //
29 // //
30 //###################################################################################//
31 //###################################################################################//
32 
33 #ifndef INCLUDE_BuildingBlocks_hh
34 #define INCLUDE_BuildingBlocks_hh
35 
36 namespace Chroma {
37 //###################################################################################//
38 // CVS Header //
39 //###################################################################################//
40 
41 static const char* const CVSBuildingBlocks_hh =
42  "$Header: /home/bjoo/fromJLAB/cvsroot/chroma_base/lib/meas/hadron/BuildingBlocks_w.h,v 3.2 2006-10-14 04:52:16 edwards Exp $";
43 
44 //###################################################################################//
45 // Record CVS Info for BuildingBlocks.hh and BuildingBlocks.cc //
46 //###################################################################################//
47 
48 void CVSBuildingBlocks( TextWriter & Out );
49 
50 //###################################################################################//
51 // Used to Set Requested Link Patterns //
52 //###################################################################################//
53 
54 typedef void (*BBLinkPattern)( bool & DoThisPattern,
55  bool & DoFurtherPatterns,
56  multi1d< unsigned short int > & LinkPattern );
57 
58 //###################################################################################//
59 // Construct Building Blocks //
60 //###################################################################################//
61 
62 void BuildingBlocks( const multi1d< LatticePropagator > & B,
63  const LatticePropagator & F,
64  const multi1d< LatticeColorMatrix > & U,
65  const multi1d< int > & GammaInsertions,
66  const multi1d< int > & Flavors,
67  const unsigned short int MaxNLinks,
68  const BBLinkPattern LinkPattern,
69  const SftMom & Phases,
70  const SftMom & PhasesCanonical,
71  const multi2d< std::string > & BinaryDataFileNames,
72  const signed short int T1,
73  const signed short int T2,
74  const signed short int Tsrc,
75  const signed short int Tsnk,
76  const std::string& SeqSourceType,
77  const multi1d< int >& SnkMom,
78  const signed short int DecayDir,
79  const bool TimeReverse,
80  const bool Translate );
81 
82 //###################################################################################//
83 // Arguments //
84 //###################################################################################//
85 // //
86 // B is an array of several backward propagators. //
87 // //
88 // F is a forward propagator. //
89 // //
90 // U is a gauge field. //
91 // //
92 // MaxNLinks is the maximum number of links to include in operators. //
93 // //
94 // LinkPattern is a pointer to a function specifing which link patterns to include. //
95 // //
96 // BinaryDataFileNames is an array of file name patterns with an order corresponding //
97 // to B. //
98 // //
99 // T1 is the earliest time slice for which building blocks will be calculated. //
100 // //
101 // T2 is the latest time slice for which building blocks will be calculated. //
102 // //
103 // This function will fill many files with the operators corresponding to each //
104 // element of B. //
105 // //
106 //###################################################################################//
107 //###################################################################################//
108 
109 } // end namespace Chroma
110 
111 #endif
112 
113 //###################################################################################//
114 //###################################################################################//
Fourier transform phase factor support.
Definition: sftmom.h:35
void(* BBLinkPattern)(bool &DoThisPattern, bool &DoFurtherPatterns, multi1d< unsigned short int > &LinkPattern)
Used to Set Requested Link Patterns.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
static const char *const CVSBuildingBlocks_hh
void BuildingBlocks(const multi1d< LatticePropagator > &B, const LatticePropagator &F, const multi1d< LatticeColorMatrix > &U, const multi1d< int > &GammaInsertions, const multi1d< int > &Flavors, const unsigned short int MaxNLinks, const BBLinkPattern LinkPattern, const SftMom &Phases, const SftMom &PhasesCanonical, const multi2d< std::string > &BinaryDataFileNames, const signed short int T1, const signed short int T2, const signed short int Tsrc, const signed short int Tsnk, const std::string &SeqSourceType, const multi1d< int > &SnkMom, const signed short int DecayDir, const bool TimeReverse, const bool ShiftFlag)
void CVSBuildingBlocks(TextWriter &Out)
::std::string string
Definition: gtest.h:1979
multi1d< LatticeColorMatrix > U
static INTERNAL_PRECISION F