1 |
C------------------------------------------------ |
C------------------------------------------------ |
2 |
FUNCTION RDTOFCAL(calname) |
FUNCTION RDTOFCAL(calname,cnlen) |
3 |
C------------------------------------------------ |
C------------------------------------------------ |
4 |
|
|
5 |
include 'input_tof.txt' |
include 'input_tof.txt' |
15 |
c------------------------------------------------------------------------ |
c------------------------------------------------------------------------ |
16 |
character*250 calname |
character*250 calname |
17 |
character*250 calname1 |
character*250 calname1 |
18 |
character ch |
c character ch |
19 |
|
c character*2 ch2 |
20 |
|
integer cnlen |
21 |
c------------------------------------------------------------------ |
c------------------------------------------------------------------ |
22 |
|
|
23 |
COMMON/QUEST/IQUEST(100) |
COMMON/QUEST/IQUEST(100) |
42 |
c--------------- open ToF calib rz file |
c--------------- open ToF calib rz file |
43 |
c------------------------------------------------------------------------ |
c------------------------------------------------------------------------ |
44 |
|
|
45 |
do ii=1,250 |
c do ii=1,250 |
46 |
ch=calname(ii:ii) |
c ch=calname(ii:ii) |
47 |
if (ch.eq.'.') goto 100 |
c if (ch.eq.'.') goto 100 |
48 |
enddo |
c enddo |
49 |
100 continue |
c100 continue |
50 |
calname1 = calname(1:ii)//'rz' |
c calname1 = calname(1:ii)//'rz' |
51 |
|
|
52 |
|
c do ii=1,250 |
53 |
|
cc ch=calname(ii:ii) |
54 |
|
c ch2=calname(ii:ii+1) |
55 |
|
cc write(*,*) ii,ch |
56 |
|
cc if (ch.eq.'.') goto 100 |
57 |
|
c if (ch2.eq.'rz') goto 100 |
58 |
|
c enddo |
59 |
|
c100 continue |
60 |
|
c calname1 = calname(1:ii)//'rz' |
61 |
|
c calname1 = calname(1:ii+1) |
62 |
|
|
63 |
|
calname1 = calname(1:cnlen) |
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
CALL HROPEN(59,'TOFK1131',calname1,'QP',4096,istat) |
CALL HROPEN(59,'TOFK1131',calname1,'QP',4096,istat) |
69 |
|
|