]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | * |
2 | * $Id$ | |
3 | * | |
4 | * $Log$ | |
d43b40e2 | 5 | * Revision 1.1.1.1 1999/05/18 15:55:17 fca |
6 | * AliRoot sources | |
7 | * | |
fe4da5cc | 8 | * Revision 1.1.1.1 1995/10/24 10:20:46 cernlib |
9 | * Geant | |
10 | * | |
11 | * | |
12 | #include "geant321/pilot.h" | |
13 | *CMZ : 3.21/02 29/03/94 15.41.32 by S.Giani | |
14 | *-- Author : | |
15 | SUBROUTINE GPCSET(PAR) | |
16 | C- | |
17 | C- Created 26-JUN-1991 Nils Joar Hoimyr | |
18 | C- Modified 21.02.1992 Jouko Vuoskoski | |
19 | C- Modified 02.04.92 NJH | |
20 | C- | |
21 | C--------------------------------------------------------- | |
22 | #include "geant321/gcsetf.inc" | |
23 | ||
24 | C | |
d43b40e2 | 25 | DIMENSION PAR(100) |
fe4da5cc | 26 | REAL PHIMIN,PHIMAX,PX,PY,PZ,RMIN,RMAX |
27 | C- | |
28 | C- Describes a contour face of a PCON shape calculated from the GEANT | |
29 | C- PCON shape parameters. This face is rotated around the | |
30 | C- Z-axis to generated the solid shape in SET. | |
31 | C--------------------------------------------------------- | |
32 | C | |
33 | PHIMIN=(PAR(1)-90.0) | |
34 | PHIMAX=(PHIMIN+PAR(2)) | |
35 | NZ=PAR(3) | |
36 | C Solid of revolution described by rotation of a face | |
37 | C Face defined in the yz-plane (x=0) | |
38 | C WRITE SET@103,F1#3,3,2,P1X,P1Y,P1Z,P2X......... | |
39 | C--------------------------------------------------------- | |
40 | C | |
41 | WRITE(BLKSTR,10000)N1 | |
42 | CALL GJWRIT | |
43 | C--------------------------------------------------------- | |
44 | N2= 1 | |
45 | PX= 0.0 | |
46 | C | |
47 | PY= PAR(5) | |
48 | PZ= PAR(4) | |
49 | C--------------------------------------------------------- | |
50 | C | |
51 | WRITE(BLKSTR,10100)PX,PY,PZ | |
52 | CALL GJWRIT | |
53 | C--------------------------------------------------------- | |
54 | C | |
55 | DO 10 K=1,NZ | |
56 | N2=N2+3 | |
57 | PY= PAR(N2+2) | |
58 | PZ= PAR(N2) | |
59 | RMIN= PAR(N2+1) | |
60 | RMAX=PAR(N2+2) | |
61 | IF (RMIN .GE. RMAX) GOTO 10 | |
62 | C | |
63 | C--------------------------------------------------------- | |
64 | C | |
65 | WRITE(BLKSTR,10100)PX,PY,PZ | |
66 | CALL GJWRIT | |
67 | C--------------------------------------------------------- | |
68 | C | |
69 | 10 CONTINUE | |
70 | C | |
71 | DO 20 L=2,NZ | |
72 | PY= PAR(N2+1) | |
73 | PZ= PAR(N2) | |
74 | C | |
75 | C--------------------------------------------------------- | |
76 | C | |
77 | WRITE(BLKSTR,10100)PX,PY,PZ | |
78 | CALL GJWRIT | |
79 | C--------------------------------------------------------- | |
80 | N2=N2-3 | |
81 | 20 CONTINUE | |
82 | C WRITE SET @100,N..#144,!F1,PHIMIN,PHIMAX. | |
83 | C | |
84 | N1=N1+1 | |
85 | WRITE(BLKSTR,10200)N1,N1-1,PHIMIN,PHIMAX | |
86 | CALL GJWRIT | |
87 | C | |
88 | 10000 FORMAT('@103,',I10,',:5,2#3,3,2') | |
89 | 10100 FORMAT(',',G14.7,',',G14.7,',',G14.7) | |
90 | 10200 FORMAT('@100,',I10,',:5,2#144,!',I10,',',G14.7,',',G14.7) | |
91 | C | |
92 | END |