/[PAMELA software]/DarthVader/ToFLevel2/src/rdtofcal.for
ViewVC logotype

Diff of /DarthVader/ToFLevel2/src/rdtofcal.for

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mocchiut, Sat Jun 17 12:14:56 2006 UTC revision 1.4 by mocchiut, Thu Nov 9 17:05:48 2006 UTC
# Line 1  Line 1 
1  C------------------------------------------------  C------------------------------------------------
2        FUNCTION RDTOFCAL(calname)        FUNCTION RDTOFCAL(calname,cnlen)
3  C------------------------------------------------  C------------------------------------------------
4    
5        include 'input_tof.txt'        include 'input_tof.txt'
# Line 15  c     local variables Line 15  c     local variables
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)
# Line 40  c--------------------------------------- Line 42  c---------------------------------------
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    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23