5 * Revision 1.2 1998/02/10 16:04:20 japost
6 * Comments are correctly redistributed.
8 * Revision 1.1.1.1 1995/10/24 10:21:18 cernlib
12 #include "geant321/pilot.h"
13 *CMZ : 3.21/02 29/03/94 15.41.21 by S.Giani
15 SUBROUTINE GFVERT(NVTX,V,NTBEAM,NTTARG,TOFG,UBUF,NWBUF)
17 C. ******************************************************************
19 C * Retrieves the parameter of a vertex bank *
20 C * Vertex is generated from tracks NTBEAM NTTARG *
21 C * NVTX is the new vertex number *
24 C. * NVTX new vertex number (=0 in case of error). *
27 C. * VERT array of (x,y,z) position of the vertex *
28 C. * NTBEAM beam track number origin of the vertex *
29 C. * =0 if none exists *
30 C. * NTTARG target track number origin of the vertex *
31 C. * TOFG time of flight when the vertex was created
32 C. * UBUF user array of NUBUF floating point numbers *
35 C. * ==>Called by : <USER> *
36 C. * Authors F.Carminati ********* *
38 C. ******************************************************************
40 #include "geant321/gcbank.inc"
41 #include "geant321/gcunit.inc"
42 #include "geant321/gcnum.inc"
43 DIMENSION V(3),UBUF(1)
45 C. ------------------------------------------------------------------
47 IF (JVERTX.EQ.0.OR.NVERTX.LE.0)THEN
52 IF(NVTX.GT.NVERTX) THEN
53 WRITE(CHMAIL,10100)NVERTX
59 WRITE(CHMAIL,10100)NVERTX
71 IF(IQ(JV-2).GE.1) THEN
76 UBUF(IBUF)=Q(JUV+IBUF)
81 10000 FORMAT(' **** GFVERT: No vertex stored in memory')
82 10100 FORMAT(' **** GFVERT: Vertex ',I10,' does not exist')