5 * Revision 1.1.1.1 1995/10/24 10:20:46 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.32 by S.Giani
12 SUBROUTINE GPCSET(PAR)
14 C- Created 26-JUN-1991 Nils Joar Hoimyr
15 C- Modified 21.02.1992 Jouko Vuoskoski
16 C- Modified 02.04.92 NJH
18 C---------------------------------------------------------
19 #include "geant321/gcsetf.inc"
23 REAL PHIMIN,PHIMAX,PX,PY,PZ,RMIN,RMAX
25 C- Describes a contour face of a PCON shape calculated from the GEANT
26 C- PCON shape parameters. This face is rotated around the
27 C- Z-axis to generated the solid shape in SET.
28 C---------------------------------------------------------
31 PHIMAX=(PHIMIN+PAR(2))
33 C Solid of revolution described by rotation of a face
34 C Face defined in the yz-plane (x=0)
35 C WRITE SET@103,F1#3,3,2,P1X,P1Y,P1Z,P2X.........
36 C---------------------------------------------------------
40 C---------------------------------------------------------
46 C---------------------------------------------------------
48 WRITE(BLKSTR,10100)PX,PY,PZ
50 C---------------------------------------------------------
58 IF (RMIN .GE. RMAX) GOTO 10
60 C---------------------------------------------------------
62 WRITE(BLKSTR,10100)PX,PY,PZ
64 C---------------------------------------------------------
72 C---------------------------------------------------------
74 WRITE(BLKSTR,10100)PX,PY,PZ
76 C---------------------------------------------------------
79 C WRITE SET @100,N..#144,!F1,PHIMIN,PHIMAX.
82 WRITE(BLKSTR,10200)N1,N1-1,PHIMIN,PHIMAX
85 10000 FORMAT('@103,',I10,',:5,2#3,3,2')
86 10100 FORMAT(',',G14.7,',',G14.7,',',G14.7)
87 10200 FORMAT('@100,',I10,',:5,2#144,!',I10,',',G14.7,',',G14.7)