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