32 real*8 babs, sint, cost, rgt, sinl, cosl
36 babs = sqrt(
b%x**2 +
b%y**2 +
b%z**2 )
39 pabs = sqrt(atrack%p%fm%p(4)**2 - atrack%p%mass**2)
43 rgt = 3.3358*pabs/atrack%p%charge/babs
50 cost =max( min(cost/babs, 1.0
d0), -1.
d0)
51 sint = sqrt(1.0
d0-cost**2)
52 if(abs(sint) .gt. 1.
d-6)
then 54 tx%r(1) = tx%r(1)/sint
55 tx%r(2) = tx%r(2)/sint
56 tx%r(3) = tx%r(3)/sint
84 r%r(1) = - rgt*sint*(cosl - 1.
d0)
87 r%r(2) = rgt*sint*sinl
92 * tx%r(1)*
r%r(1) + ty%r(1)*
r%r(2) + tz%r(1)*
r%r(3)
94 * tx%r(2)*
r%r(1) + ty%r(2)*
r%r(2) + tz%r(2)*
r%r(3)
96 * tx%r(3)*
r%r(1) + ty%r(3)*
r%r(2) + tz%r(3)*
r%r(3)
100 * tx%r(1)*w%r(1) + ty%r(1)*w%r(2) + tz%r(1)*w%r(3)
102 * tx%r(2)*w%r(1) + ty%r(2)*w%r(2) + tz%r(2)*w%r(3)
104 * tx%r(3)*w%r(1) + ty%r(3)*w%r(2) + tz%r(3)*w%r(3)
112 dr%r(1) =
leng*atrack%vec%w%r(1)
113 dr%r(2) =
leng*atrack%vec%w%r(2)
114 dr%r(3) =
leng*atrack%vec%w%r(3)
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz r
! for length to thickness conversion or v v ! integer maxnodes real Hinf ! This is used when making table for dim simulation ! The slant length for vertical height to km is ! divided by LenStep m steps ! It can cover the slant length of about km for cos
subroutine cvecprod(a, b, c)
real(4), dimension(:), allocatable, save temp
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
dE dx *! Nuc Int sampling table d
subroutine cscalerprod(a, b, c)