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

Go to the source code of this file.

Functions/Subroutines

subroutine cdedxelec (eini, ic, dedt)
 

Function/Subroutine Documentation

◆ cdedxelec()

subroutine cdedxelec ( real*8  eini,
integer  ic,
real*8  dedt 
)

Definition at line 36 of file cdedxElec.f.

References stha, sthb, sthc, sthsa, sthx0, sthx1, w0, and wlg0.

36  implicit none
37 !
38 !
39 #include "ZdedxAir.h"
40 !
41  real*8 eini, dedt
42  integer ic
43 ! external cblkdedx
44 
45  real*8 emass, emassg
46  real*8 ek, ein, e, gi, beta2, x, a, b, c, cb, x0, x1
47  real*8 dltx, wm, wlg
48 !
49  real*8 peake/2.3d-7/, peak/0.858d0/
50  data emass/0.511d0/, emassg/0.511d-3/
51 
52 
53 !
54  if(jdef .eq. 0) then
55  write(*, *) ' cdedxEleci must be called'
56  stop 9999
57  endif
58 
59  ek=eini-emassg
60  ein=eini
61 
62  if( ek .lt. peake) then
63  dedt=peak*sqrt(ek/peake)
64  else
65 ! energy in mev unit
66  e=ein*1000.d0
67  gi=emass/e
68  beta2= 1.d0 - gi**2
69 ! x=log10(p/mc)
70  x=log10(e**2 - 0.2611d0)/2.0d0 + 0.29d0
71  a=stha
72  b=sthb
73  c=sthc
74  cb=-c
75  x0=sthx0
76  x1=sthx1
77  if(x .lt. x0) then
78 ! 4.605x - dlt
79  dltx=4.605d0*x
80  elseif(x .lt. x1) then
81  dltx=cb - (x1-x)**3 * sthsa
82  else
83  dltx=cb
84  endif
85  wm=e- emass
86 ! if(Knckon) then
87 ! Now we don't use Knckon, since big wm can do
88 ! the equivalent
89  if(wm .gt. w0) then
90  wlg=wlg0
91  else
92  wlg=log(wm)
93  endif
94 ! else
95 ! wlg=log(wm)
96 ! endif
97  if(ic .eq. -1) then
98  dedt=a/beta2 * (b + 1.12d0 + wlg-beta2 +dltx)
99  else
100  dedt=a/beta2 *( b+0.693d0 + wlg -2*beta2 + dltx)
101  endif
102 ! convert it to gev/(g/cm^2)
103  dedt=dedt *1.d-3
104  endif
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