~maddevelopers/mg5amcnlo/3.0.2-alpha0

« back to all changes in this revision

Viewing changes to HELAS/iovgox.f

Added Template and HELAS into bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
      subroutine iovgox(fi,fo,vc,gc , vertex)
 
2
c
 
3
c This subroutine computes an amplitude of the fermion-fermion-vector
 
4
c coupling in the case when they are all color octets.
 
5
c
 
6
c input:
 
7
c       complex fi(6)          : flow-in  fermion                   |fi>
 
8
c       complex fo(6)          : flow-out fermion                   <fo|
 
9
c       complex vc(6)          : input    vector                      v
 
10
c       complex gc(2)          : coupling constants                  gvf
 
11
c
 
12
c output:
 
13
c       complex vertex         : amplitude                     <fo|v|fi>
 
14
c     
 
15
      implicit none
 
16
      double complex fi(6),fo(6),gc(2),vc(6),vertex
 
17
 
 
18
      double precision rZero, rOne
 
19
      parameter( rZero = 0.0d0 )
 
20
      double complex cImag, cZero
 
21
      parameter( cImag = ( 0.0d0, 1.0d0 ), cZero = ( 0.0d0, 0.0d0 ) )
 
22
 
 
23
      vertex =  gc(1)*( (fo(3)*fi(1)+fo(4)*fi(2))*vc(1)
 
24
     &                 +(fo(3)*fi(2)+fo(4)*fi(1))*vc(2)
 
25
     &                 -(fo(3)*fi(2)-fo(4)*fi(1))*vc(3)*cImag
 
26
     &                 +(fo(3)*fi(1)-fo(4)*fi(2))*vc(4)        )
 
27
 
 
28
      if ( gc(2).ne.cZero ) then
 
29
         vertex = vertex
 
30
     &          + gc(2)*( (fo(1)*fi(3)+fo(2)*fi(4))*vc(1)
 
31
     &                   -(fo(1)*fi(4)+fo(2)*fi(3))*vc(2)
 
32
     &                   +(fo(1)*fi(4)-fo(2)*fi(3))*vc(3)*cImag
 
33
     &                   -(fo(1)*fi(3)-fo(2)*fi(4))*vc(4)        )
 
34
      end if
 
35
c
 
36
      return
 
37
      end