More volume overlaps corrected
[u/mrichter/AliRoot.git] / ISAJET / code / zjj4.F
CommitLineData
0795afa3 1#include "isajet/pilot.h"
2 REAL*8 FUNCTION ZJJ4(P1, P2, P3, P4, P5,NHEL,IM)
3C
4C Function generated by Madgraph + hand coding
5C Returns amplitude squared summed/ave over colors
6C for the point in phase space P1,P2,P3,P4,P5
7C and helicity NHEL(1)...
8C for the process: q(im) qb(im) -> z q(im) qb(im)
9C with Madgraph code IM
10C
11#if defined(CERNLIB_IMPNONE)
12 IMPLICIT NONE
13#endif
14C
15C CONSTANTS
16C
17 INTEGER NGRAPHS, NEIGEN, NEXTERNAL
18 PARAMETER (NGRAPHS= 8,NEIGEN= 2,NEXTERNAL=5)
19 REAL*8 ZERO
20 PARAMETER (ZERO=0D0)
21C
22C ARGUMENTS
23C
24 REAL*8 P1(0:3),P2(0:3),P3(0:3),P4(0:3),P5(0:3)
25 INTEGER NHEL(NEXTERNAL),IM
26C
27C LOCAL VARIABLES
28C
29 INTEGER I,J
30 REAL*8 EIGEN_VAL(NEIGEN), EIGEN_VEC(NGRAPHS,NEIGEN)
31 COMPLEX*16 ZTEMP
32 COMPLEX*16 AMP(NGRAPHS)
33 COMPLEX*16 W1(6) , W2(6) , W3(6) , W4(6) , W5(6)
34 COMPLEX*16 W6(6) , W7(6) , W8(6) , W9(6) , W10(6)
35 COMPLEX*16 W11(6) , W12(6) , W13(6) , W14(6) , W15(6)
36 COMPLEX*16 W16(6)
37 REAL*8 GZUD(2)
38C
39C GLOBAL VARIABLES
40C
41#include "isajet/mgcoms.inc"
42C
43C COLOR DATA
44C
45 DATA EIGEN_VAL(1 )/ 5.9259259259259234D-01 /
46 DATA EIGEN_VEC(1 ,1 )/ -3.5355339059327379D-01 /
47 DATA EIGEN_VEC(2 ,1 )/ 3.5355339059327379D-01 /
48 DATA EIGEN_VEC(3 ,1 )/ -3.5355339059327379D-01 /
49 DATA EIGEN_VEC(4 ,1 )/ -3.5355339059327379D-01 /
50 DATA EIGEN_VEC(5 ,1 )/ 3.5355339059327379D-01 /
51 DATA EIGEN_VEC(6 ,1 )/ -3.5355339059327379D-01 /
52 DATA EIGEN_VEC(7 ,1 )/ 3.5355339059327379D-01 /
53 DATA EIGEN_VEC(8 ,1 )/ 3.5355339059327379D-01 /
54 DATA EIGEN_VAL(2 )/ 1.1851851851851847D+00 /
55 DATA EIGEN_VEC(1 ,2 )/ -3.5355339059327379D-01 /
56 DATA EIGEN_VEC(2 ,2 )/ -3.5355339059327379D-01 /
57 DATA EIGEN_VEC(3 ,2 )/ -3.5355339059327379D-01 /
58 DATA EIGEN_VEC(4 ,2 )/ -3.5355339059327379D-01 /
59 DATA EIGEN_VEC(5 ,2 )/ -3.5355339059327379D-01 /
60 DATA EIGEN_VEC(6 ,2 )/ -3.5355339059327379D-01 /
61 DATA EIGEN_VEC(7 ,2 )/ -3.5355339059327379D-01 /
62 DATA EIGEN_VEC(8 ,2 )/ -3.5355339059327379D-01 /
63C ----------
64C BEGIN CODE
65C ----------
66 IF(IM.EQ.4.OR.IM.EQ.8.OR.IM.EQ.12) THEN
67 GZUD(1)=GZD(1)
68 GZUD(2)=GZD(2)
69 ELSE
70 GZUD(1)=GZU(1)
71 GZUD(2)=GZU(2)
72 ENDIF
73C
74 CALL IXXXXX(P1 ,FMASS(IM),NHEL(1 ), 1,W1 )
75 CALL OXXXXX(P2 ,FMASS(IM),NHEL(2 ),-1,W2 )
76 CALL VXXXXX(P3 ,ZMASS,NHEL(3 ), 1,W3 )
77 CALL OXXXXX(P4 ,FMASS(IM),NHEL(4 ), 1,W4 )
78 CALL IXXXXX(P5 ,FMASS(IM),NHEL(5 ),-1,W5 )
79 CALL JIOXXX(W1 ,W4 ,GG,ZERO,ZERO,W6 )
80 CALL FVIXXX(W5 ,W3 ,GZUD,FMASS(IM),FWIDTH(IM),W7 )
81 CALL IOVXXX(W7 ,W2 ,W6 ,GG,AMP(1 ))
82 CALL FVOXXX(W2 ,W3 ,GZUD,FMASS(IM),FWIDTH(IM),W8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