*-- Author : Stephen J. Maxfield 30/03/92 SUBROUTINE FRSGST **: FRSGST 30907 SM. Allow for 12-wire readout. **---------------------------------------------------------------------- **: FRSGST 30907 SM. New routine for monitoring. **---------------------------------------------------------------------- * * Make diagnostic histograms of radial segments. * * *KEEP,BCS. *KEEP,BOSMDL. C ------BOSMDL C ------ *KEEP,FSGPAR. *KEEP,H1EVDT. * * IDATA type of information (HEAD bank word 6) : * * 0 - real data H1 * 1 - MC data H1SIM * 2 - real data CERN tests * 3 - MC data ARCET * * MONTE = .TRUE. if IDATA=1 * KEVENT = event processed counter for H1REC * *KEND. * * *KEEP,STFUNCT. * index of element before row number IROW * index of L'th element of row number IROW * L'th integer element of the IROW'th row of bank with index IND * L'th real element of the IROW'th row of bank with index IND *KEEP,FTFUNCT. * Statement functions for RADIAL Chamber data access. * Using Channel Number J * Module, Wedge-pair and Z-plane numbers... * Statement function for obtaining WEDGE numbers(0-47) of * wires at plus and minus ends of Cell numbers * Statement function for obtaining IOS wire number (1-36) * Statement functions for PLANAR Chamber data access. * Using Channel Number J * Module, orientation, W-cell and Z-plane numbers... * IPSMD in range 0:8 Planar module number. * * IOS wire number (runs from 0 to 36) * SB plane numbers (1-72) from cell number * Module, orientation, wire and (typical) cell number from plane * number in the range 1-72 (planars, radials and combined) *KEND. * Radial segment bank... IFRSG = NLINK('FRSG',0) * Radial hit bank... IFRLC = NLINK('FRLC',0) * Radial geometry bank... IFRG1 = NLINK('FRG1',0) CALL VZERO(NSGFND, 3) * Cell number and flag... * Pointer to geometry for this hit (+ or - wedge) * geometry... * Predict the drift from the segment parameters... * expected drift not including wire stagger... * measured drift, signed and corrected for stagger... CALL SHS(251, 0,QSUM) CALL SHS(251,KDP,QSUM) CALL SHD(252,0,QSUM,FLOAT(KDP)) CALL SHS(204, 0, F1 ) CALL SHS(205, 0, F2 ) CALL SHS(206, 0, F3 ) CALL SHS(207, 0, FALL) CALL SHS(260, 0, USED) *