--- DarthVader/ToFLevel2/src/rdtofcal.for 2006/11/09 17:05:48 1.4 +++ DarthVader/ToFLevel2/src/rdtofcal.for 2011/11/23 21:19:38 1.8 @@ -1,11 +1,12 @@ C------------------------------------------------ - FUNCTION RDTOFCAL(calname,cnlen) + REAL FUNCTION RDTOFCAL(calname,cnlen) C------------------------------------------------ include 'input_tof.txt' c----- HBOOK INTEGER HMEM +c REAL RDTOFCAL parameter (NWPAWC=8500000) common/PAWC/HMEM(NWPAWC) @@ -28,6 +29,8 @@ INTEGER lrec INTEGER istat, ierr, icycle + +c REAL x_coor_lin11(8,2),y_coor_lin12(6,2) PARAMETER (lrec=4096) C------------------------------------------------------------------------- @@ -36,6 +39,7 @@ c c------------------------------------------------------------------------ + RDTOFCAL = 0. call HLIMIT(NWPAWC) c------------------------------------------------------------------------ @@ -95,6 +99,8 @@ call HBNAME(ntp_tofcalib,'TOFLIN11',y_coor_lin11,'$SET') call HBNAME(ntp_tofcalib,'TOFLIN12',x_coor_lin12,'$SET') +c call HBNAME(ntp_tofcalib,'TOFLIN11',x_coor_lin11,'$SET') +c call HBNAME(ntp_tofcalib,'TOFLIN12',y_coor_lin12,'$SET') call HBNAME(ntp_tofcalib,'TOFLIN21',x_coor_lin21,'$SET') call HBNAME(ntp_tofcalib,'TOFLIN22',y_coor_lin22,'$SET') call HBNAME(ntp_tofcalib,'TOFLIN31',y_coor_lin31,'$SET') @@ -120,12 +126,13 @@ do iev=1,iemax_cal call HGNT(ntp_tofcalib,iev,ierr) !reads an event +c print *,' ierr ',ierr enddo call hrout(ntp_tofcalib,icycle,' ') call hrend('TOFK1131') close(0) - return - end + return + end