colorfull is hosted by Hepforge, IPPP Durham
ColorFull  1.1
/data/Documents/eclipse/workspace/ColorFull/Trace_basis.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*
3  * Trace_basis.h
4  * Contains the declarations of the class Trace_basis, related types and operators
5  * Created on: Aug 9, 2012
6  * Author: Malin Sjodahl
7  */
8 
9 #ifndef COLORFULL_Trace_basis_h
10 #define COLORFULL_Trace_basis_h
11 
12 #include "Trace_type_basis.h"
13 
14 namespace ColorFull {
15 
16 
20 public:
21 
24  initialize();
25  }
26 
29  Trace_basis( int n_quark, int n_gluon ){
30  initialize();
31  create_basis( n_quark, n_gluon );
32  }
33 
39  Trace_basis( int n_quark, int n_gluon, int n_loop ){
40  initialize();
41  create_basis( n_quark, n_gluon, n_loop );
42  }
43 
44 
45  /******************** Functions for basis creation **********************/
46 
50  void create_basis( int n_q, int n_g );
51 
54  void create_basis( int n_q, int n_g, int n_loop );
55 
56 
57 private:
58 
59  /******************** Internal function for basis creation **********************/
60 
62  void initialize(){
63  nq=0;
64  ng=0;
65  tree_level_gluon_basis = false;
66  orthogonal_basis = false;
67  trace_basis = true;
68  }
69 
74  Col_amp create_trace_basis( int n_q, int n_g, int n_loop ) const;
75 
78  Col_amp connect_quarks( int n_quark ) const;
79 
82  Col_amp add_one_gluon( const Col_str & Cs, int g_new ) const;
83 
86  Col_amp add_one_gluon( const Col_amp & Old_basis, int n_q, int g_new, int n_loop ) const;
87 
88 };
89 
90 } /* namespace ColorFull */
91 #endif /* COLORFULL_Trace_basis_h */
Trace_basis(int n_quark, int n_gluon)
Definition: Trace_basis.h:29
int ng
Definition: Col_basis.h:46
Definition: Col_amp.h:24
Definition: Trace_type_basis.h:20
int nq
Definition: Col_basis.h:42
Trace_basis(int n_quark, int n_gluon, int n_loop)
Definition: Trace_basis.h:39
Definition: Col_amp.h:15
void create_basis(int n_q, int n_g)
bool tree_level_gluon_basis
Definition: Col_basis.h:348
Definition: Trace_basis.h:19
Definition: Col_str.h:26
bool trace_basis
Definition: Col_basis.h:347
bool orthogonal_basis
Definition: Col_basis.h:349
Trace_basis()
Default constructor.
Definition: Trace_basis.h:23