| 40 |
if(verbose.eq.1)print*,'view ',iv,': ',(mask_vk(iv,i),i=1,24) |
if(verbose.eq.1)print*,'view ',iv,': ',(mask_vk(iv,i),i=1,24) |
| 41 |
enddo |
enddo |
| 42 |
1000 close(10) |
1000 close(10) |
| 43 |
1001 continue |
c 1001 continue |
| 44 |
return |
return |
| 45 |
end |
end |
| 46 |
|
|
| 88 |
1000 close(10) |
1000 close(10) |
| 89 |
enddo |
enddo |
| 90 |
|
|
| 91 |
return |
return |
| 92 |
end |
end |
| 93 |
*** * * * *** * * * *** * * * *** * * * *** * * * *** * * * *** |
*** * * * *** * * * *** * * * *** * * * *** * * * *** * * * *** |
| 94 |
subroutine readchargeparam |
subroutine readchargeparam |
| 98 |
include 'calib.f' |
include 'calib.f' |
| 99 |
include 'common_c2f.f' !<<<< C2F |
include 'common_c2f.f' !<<<< C2F |
| 100 |
character*60 fname_param |
character*60 fname_param |
| 101 |
c2f_error = 0 |
c2f_error = 0 |
| 102 |
201 format('charge-l',i1,'.dat') |
201 format('charge-l',i1,'.dat') |
| 103 |
do ilad=1,nladders_view |
do ilad=1,nladders_view |
| 104 |
write(fname_param,201)ilad |
write(fname_param,201)ilad |
| 122 |
$ )pip, |
$ )pip, |
| 123 |
$ kch(ip,ilad),cch(ip,ilad),sch(ip,ilad) |
$ kch(ip,ilad),cch(ip,ilad),sch(ip,ilad) |
| 124 |
if(iostat.ne.0)then |
if(iostat.ne.0)then |
| 125 |
c2f_error = 1 |
c2f_error = 1 |
| 126 |
goto 1000 |
goto 1000 |
| 127 |
endif |
endif |
| 128 |
enddo |
enddo |
| 150 |
|
|
| 151 |
|
|
| 152 |
c2f_error = 0 |
c2f_error = 0 |
| 153 |
|
|
| 154 |
* ====================================================== |
* ====================================================== |
| 155 |
* read ANGULAR BINNING info |
* read ANGULAR BINNING info |
| 156 |
* ====================================================== |
* ====================================================== |
| 338 |
c character*120 cmd1 |
c character*120 cmd1 |
| 339 |
c character*120 cmd2 |
c character*120 cmd2 |
| 340 |
|
|
| 341 |
c2f_error = 0 |
c2f_error = 0 |
| 342 |
call mech_sensor |
call mech_sensor |
| 343 |
do ip=1,nplanes |
do ip=1,nplanes |
| 344 |
fitz(ip)=z_mech_sensor(ip,1,1)*0.1 !cm |
fitz(ip)=z_mech_sensor(ip,1,1)*0.1 !cm |
| 365 |
$ ,STATUS='OLD',IOSTAT=iostat |
$ ,STATUS='OLD',IOSTAT=iostat |
| 366 |
$ ) |
$ ) |
| 367 |
if(iostat.ne.0)then |
if(iostat.ne.0)then |
| 368 |
c2f_error = 1 |
c2f_error = 1 |
| 369 |
return |
return |
| 370 |
endif |
endif |
| 371 |
|
|
| 428 |
|
|
| 429 |
real xvec(nladders_view),yvec(2),zvec(nplanes) |
real xvec(nladders_view),yvec(2),zvec(nplanes) |
| 430 |
|
|
| 431 |
c2f_error = 0 |
c2f_error = 0 |
| 432 |
|
|
| 433 |
c if(C2F_DEBUG.EQ.1.eq.1)print * |
c if(C2F_DEBUG.EQ.1.eq.1)print * |
| 434 |
if(VERBOSE.EQ.1)print * |
if(VERBOSE.EQ.1)print * |
| 435 |
$ ,c2f_path(1:c2f_pathlen)//'mech_pos.dat' |
$ ,c2f_path(1:c2f_pathlen)//'mech_pos.dat' |