10 #include "BlockData/cblkGene.h" 26 open(10, file=
"param")
30 det = obssites(noofsites)%pos%xyz
32 call cvecprod(detzaxis, detxaxis, detyaxis)
33 write(*,*)
' transformation matrix ' 34 write(*,
'(4g17.9)') detxaxis%x, detyaxis%x, detzaxis%x, 0
35 write(*,
'(4g17.9)') detxaxis%y, detyaxis%y, detzaxis%y, 0
36 write(*,
'(4g17.9)') detxaxis%z, detyaxis%z, detzaxis%z, 0
37 write(*,
'(4g17.9)') det%x, det%y, det%z, 1
40 write(*,*)
'enter x,y,z in Exyz sys' 41 read(*,*)
a%x,
a%y,
a%z
43 write(*,*)
' input=',
a%x,
a%y,
a%z
44 write(*,*)
' output=',
b%x,
b%y,
b%z
58 temp%r(1) = dir1%r(1) * xax%r(1) + dir1%r(2) *xax%r(2) +
60 temp%r(2) = dir1%r(1) * yvec%r(1)+ dir1%r(2) *yvec%r(2) +
61 * dir1%r(3) *yvec%r(3)
62 temp%r(3) = dir1%r(1) * zax%r(1) + dir1%r(2) *zax%r(2) +
block data cblkElemag data *AnihiE ! Eposi< 1 TeV, anihilation considered *X0/365.667/, ! radiation length of air in kg/m2 *Ecrit/81.e-3/, ! critical energy of air in GeV *MaxComptonE/1./, ! compton is considered below 1 GeV *MaxPhotoE/1.e-3/, ! above this, PhotoElectric effect neg. *MinPhotoProdE/153.e-3/, ! below 153 MeV, no gp --> hadrons ! scattering const not MeV *Knockon true
subroutine cvecprod(a, b, c)
subroutine creadparam(io)
subroutine chookcerens(no, primary, angle)
dE dx *! Nuc Int sampling table b
subroutine cxyz2det(det, a, b)