-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit_processes.f
172 lines (155 loc) · 5.83 KB
/
init_processes.f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
subroutine init_processes
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_flg.h'
include 'pwhg_kn.h'
include 'pwhg_st.h'
include 'pwhg_par.h'
include 'pwhg_pdf.h'
include 'pwhg_rad.h'
include 'LesHouches.h'
include 'pwhg_physpar.h'
include 'PhysPars.h'
character * 30 proc
common/cproc/proc
logical debug
parameter (debug=.false.)
integer i,j,k,l,q
real * 8 mLQ,wLQ,betaL,betaR
real * 8 powheginput
integer lflav
c Set the colour representation of the leptoquark
call set_colour(42,'3','set')
c smartsig in POWHEG-BOX-RES does not check for equal
c Born but not for equal colour correlated or spin correlated
c amplitudes; switch it off
flg_bornsmartsig = .false.
c for testing only NLO QCD
if (powheginput("#QCDonly") == 1) then
flg_with_em = .false.
else
flg_with_em = .true.
endif
c for testing only NLO QED, uncomment
if (powheginput("#QEDonly") == 1) then
flg_QEDonly = .true.
else
flg_QEDonly = .false.
endif
flg_withdamp = .true.
flg_bornzerodamp = .false.
rad_ptsqmin_em=powheginput("#ptsqmin_em")
if(rad_ptsqmin_em<0) rad_ptsqmin_em=0.5d0
pdf_nparton = 22
par_isrtinycsi = 1d-8
par_isrtinyy = 1d-8
par_fsrtinycsi = 1d-8
par_fsrtinyy = 1d-8
c flag to do importance sampling in x variable in collinear remnants
flg_collremnsamp=.true.
c This ends up in the LH common block, not very useful ..
lprup(1)=2000
c Born flavour lists:
flst_nborn=1
if (ph_LQc .eq. 2 ) then
do i=1,3
do j=1,3
if (ph_betaL(i,j).ne.0.or.ph_betaR(i,j).ne.0) then
if (j .eq. 1) l = 11
if (j .eq. 2) l = 13
if (j .eq. 3) l = 15
if (i .eq. 1) q = 1
if (i .eq. 2) q = 3
if (i .eq. 3) q = 5
if (ph_LQc .eq. 2) then
flst_born(:,flst_nborn) = [-l,q,42]
flst_nborn = flst_nborn+1
flst_born(:,flst_nborn) = [l,-q,42]
flst_nborn = flst_nborn+1
flst_born(:,flst_nborn) = [q,-l,42]
flst_nborn = flst_nborn+1
flst_born(:,flst_nborn) = [-q,l,42]
flst_nborn = flst_nborn+1
else
continue
endif
else
continue
endif
enddo
enddo
else
WRITE(*,*) "Charge of the LQ should be set to 2/3."
endif
flst_nborn = flst_nborn - 1
c as starting example, e u -> LQ
c Real flavour lists:
flst_nreal=1
c Strong corrections:
if (ph_LQc .eq. 2) then
do i=1,3
do j=1,3
if (ph_betaL(i,j).ne.0.or.ph_betaR(i,j).ne.0) then
if (j .eq. 1) l = 11
if (j .eq. 2) l = 13
if (j .eq. 3) l = 15
if (i .eq. 1) q = 1
if (i .eq. 2) q = 3
if (i .eq. 3) q = 5
if (ph_LQc .eq. 2) then
if (.not. flg_QEDonly) then
flst_real(:,flst_nreal) = [-l,q,42,0]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [-l,0,42,-q]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [q,-l,42,0]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [0,-l,42,-q]
flst_nreal = flst_nreal + 1
endif
if (flg_with_em) then
flst_real(:,flst_nreal) = [22,q,42,l]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [q,22,42,l]
flst_nreal = flst_nreal + 1
endif
if (.not. flg_QEDonly) then
flst_real(:,flst_nreal) = [l,-q,42,0]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [l,0,42,q]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [-q,l,42,0]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [0,l,42,q]
flst_nreal = flst_nreal + 1
endif
if (flg_with_em) then
flst_real(:,flst_nreal) = [22,-q,42,-l]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [-q,22,42,-l]
flst_nreal = flst_nreal + 1
endif
endif
endif
enddo
enddo
endif
flst_nreal = flst_nreal -1
WRITE(*,*) "Born Processes: "
WRITE(*,"(*(g0))") ( (flst_born(j,i)," ",j=1,3),
1 new_line("A"), i=1,flst_nborn)
WRITE(*,*) "Real Processes: "
WRITE(*,"(*(g0))") ( (flst_real(j,i)," ",j=1,4),
1 new_line("A"), i=1,flst_nreal)
c The following is POWHEG magic ...
flst_bornlength=nlegborn
flst_reallength=nlegreal
flst_numfinal=1
flst_bornres=0
call buildresgroups(flst_nborn,nlegborn,flst_bornlength,
1 flst_born,flst_bornres,flst_bornresgroup,flst_nbornresgroup)
flst_realres=0
call buildresgroups(flst_nreal,nlegreal,flst_reallength,
1 flst_real,flst_realres,flst_realresgroup,flst_nrealresgroup)
end