]> git.uio.no Git - u/mrichter/AliRoot.git/blame - GEANT321/geocad/gboset.F
Makefile added to PDF8
[u/mrichter/AliRoot.git] / GEANT321 / geocad / gboset.F
CommitLineData
fe4da5cc 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 GBOSET(PAR)
13C- Created 12-JUN-1991 Nils Joar Hoimyr, Jouko Vuoskoski
14C- Modified 21.02.1992 Jouko Vuoskoski
15C-
16C- Takes the GEANT shape BOX, converts it to a SET box, with
17C- the right position and writes the shape to the current SET file.
18C -
19C----------------------------------------------------------------------
20C
21#include "geant321/gcsetf.inc"
22
23C
24 REAL PAR
25 DIMENSION PAR(50)
26C
27 REAL X,Y,Z,DX,DY,DZ
28C
29C
30C----------------------------------------------------------------------
31C
32C BOX
33C
34 DX=PAR(1)
35 DY=PAR(2)
36 DZ=PAR(3)
37 X=2*DX
38 Y=2*DY
39 Z=2*DZ
40C *WRITE SET @50,N1,:5,2#60,X,Y,Z
41C *WRITE SET @302,N2,#317,-DX,-DY,-DZ
42C *WRITE SET @100,N3,:5,2,:9,'Name'#101,!N1,!N2
43C
44C-------------------------------------------------------------------
45C
46 WRITE(BLKSTR,10000)N1, X, Y, Z
47 CALL GJWRIT
48 N1=N1+1
49 WRITE(BLKSTR,10100)N1,-DX,-DY,-DZ
50 CALL GJWRIT
51 N1=N1+1
52 WRITE(BLKSTR,10200)N1,N1-2,N1-1
53 CALL GJWRIT
54C
5510000 FORMAT('@50,',I10,',:5,2#60,',G14.7,',',G14.7,',',G14.7)
5610100 FORMAT('@302,',I10,'#317,',G14.7,',',G14.7,',',G14.7)
5710200 FORMAT('@100,',I10,',:5,2#101,!',I10,',!',I10)
58C
59C
60C
61 END