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

Go to the source code of this file.

Functions/Subroutines

subroutine cphotoeepath (eg, tp, path)
 
subroutine cphotoeeenergy (egin, eout)
 

Function/Subroutine Documentation

◆ cphotoeeenergy()

subroutine cphotoeeenergy ( real*8  egin,
real*8  eout 
)

Definition at line 67 of file cphotoEEPath.f.

References d, d0, and masele.

67 ! ************
68  implicit none
69 #include "Zmass.h"
70 
71  real*8 egin
72  real*8 eout
73 
74 !
75  real*8 cnsta
76  data cnsta/ -1.9859375d-04 /
77  save cnsta
78 
79  eout=egin + cnsta
80  if(eout .le. masele) then
81  eout=masele*1.0000000001d0
82  endif
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
const double masele
Definition: Zmass.h:2

◆ cphotoeepath()

subroutine cphotoeepath ( real*8  eg,
real*8  tp,
real*8  path 
)

Definition at line 35 of file cphotoEEPath.f.

References rndc().

Referenced by csampgintl().

35  implicit none
36 ! use XCOM result by fitting it
37 #include "ZbpCnst.h"
38 !
39 !
40  real*8 eg ! input energy in GeV
41  real*8 path ! output sample path in r%l
42  real*8 tp ! prob./r%l
43 !
44 ! XCOM result ; Energy in MeV. Xsection in b
45  real*8 x, u
46 
47  x = log10(eg) +3.0 ! log10(Eg/MeV)
48  if(x .lt. -3.0) then
49  tp = -3.0*(x+3.0) + 3.55376
50  elseif(x .lt. -0.5) then
51  tp = (-0.11136*x -3.5363)*x - 6.0163
52  elseif( x .lt. 1.5) then
53  tp =((-0.25541*x + 0.86430)*x-2.0364)*x - 5.4876
54  else
55  tp = -x- 5.964
56  endif
57  tp = 10.0**tp
58 ! tp in /(g/cm2) --> /r.l
59  tp = tp*x0g
60  call rndc(u)
61  path=-log(u) / tp
62 
subroutine rndc(u)
Definition: rnd.f:91
! 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
Here is the call graph for this function:
Here is the caller graph for this function: