]> git.uio.no Git - u/mrichter/AliRoot.git/blob - GEANT321/geocad/gcoset.F
Using dlsym to retrieve address of commons
[u/mrichter/AliRoot.git] / GEANT321 / geocad / gcoset.F
1 *
2 * $Id$
3 *
4 * $Log$
5 * Revision 1.1.1.1  1995/10/24 10:20:46  cernlib
6 * Geant
7 *
8 *
9 #include "geant321/pilot.h"
10 *CMZ :  3.21/02 29/03/94  15.41.32  by  S.Giani
11 *-- Author :
12       SUBROUTINE GCOSET(PAR,ISHAPE)
13 C-
14 C-   Created  12-JUN-1991   Nils Joar Hoimyr
15 C-   Modified 21.02.1992    Jouko Vuoskoski
16 C-
17 C-   Describes a contour face of a CONE(Segment) from the GEANT
18 C-   CONE/CONS shape parameters.  This face is rotated around the
19 C-   Z-axis to generated the solid shape in SET.
20 C----------------------------------------------------------C
21 #include "geant321/gcsetf.inc"
22  
23 C
24       DIMENSION PAR(50)
25       REAL P1X,P1Y,P1Z,P2X,P2Y,P2Z,P3X,P3Y,P3Z,P4X,P4Y,P4Z
26 C
27 C---------------------------------------------------------
28       RMIN1=PAR(2)
29       RMAX1=PAR(3)
30       RMIN2=PAR(4)
31       RMAX2=PAR(5)
32       Z2=PAR(1)
33       Z1=-Z2
34       IF (ISHAPE.EQ.7) THEN
35          PHIMIN=0.0
36          PHIMAX=360.0
37       ELSEIF (ISHAPE.EQ.8) THEN
38          PHIMIN=PAR(6)
39          PHIMAX=PAR(7)
40       ENDIF
41 C       SET CONVERSION
42       P1X= RMIN1
43       P1Y= 0
44       P1Z= Z1
45       P2X= RMIN2
46       P2Y= 0
47       P2Z= Z2
48       P3X= RMAX2
49       P3Y= 0
50       P3Z= Z2
51       P4X= RMAX1
52       P4Y= 0
53       P4Z= Z1
54 C *WRITE SET@103,F1#3,3,2,P1X,P1Y,P1Z,P2X,P2Y,P2Z,P3X,P3Y,P3Z,P4X,P4Y,P4Z
55 C *WRITE SET @100,N..#144,!F1,PHIMIN,PHIMAX.
56 C----------------------------------------------------------------------
57 C
58       WRITE(BLKSTR,10000)N1,P1X,P1Y,P1Z,P2X,P2Y,P2Z, P3X,P3Y,P3Z,P4X,
59      +P4Y,P4Z
60       CALL GJWRIT
61       N1=N1+1
62       WRITE(BLKSTR,10100)N1,N1-1,PHIMIN,PHIMAX
63       CALL GJWRIT
64 C
65 10000   FORMAT('@103,',I10,',:5,2#3,3,2,',G14.7,',',G14.7,',',G14.7,','
66      +  ,G14.7,',',G14.7,',',G14.7,',',G14.7,',',G14.7,',',G14.7,','
67      +  ,G14.7,',',G14.7,',',G14.7)
68 10100   FORMAT('@100,',I10,',:5,2#144,!',I10,',',G14.7,',',G14.7)
69 C
70 C
71       END