Routine ID: BASE410 | |
---|---|
Author(s): | Submitted: 08.08.87 |
Origin: R.Brun | Revised: 08.11.93 |
CALL GLOOK (CHNAME,IVECT,N,ILOOK*)
This routine is very useful when searching for a string stored in a ZEBRA bank. For instance to find the position of the 'CRYS' volume in the volume bank, the following piece of code could be written:
+SEQ,GCBANK. +SEQ,GCNUM. . . . CALL GLOOK('CRYS',IQ(JVOLUM+1),NVOLUM,IVO) IF(IVO.GT.0) THEN JVO = LQ(JVOLUM-IVO) ELSE JVO = 0 ENDIF
JVO, if different from 0, is the pointer to the data bank containing the information relative to the volume 'CRYS'.
CALL GEVKEV (EGEV,ENERU*,CHUNIT*)
This subroutine converts the input energy in GeV to a unit in which . CHUNIT contains the new unit. The following piece of code illustrates the use of GEVKEV:
+SEQ,GCTRAK. CHARACTER*4 CHUNIT . . . CALL GEVKEV(DESTEP, DE, CHUNIT) WRITE(6,10000) DE, CHUNIT 10000 FORMAT(' The energy loss in this step is ',F7.2,A)