COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cqUHookr.f
Go to the documentation of this file.
1  subroutine cquhookr(i, rv)
2  implicit none
3 #include "Zmanagerp.h"
4 ! returns i-th userhook real variable value r,
5  integer i ! input.
6  real*8 rv ! output. r
7  if(i .le. 0 .or. i .gt. max_userhookr) then
8 ! call cerrorMsg('out of range for cqUHookr', 0)
9  rv = -1.d-60
10  else
11  rv = userhookr(i)
12  endif
13  end
14  subroutine cquhooki(i, iv)
15  implicit none
16 #include "Zmanagerp.h"
17 ! returns i-th userhook integer variable value iv
18  integer i ! input.
19  integer iv ! output. integer value
20  if(i .le. 0 .or. i .gt. max_userhooki) then
21 ! call cerrorMsg('out of range for cqUHooki', 0)
22  iv = -9999999
23  else
24  iv = userhooki(i)
25  endif
26  end
27  subroutine cquhookc(i, cv)
28  implicit none
29 #include "Zmanagerp.h"
30 ! returns i-th userhook character variable value cv
31  integer i ! input.
32  character*(*) cv ! output. blank tail of UserHookc is omitted.
33 
34  integer klena
35  if(i .le. 0 .or. i .gt. max_userhookc) then
36 ! call cerrorMsg('out of range for cqUHookc', 0)
37  cv = ' '
38  else
39  if( klena(userhookc(i)) .gt. 0) then
40  cv = userhookc(i)(1:klena(userhookc(i)))
41  else
42  cv = ' '
43  endif
44  endif
45  end
46 
47 
subroutine cquhookr(i, rv)
Definition: cqUHookr.f:2
dE dx *! Nuc Int sampling table d
Definition: cblkMuInt.h:130
subroutine cquhooki(i, iv)
Definition: cqUHookr.f:15
subroutine cquhookc(i, cv)
Definition: cqUHookr.f:28