COSMOS v7.655
COSMOSv7655
(AirShowerMC)
cgUpsilon.f
Go to the documentation of this file.
1
! real*8 x, y
2
! real*8 gupsilon
3
! x = 0.001
4
! do while (x .lt. 500.)
5
! y = gupsilon(x)
6
! write(*, *) sngl(x), sngl(y)
7
! x = x * 10.**0.1
8
! enddo
9
! end
10
! ******************************************************************
11
! g(upsilon) for total energy loss function of synchrotron
12
! ******************************************************************
13
!
14
real*8
function
cgupsilon
(u)
15
implicit none
16
real*8
u
! input. upsilon
17
18
real*8
z
19
20
if
(u .lt. 0.005)
then
21
cgupsilon
= u ** 2 * (1. -5.953*u)
22
elseif
(u .lt. 100.)
then
23
! polynomial approx. within 5 % error. roughly
24
z = log(u)
25
cgupsilon
=
26
* exp(((((-0.6305280
e
-04 * z -0.1159820
e
-03)*z
27
* +0.9467500
e
-02 )*z-0.6861282
e
-01)*z +1.080512)*z
28
* -1.770289)
29
else
30
cgupsilon
= 0.5563*u**0.66666666
31
endif
32
end
33
34
35
e
dE dx *! Nuc Int sampling table e
Definition:
cblkMuInt.h:130
cgupsilon
real *8 function cgupsilon(u)
Definition:
cgUpsilon.f:15
Particle
Event
Elemag
Sync
cgUpsilon.f
Generated by
1.8.13