]> git.uio.no Git - u/mrichter/AliRoot.git/blame - GEANT321/gdraw/gdrawx.F
Bugfix in AliPoints2Memory
[u/mrichter/AliRoot.git] / GEANT321 / gdraw / gdrawx.F
CommitLineData
fe4da5cc 1*
2* $Id$
3*
4* $Log$
5* Revision 1.1.1.1 1995/10/24 10:20:27 cernlib
6* Geant
7*
8*
9#include "geant321/pilot.h"
10*CMZ : 3.21/02 29/03/94 15.41.27 by S.Giani
11*-- Author :
12 SUBROUTINE GDRAWX(NAME,CUTTHE,CUTPHI,CUTVAL,THE,PHI,U0,V0,SU,SV)
13C.
14C. ******************************************************************
15C. * *
16C. * Draw extended cut : this routine is similar to GDRAWC *
17C. * but any cut plane can be choosen, instead of just *
18C. * the three planes normal to the main axes. *
19C. * *
20C. * The cut plane is normal to the line given by *
21C. * the two cut angles CUTTHE,CUTPHI *
22C. * and it is placed at the distance CUTVAL from the origin. *
23C. * *
24C. * The resulting picture is seen from the angles THE,PHI *
25C. * *
26C. * ==>Called by : <USER>, <GXINT> *
27C. * Author : P.Zanarini ********* *
28C. * *
29C. ******************************************************************
30C.
31#include "geant321/gcbank.inc"
32#include "geant321/gcdraw.inc"
33 CHARACTER*4 NAME
34C.
35C. ------------------------------------------------------------------
36C.
37C Allocate working space
38C
39 CALL GWORK(NWCUT)
40C
41 IF (CUTTHE.EQ.90.AND.CUTPHI.EQ.180) THEN
42 ICUT=1
43 ELSE IF (CUTTHE.EQ.90.AND.CUTPHI.EQ.0) THEN
44 ICUT=1
45 ELSE IF (CUTTHE.EQ.90.AND.CUTPHI.EQ.90) THEN
46 ICUT=2
47 ELSE IF (CUTTHE.EQ.0.AND.CUTPHI.EQ.0) THEN
48 ICUT=3
49 ELSE
50 ICUT=0
51 ENDIF
52C
53 DCUT=CUTVAL
54 CTHETA=CUTTHE
55 CPHI=CUTPHI
56C
57 NSURF=0
58 ISURF=1
59C
60C ICUTFL=1 informs GDRAW to call GDRWSC instead of GDRAWS
61C (so that we'll have stored surfaces instead of drawn lines
62C and to use the line buffer logic of GDRAWV
63C
64C PSI is fixed to 0.
65C
66 ICUTFL=1
67 CALL GDRAW(NAME,THE,PHI,0.,U0,V0,SU,SV)
68 ICUTFL=0
69 END