COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cdedx2atLE.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine cdedx2atle (eini, amassi, dedt)
 
subroutine cdedx2atlea (eini, amassi, dedt)
 

Function/Subroutine Documentation

◆ cdedx2atle()

subroutine cdedx2atle ( real*8  eini,
real*8  amassi,
real*8  dedt 
)

Definition at line 36 of file cdedx2atLE.f.

References cdedx2atlea(), d, and d0.

36  implicit none
37 !
38 !
39 #include "ZdedxAir.h"
40  real*8 eini, amassi, dedt
41  real*8 ek, peak2, peak2e
42 !
43  ek=eini-amassi
44  if(ek .lt. 1.d-3) then ! < 1MeV
45  peak2e = 1.4d-6* (amassi/100.d-3)**1.6d0
46  if(ek .lt. peak2e ) then
47  if(ek .gt. 0.) then
48  peak2 = 0.6d0*(ek/1.5d-5)**(-0.15d0)
49  dedt=peak2*sqrt(ek/peak2e)
50  else
51  dedt = 0.
52  endif
53  else
54  call cdedx2atlea(eini, amassi, dedt)
55  endif
56  else
57  call cdedx2atlea(eini, amassi, dedt)
58  endif
59  if(dedt .lt. 0.) then
60  dedt = 1.d-7
61  endif
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
Definition: cblkEvhnp.h:5
subroutine cdedx2atlea(eini, amassi, dedt)
Definition: cdedx2atLE.f:65
dE dx *! Nuc Int sampling table d
Definition: cblkMuInt.h:130
Here is the call graph for this function:

◆ cdedx2atlea()

subroutine cdedx2atlea ( real*8  eini,
real*8  amassi,
real*8  dedt 
)

Definition at line 65 of file cdedx2atLE.f.

References d, d0, parameter(), stha, sthb, sthc, sthsa, sthx0, sthx1, w0, and wlg0.

Referenced by cdedx2atle().

65  implicit none
66 !
67 !
68 #include "ZdedxAir.h"
69 
70 !
71  real*8 eini, amassi, dedt
72 
73  real*8 emass, emass2
74  parameter(emass=.511d0, emass2=emass**2)
75  real*8 e, amass, ein, gi, beta2, x, a, b, c, cb, x0
76  real*8 dltx, p2, wm, wlg, x1
77 
78 
79  if(jdef .eq. 0) then
80  write(*, *) ' cdedxEleci must be called'
81  stop 9999
82  endif
83  ein=eini
84 !
85 ! energy in mev unit
86  e=ein*1000.d0
87  amass=amassi*1000.d0
88  gi=amass/e
89  if(gi .ge. 1.d0) then
90  dedt=.01d0
91  else
92  beta2= 1.d0 - gi**2
93 ! x=log10(p/mc)
94  x=log10((e/amass)**2 - 1.d0) / 2.d0
95  a=stha
96  b=sthb
97  c=sthc
98  cb=-c
99  x0=sthx0
100  x1=sthx1
101  if(x .lt. x0) then
102 ! 4.605x - dlt
103  dltx=4.605d0*x
104  elseif(x .lt. x1) then
105  dltx=cb - (x1-x)**3 * sthsa
106  else
107  dltx=cb
108  endif
109  p2=e**2 -amass**2
110  wm=2*emass*p2/( amass**2+ emass2+ emass*e*2)
111  if(wm .gt. w0) then
112  wlg = wlg0
113  else
114  wlg=log(wm)
115  endif
116  dedt=a/beta2 *( b+0.693d0+wlg -2.d0*beta2 + dltx)
117  endif
118  dedt=dedt *1.d-3
integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
block data include Zlatfit h c fitting region data x1(1)/0.03/
dE dx *! Nuc Int sampling table e
Definition: cblkMuInt.h:130
common ZdedxAir w0
Definition: ZdedxAir.h:2
common ZdedxAir sthb
Definition: ZdedxAir.h:2
common ZdedxAir sthc
Definition: ZdedxAir.h:2
common ZdedxAir sthx1
Definition: ZdedxAir.h:2
common ZdedxAir * wlg0
Definition: ZdedxAir.h:2
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
Definition: cblkEvhnp.h:5
common ZdedxAir sthsa
Definition: ZdedxAir.h:2
dE dx *! Nuc Int sampling table d
Definition: cblkMuInt.h:130
real(4), save a
Definition: cNRLAtmos.f:20
real(4), save b
Definition: cNRLAtmos.f:21
common ZdedxAir sthx0
Definition: ZdedxAir.h:2
common ZdedxAir stha
Definition: ZdedxAir.h:2
! structure defining a particle at production ! Basic idea of what is to be contained in ! the particle structue is that dynamical ones should be included those derivable from the particle code ! is not included ******************************************************type fmom momentum sequence union map real e endmap map real * x
Definition: Zptcl.h:21
dE dx *! Nuc Int sampling table c
Definition: cblkMuInt.h:130
Here is the call graph for this function:
Here is the caller graph for this function: