-
Notifications
You must be signed in to change notification settings - Fork 0
/
sigcollsoft.f
645 lines (614 loc) · 19.5 KB
/
sigcollsoft.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
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
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
c subroutines soft, collfsr, softcollfsr, collisrp, collisrm,
c softcollisrp, softcollisrm
c are called by btildereal; they return (1-y) csi^2 R_alr (if kn_emitter
c is >2, i.e. final state) or (1-y^2) csi^2 R (if kn_emitter <=2) in the
c collinear final state (collfsr)
c soft-collinear final state (softcollfsr)
c collinear initial state in the + direction (collisrp)
c collinear initial state in the - direction (collisrm)
c soft-collinear initial state + (softcollisrp)
c soft-collinear initial state - (softcollisrm)
c The soft limit is taken keeping y (i.e. kn_y) fixed
c The collinear limit is taken keeping csitilde (kn_csitilde) fixed
c
c The Born and real phase space must have been set before calling them.
c The subroutine fills the array argument rc(maxalr) with the alr
c contributions that have as emitter the current emitter kn_emitter.
c All the others are set to zero.
c
c
c Functions: collbtl and softbtl are required to compute the damping
c factor in bornzerodamp. They are called by sigreal, and
c sigreal is used by btilde (hence the btl suffix)
c softbtl: computes the same quantity as soft, but does not include
c the luminosity
c
c collbtl: if kn_emitter is in the final state, computes the same quantity as
c collfsr, but does not include the luminosity
c if kn_emitter is 1 or 2 computes the same quantity as
c collisrp or collisrm, without luminosity
c if kn_emitter is 0 computes the average of the return values
c of collisrp and collisrm, weighted with the factors
c (1+y)/2 and (1-y)/2.
c
c
c
c Functions: collrad, softrad are required to compute the damping
c factor in bornzerodamp. They are called by sigreal_rad,
c i.e. they are used in the generation of radiation.
c They compute the same quantities as collbtl and softbtl,
c except that they only fill alr values corresponding to
c the current radiation underlying Born (i.e. the alr list
c rad_alr_list(1...rad_alr_nlist)) and that share the current
c radiation kinematics (i.e. the rad_kinreg value). Furthermore
c they are divided by kn_csi^2(1-kn_y^2) (for initial state
c kinematic regions) or kn_csi^2(1-kn_y) (for final state
c kinematic regions).
subroutine collfsr(rc)
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
real * 8 rc(maxalr)
real * 8 pdf1(-6:6),pdf2(-6:6)
integer alr
call collfsrnopdf(rc)
call pdfcall(1,kn_x1,pdf1)
call pdfcall(2,kn_x2,pdf2)
do alr=1,flst_nalr
rc(alr)=rc(alr)*pdf1(flst_alr(1,alr))*pdf2(flst_alr(2,alr))
enddo
end
subroutine collfsrnopdf(rc)
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
real * 8 rc(maxalr)
integer alr,em
real * 8 kperp(0:3),kperp2,q0,xocsi,csi,x,phi
em=kn_emitter
q0=2*kn_cmpborn(0,1)
xocsi=q0/2/kn_cmpborn(0,em)
c for fsr csi is y independent
csi=kn_csi
phi=kn_azi
x=csi*xocsi
call buildkperp(em,phi,kperp,kperp2)
do alr=1,flst_nalr
if(em.eq.flst_emitter(alr)) then
call collfsralr(alr,csi,xocsi,x,q0,kperp,kperp2,rc(alr))
else
rc(alr)=0
endif
enddo
end
subroutine buildkperp(em,phi,kperp,kperp2)
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
integer em
real * 8 phi,kperp(0:3),kperp2,dir(1:3)
c Construct kperp; First construct a vector in the plane of p_em and
c the third axis, orthogonal to p_em.
c Then rotate it counterclockwise around the em direction
kperp(1)=kn_cmpborn(1,em)
kperp(2)=kn_cmpborn(2,em)
kperp(3)=-(kn_cmpborn(2,em)**2+kn_cmpborn(1,em)**2)
#/kn_cmpborn(3,em)
kperp2=(kperp(1)**2+kperp(2)**2+kperp(3)**2)
dir(1)=kn_cmpborn(1,em)/kn_cmpborn(0,em)
dir(2)=kn_cmpborn(2,em)/kn_cmpborn(0,em)
dir(3)=kn_cmpborn(3,em)/kn_cmpborn(0,em)
call mrotate(dir,sin(phi),cos(phi),kperp(1))
kperp(0)=0
end
subroutine softcollfsr(rc)
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
real * 8 rc(maxalr)
real * 8 pdf1(-6:6),pdf2(-6:6)
integer alr
real * 8 tmp
tmp=kn_csi
kn_csi=0
call collfsrnopdf(rc)
kn_csi=tmp
call pdfcall(1,kn_xb1,pdf1)
call pdfcall(2,kn_xb2,pdf2)
do alr=1,flst_nalr
rc(alr)=rc(alr)*pdf1(flst_alr(1,alr))*pdf2(flst_alr(2,alr))
enddo
end
subroutine collisrp(rc)
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
real * 8 rc(maxalr)
call collisr(1,rc)
end
subroutine collisrm(rc)
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
real * 8 rc(maxalr)
call collisr(2,rc)
end
subroutine softcollisrp(rc)
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
real * 8 rc(maxalr)
real * 8 pdf1(-6:6),pdf2(-6:6)
integer alr
real * 8 tmp
tmp=kn_csip
kn_csip=0
call collisrnopdf(1,rc)
kn_csip=tmp
call pdfcall(1,kn_xb1,pdf1)
call pdfcall(2,kn_xb2,pdf2)
do alr=1,flst_nalr
rc(alr)=rc(alr)*pdf1(flst_alr(1,alr))*pdf2(flst_alr(2,alr))
enddo
end
subroutine softcollisrm(rc)
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
real * 8 rc(maxalr)
real * 8 pdf1(-6:6),pdf2(-6:6)
integer alr
real * 8 tmp
tmp=kn_csim
kn_csim=0
call collisrnopdf(2,rc)
kn_csim=tmp
call pdfcall(1,kn_xb1,pdf1)
call pdfcall(2,kn_xb2,pdf2)
do alr=1,flst_nalr
rc(alr)=rc(alr)*pdf1(flst_alr(1,alr))*pdf2(flst_alr(2,alr))
enddo
end
subroutine collisr(i,rc)
implicit none
integer i
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
real * 8 rc(maxalr)
real * 8 pdf1(-6:6),pdf2(-6:6),x1,x2
integer alr
call collisrnopdf(i,rc)
if(i.eq.1) then
x1=kn_xb1/(1-kn_csip)
x2=kn_xb2
elseif(i.eq.2) then
x1=kn_xb1
x2=kn_xb2/(1-kn_csim)
endif
call pdfcall(1,x1,pdf1)
call pdfcall(2,x2,pdf2)
do alr=1,flst_nalr
rc(alr)=rc(alr)*pdf1(flst_alr(1,alr))*pdf2(flst_alr(2,alr))
enddo
end
subroutine collisrnopdf(i,rc)
implicit none
integer i
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
include 'pwhg_math.h'
real * 8 rc(maxalr)
integer alr
real * 8 kperp(0:3),csi,phi
if(i.eq.1) then
csi=kn_csip
else
csi=kn_csim
endif
phi=kn_azi
c Construct kperp
kperp(1)=sin(phi)
kperp(2)=cos(phi)
kperp(3)=0
kperp(0)=0
do alr=1,flst_nalr
if(flst_emitter(alr).eq.kn_emitter) then
call collisralr(alr,i,csi,kperp,rc(alr))
else
rc(alr)=0
endif
enddo
end
subroutine soft(r0)
c blegs: integer, number of legs of born
c bflav(nlegs): integer, flavours of the incoming partons, according to PDG conventions,
c MODIFIED TO HAVE 0 FOR GLUONS (instead of 21)
c p(0:3,nleg): real * 8, momenta, 0 is time component
c softvec(0:3): real * 8, 4-vector of soft gluon normalized to softvec(0)=1
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
include 'pwhg_math.h'
include 'pwhg_st.h'
include 'pwhg_br.h'
real * 8 r0(maxalr)
integer alr,em
real * 8 y
real * 8 pdf1(-6:6),pdf2(-6:6)
c Boost Born momenta to their rest frame
c find boost velocity
em=kn_emitter
y=kn_y
do alr=1,flst_nalr
call softalr(alr,em,y,r0(alr))
enddo
call pdfcall(1,kn_xb1,pdf1)
call pdfcall(2,kn_xb2,pdf2)
do alr=1,flst_nalr
r0(alr)=r0(alr)*pdf1(flst_alr(1,alr))*pdf2(flst_alr(2,alr))
enddo
end
subroutine collfsralr(alr,csi,xocsi,x,q0,kperp,kperp2,res)
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
include 'pwhg_math.h'
include 'pwhg_st.h'
include 'pwhg_br.h'
include 'pwhg_par.h'
integer alr
real * 8 csi,xocsi,x,q0,kperp(0:3),kperp2,res
integer iub,em,emflav,raflav,mu,nu
real * 8 gtens(0:3,0:3),ap
data gtens/1d0, 0d0, 0d0, 0d0,
# 0d0,-1d0, 0d0, 0d0,
# 0d0, 0d0,-1d0, 0d0,
# 0d0, 0d0, 0d0,-1d0/
save gtens
iub=flst_alr2born(alr)
em=flst_emitter(alr)
emflav=flst_alr(em,alr)
raflav=flst_alr(nlegreal,alr)
if(emflav.eq.0.and.raflav.eq.0) then
ap=0
do mu=0,3
do nu=0,3
ap=ap+(-gtens(mu,nu)*(csi*x/(1-x)+(1-x)/xocsi)
#+2*x*(1-x)*csi*
#(kperp(mu)*kperp(nu))/kperp2)*br_bmunu(mu,nu,em,iub)
enddo
enddo
ap=ap*2*ca
c In case of two equal gluon we also supply e E_em^p/(E_em^p+E_rad^p)
c factor, and divide by 2 for the identical particles
ap=ap*(1-x)**par_2gsupp/((1-x)**par_2gsupp+x**par_2gsupp)
elseif(emflav+raflav.eq.0) then
ap=0d0
do mu=0,3
do nu=0,3
ap=ap+(-gtens(mu,nu)
#-4*x*(1-x)*(kperp(mu)*kperp(nu))/kperp2)*br_bmunu(mu,nu,em,iub)
enddo
enddo
ap=ap*tf*csi
elseif(raflav.eq.0.and.emflav.ne.0) then
ap=cf*(1+(1-x)**2)/xocsi*br_born(iub)
else
write(*,*) 'coll (fsr): unammissible flavour structure'
endif
c 1/(p_em . p_ra) = 1/(p_bar_em(0,em)**2* x * (1-x) * (1-y);
c we multiply everything by (1-y) csi^2; one csi is included
c above; the other here.
res=ap/kn_cmpborn(0,em)**2/(xocsi*(1-x))
#*(4*pi*st_alpha)
c provide multiplicity of emitter in underlyng Born
res=res*flst_ubmult(alr)
end
subroutine collisralr(alr,i,csi,kperp,res)
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
include 'pwhg_math.h'
include 'pwhg_st.h'
include 'pwhg_br.h'
integer alr,i,em
real * 8 csi,kperp(0:3),res
integer iub,emflav,raflav,mu,nu
real * 8 gtens(0:3,0:3),ap,x
data gtens/1d0, 0d0, 0d0, 0d0,
# 0d0,-1d0, 0d0, 0d0,
# 0d0, 0d0,-1d0, 0d0,
# 0d0, 0d0, 0d0,-1d0/
save gtens
x=1-csi
iub=flst_alr2born(alr)
em=flst_emitter(alr)
emflav=flst_alr(i,alr)
raflav=flst_alr(nlegreal,alr)
if(emflav.eq.0.and.raflav.eq.0) then
ap=0
do mu=0,3
do nu=0,3
ap=ap+(-gtens(mu,nu)*(x+x*(1-x)**2)
#+2*(1-x)**2/x*
#(kperp(mu)*kperp(nu)))*br_bmunu(mu,nu,i,iub)
enddo
enddo
ap=ap*2*ca
elseif(raflav-emflav.eq.0) then
ap=0d0
do mu=0,3
do nu=0,3
ap=ap+(-gtens(mu,nu)*x
#+4*(1-x)/x*(kperp(mu)*kperp(nu)))*br_bmunu(mu,nu,i,iub)
enddo
enddo
ap=ap*cf*(1-x)
elseif(raflav.eq.0.and.emflav.ne.0) then
ap=cf*(1+x**2)*br_born(iub)
elseif(emflav.eq.0.and.raflav.ne.0) then
ap=tf*(x**2+(1-x)**2)*br_born(iub)*(1-x)
else
write(*,*) 'coll (isr): unammissible flavour structure'
endif
c In the real CM frame:
c 1/(p_ra . p_i)=1/(p^0_ra*p^0_i*(1-y))=1/(p^0_i)^2 /[(1-x)*(1-y)]
c where 1/(p^0_i)^2=1/(p^0_1 * p^0_2)=1/(pborn^0_1 * pborn^0_2/x),
c the last expression being boost invariant.
c Supplying che csi^2 (1-y^2) factor in the collinear limit,
c using csi=1-x we get
res=ap/(kn_pborn(0,1)*kn_pborn(0,2)/x) * 2
c strong coupling:
# *(4*pi*st_alpha)
c The remaining csi=1-x factor has been applied earlier
end
subroutine softalr(alr,em,y,res)
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
include 'pwhg_math.h'
include 'pwhg_st.h'
include 'pwhg_br.h'
integer alr,em
real * 8 y,res
integer iub,j,k
real * 8 pjsq,sumdijinv,result
real * 8 dotp
external dotp
if(flst_emitter(alr).eq.em) then
if(flst_alr(nlegreal,alr).eq.0) then
iub=flst_alr2born(alr)
c loop over pairs of coloured particles
result=0
do j=1,nlegborn
if(abs(flst_born(j,iub)).le.6) then
do k=j+1,nlegborn
if(abs(flst_born(k,iub)).le.6) then
result=result+
#dotp(kn_cmpborn(0,j),kn_cmpborn(0,k))
#/(dotp(kn_cmpborn(0,j),kn_softvec)*
#dotp(kn_cmpborn(0,k),kn_softvec)) * br_bornjk(j,k,iub)
endif
enddo
endif
enddo
c the previous sum should run over all indexes. Since br_bornjk is
c symmetric, multiply by 2
result = result*2
do j=1,nlegborn
if(abs(flst_born(j,iub)).le.6.and.
#flst_born(j,iub).ne.0) then
pjsq=kn_cmpborn(0,j)**2-kn_cmpborn(1,j)**2-
#kn_cmpborn(2,j)**2-kn_cmpborn(3,j)**2
result=result-pjsq/dotp(kn_cmpborn(0,j),
#kn_softvec)**2*br_born(iub)*cf
endif
enddo
c having chosen a soft four momentum of energy 1, supply
c 1/esoft^2. Multiply by csi^2, csi=2*esoft/q0, so net
c factor 4/q0^2
if(em.gt.2) then
res=result*4/
#(4*kn_cmpborn(0,1)*kn_cmpborn(0,2))*(1-y)
else
res=result*4/
#(4*kn_cmpborn(0,1)*kn_cmpborn(0,2))*(1-y**2)
endif
c Coupling:
res=res*(4*pi*st_alpha)
c The case of the emitter being a gluon requires no special treatment here!
c the extra (1-x) factor is simply 1!
else
res=0
endif
else
res=0
endif
c Multiply soft result by (soft limit Sij appropriate factors)
if(res.ne.0) then
sumdijinv=0
do j=1,flst_allreg(1,0,alr)
if(flst_allreg(2,j,alr).eq.nlegreal) then
sumdijinv=sumdijinv
#+1/kn_dijterm_soft(flst_allreg(1,j,alr))
endif
enddo
res=res/kn_dijterm_soft(em)/sumdijinv
endif
res=res*flst_ubmult(alr)
end
subroutine softbtl(r0)
c blegs: integer, number of legs of born
c bflav(nlegs): integer, flavours of the incoming partons, according to PDG conventions,
c MODIFIED TO HAVE 0 FOR GLUONS (instead of 21)
c p(0:3,nleg): real * 8, momenta, 0 is time component
c softvec(0:3): real * 8, 4-vector of soft gluon normalized to softvec(0)=1
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
include 'pwhg_math.h'
include 'pwhg_st.h'
include 'pwhg_br.h'
real * 8 r0(maxalr)
integer alr,em
real * 8 y
c Boost Born momenta to their rest frame
c find boost velocity
em=kn_emitter
y=kn_y
do alr=1,flst_nalr
call softalr(alr,em,y,r0(alr))
enddo
end
c This returns in rc the collinear approximation to
c the real cross section (multiplied by csi^2(1-y^2) or (1-y))
c to be used to construct the damping factor in the real
c cross section used in Btilde
subroutine collbtl(rc)
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
real * 8 rc(maxalr)
integer alr,em,i
real * 8 kperp(0:3),kperp2,q0,xocsi,csi,x,phi,r1,r2
em=kn_emitter
if(em.gt.2) then
q0=2*kn_cmpborn(0,1)
xocsi=q0/2/kn_cmpborn(0,em)
c for fsr csi is y independent
csi=kn_csi
phi=kn_azi
x=csi*xocsi
call buildkperp(em,phi,kperp,kperp2)
do alr=1,flst_nalr
if(em.eq.flst_emitter(alr)) then
call collfsralr(alr,csi,xocsi,x,q0,kperp,kperp2,rc(alr))
else
rc(alr)=0
endif
enddo
else
phi=kn_azi
c Construct kperp
kperp(1)=sin(phi)
kperp(2)=cos(phi)
kperp(3)=0
kperp(0)=0
do alr=1,flst_nalr
if(flst_emitter(alr).eq.em) then
if(em.ne.2) then
i=1
csi=kn_csi*kn_csimaxp/kn_csimax
call collisralr(alr,i,csi,kperp,r1)
endif
if(em.ne.1) then
i=2
csi=kn_csi*kn_csimaxm/kn_csimax
call collisralr(alr,i,csi,kperp,r2)
endif
if(em.eq.0) then
rc(alr)=(r1*(1+kn_y)+r2*(1-kn_y))/2
elseif(em.eq.1) then
rc(alr)=r1
elseif(em.eq.2) then
rc(alr)=r2
endif
else
rc(alr)=0
endif
enddo
endif
end
c This returns in rc the collinear approximation to
c the real cross section to be used to construct the damping factor
c in the real radiation cross section
subroutine collrad(rc)
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
include 'pwhg_rad.h'
real * 8 rc(maxalr)
integer alr,em
real * 8 q0,xocsi,csi,phi,x,kperp(0:3),kperp2,r1,r2
integer j
do j=1,rad_alr_nlist
alr=rad_alr_list(j)
em=flst_emitter(alr)
c check if emitter corresponds to current radiation region (i.e. rad_kinreg):
if(rad_kinreg.eq.1.and.em.le.2) then
phi=kn_azi
c Construct kperp
kperp(1)=sin(phi)
kperp(2)=cos(phi)
kperp(3)=0
kperp(0)=0
if(em.ne.2) then
csi=kn_csi*kn_csimaxp/kn_csimax
call collisralr(alr,1,csi,kperp,r1)
endif
if(em.ne.1) then
csi=kn_csi*kn_csimaxm/kn_csimax
call collisralr(alr,2,csi,kperp,r2)
endif
if(em.eq.0) then
rc(alr)=(r1*(1+kn_y)+r2*(1-kn_y))/2
elseif(em.eq.1) then
rc(alr)=r1
elseif(em.eq.2) then
rc(alr)=r2
endif
rc(alr)=rc(alr)/(kn_csi**2*(1-kn_y**2))
elseif(flst_lightpart+rad_kinreg-2.eq.em) then
csi=kn_csi
phi=kn_azi
q0=2*kn_cmpborn(0,1)
xocsi=q0/2/kn_cmpborn(0,em)
x=csi*xocsi
call buildkperp(em,phi,kperp,kperp2)
call collfsralr(alr,csi,xocsi,x,q0,kperp,kperp2,rc(alr))
rc(alr)=rc(alr)/csi**2/(1-kn_y)
else
rc(alr)=0
endif
enddo
end
subroutine softrad(r0)
implicit none
include 'nlegborn.h'
include 'pwhg_flst.h'
include 'pwhg_kn.h'
include 'pwhg_rad.h'
real * 8 r0(maxalr)
integer alr,em,j
real * 8 y,csi
y=kn_y
csi=kn_csi
do j=1,rad_alr_nlist
alr=rad_alr_list(j)
em=flst_emitter(alr)
if(rad_kinreg.eq.1.and.em.le.2) then
call softalr(alr,em,y,r0(alr))
r0(alr)=r0(alr)/csi**2/(1-y**2)
elseif(flst_lightpart+rad_kinreg-2.eq.em) then
call softalr(alr,em,y,r0(alr))
r0(alr)=r0(alr)/csi**2/(1-y)
else
r0(alr)=0
endif
enddo
end