-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinit_processes.f
More file actions
367 lines (327 loc) · 13.9 KB
/
Copy pathinit_processes.f
File metadata and controls
367 lines (327 loc) · 13.9 KB
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
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,tmp_switch,q,l
real * 8 mLQ,wLQ
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 check if this is really needed
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. 1 .or. ph_LQc .eq. 5) then
do i=1,3
do j=1,3
if (ph_yLQ(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 = 2
if (i .eq. 2) q = 4
if (i .eq. 3) q = 6
if (ph_LQc .eq. 1) then
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) = [-l,-q,42]
flst_nborn = flst_nborn+1
flst_born(:,flst_nborn) = [-q,-l,42]
flst_nborn = flst_nborn+1
elseif (ph_LQc .eq. 5) then
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) = [l,-q,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
endif
if (ph_LQc .eq. 2 .or. ph_LQc .eq. 4) then
do i=1,3
do j=1,3
if (ph_yLQ(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) = [q,-l,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
elseif (ph_LQc .eq. 4) then
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) = [-l,-q,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
endif
flst_nborn = flst_nborn - 1
c Real flavour lists:
flst_nreal=1
c Strong corrections:
if (ph_LQc .eq. 1 .or. ph_LQc .eq. 5) then
do i=1,3
do j=1,3
if (ph_yLQ(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 = 2
if (i .eq. 2) q = 4
if (i .eq. 3) q = 6
if (ph_LQc .eq. 1) then
if (.not. flg_QEDonly) then
flst_real(:,flst_nreal) = [l,q,42,0]
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
flst_real(:,flst_nreal) = [l,0,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) = [-q,-l,42,0]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [0,-l,42,q]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [-l,0,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
elseif (ph_LQc .eq. 5) then
if (.not. flg_QEDonly) then
flst_real(:,flst_nreal) = [l,-q,42,0]
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
flst_real(:,flst_nreal) = [l,0,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) = [q,-l,42,0]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [0,-l,42,-q]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [-l,0,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
else
continue
endif
else
continue
endif
enddo
enddo
endif
if (ph_LQc .eq. 2 .or. ph_LQc .eq. 4) then
do i=1,3
do j=1,3
if (ph_yLQ(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) = [q,-l,42,0]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [0,-l,42,-q]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [-l,0,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) = [-q,l,42,0]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [l,-q,42,0]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [0,l,42,q]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [l,0,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
elseif (ph_LQc .eq. 4) then
if (.not. flg_QEDonly) then
flst_real(:,flst_nreal) = [l,q,42,0]
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
flst_real(:,flst_nreal) = [l,0,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) = [-q,-l,42,0]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [0,-l,42,q]
flst_nreal = flst_nreal + 1
flst_real(:,flst_nreal) = [-l,0,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
else
continue
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)
Cc photon initiated
Cc (krack) Ask why 42 is before 11 should be colourless first.
C flst_nreal = flst_nreal + 1
C flst_real(:,flst_nreal) = [22,2,42,-11]
C flst_nreal = flst_nreal + 1
C flst_real(:,flst_nreal) = [2,22,42,-11]
Cc Should we include also single production, i.e. [0,2,42,-11]?
Cc (it is non-resonant ...)
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