COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cPrLSamp.f
Go to the documentation of this file.
1  subroutine cprlsampp(Eg, prob)
2  implicit none
3 #include "ZbpCnst.h"
4 #include "ZbpTable.h"
5  real*8 Eg
6  real*8 prob ! output probability of Pair / X0
7 
8 
9  real*8 ale
10 
11 
12  if(eg .lt. pairegmin) then
13  prob= 1.d-40
14  else
15  ale=log10(eg)
16  call kintp3(prtxl,
17  * 1, pairtxtl, pairlegmin,
18  * pairdetxl, ale, prob)
19  endif
20  end
21 ! ************
22  subroutine cprlsampe(Eg, Ee)
23 ! ************
24 ! samples higher energy pair electron
25  implicit none
26 #include "ZbpCnst.h"
27 #include "ZbpTable.h"
28 
29  real*8 Ee, Eg
30 
31  real*8 u, ale, us, ans, ex
32 
33  call rndc(u)
34  ale = log10(eg)
35  if(u .gt. pairuminla) then
36 ! region A
37  call k4ptdi(prstla,
38  * pairuszla,
39  * pairesize,
40  * pairuszla,
41  * pairuminla,
42  * pairlegmin,
43  * pairdula,
44  * pairdela, u, ale, ans)
45  ee = (ans*(1.-u) + 0.5d0)*eg
46  else
47 ! region B
48  us = u**0.25d0
49  ex = sqrt(ale - pairlegmin)
50 
51  call k4ptdi(prstlb,
52  * pairuszlb,
53  * pairesize,
54  * pairuszlb,
55  * 0.d0,
56  * 0.d0,
57  * pairdulb,
58  * pairdelb, us, ex, ans)
59  ee = ans* eg
60  endif
61  end
62 
subroutine cprlsampp(Eg, prob)
Definition: cPrLSamp.f:2
subroutine rndc(u)
Definition: rnd.f:91
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
Definition: cblkEvhnp.h:5
dE dx *! Nuc Int sampling table d
Definition: cblkMuInt.h:130
subroutine k4ptdi(f, im, jm, iadj, x0, y0, hx, hy, x, y, ans)
Definition: k4ptdi.f:21
subroutine kintp3(f, intv, n, x1, h, x, ans)
Definition: kintp3.f:19
subroutine cprlsampe(Eg, Ee)
Definition: cPrLSamp.f:23