22 leng = kgetenv2(
"PARAM", input)
23 write(0,*)
' leng =', leng
24 call copenfw2(11, input(1:leng), 1, icon)
26 write(0,*) input, icon
27 write(0,*)
' cannnot be opened' 30 write(0,*)
' reading parameter file' 33 write(0,*)
' parameter has been read' 34 leng = kgetenv2(
"FROMTO", input)
35 write(0,*)
' form to is ', input
41 read(*,*, end=1000 ) x, y, z
42 if(fromto .eq.
'xyz2det')
then 47 elseif( fromto .eq.
'det2xyz')
then 51 elseif( fromto .eq.
'xyz2prim')
then 60 write(0,*)
' fromto=', fromto,
' not supported' 63 write(*,
'(3g12.4)') xyzout.x, xyzout.y, xyzout.z
latitude latitude this system is used *****************************************************************! type coord sequence union map real z z in m endmap xyz map real ! latitude in deg is to the north ! longitude in deg is to the east *h ! height in m endmap llh map real ! polar angle ! azimuthal angle *radius ! radial distance endmap sph endunion character *sys ! which system xyz
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 cxyz2prim(base, a, b)
subroutine copenfw2(io, fnin, form, icon)
subroutine creadparam(io)
subroutine csetcoord(sys, x, y, z, a)
subroutine cdet2xyz(det, a, b)
subroutine cxyz2det(det, a, b)