/[PAMELA software]/gpamela/gpspe/gpspev.F
ViewVC logotype

Contents of /gpamela/gpspe/gpspev.F

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3.1.1.1 - (show annotations) (download) (vendor branch)
Thu Jul 11 16:02:14 2002 UTC (22 years, 4 months ago) by cafagna
Branch: v3r0
CVS Tags: v4r0, v4r1, firstrelease, v3r3, v3r1, v3r2
Changes since 3.1: +0 -0 lines
First GPAMELA release on CVS

1 *
2 * $Id$
3 *
4 * $Log$
5 *
6 *CMZ : 2.01/00 05/04/2000 14.35.18 by Marialuigia Ambriola
7 *CMZ : 2.00/00 03/03/2000 15.39.06 by Francesco Cafagna
8 *CMZ : 1.02/00 07/03/97 14.48.41 by Francesco Cafagna
9 *CMZ : 1.00/02 06/02/96 17.34.50 by Francesco Cafagna
10 *-- Author : Francesco Cafagna 09/12/95
11 SUBROUTINE GPSPEV
12 ************************************************************************
13 * *
14 * Volumes definition for the silicon tracking system and magnet *
15 * Called by: GPGEM *
16 * Author: Francesco Cafagna, 05/12/95 13.39.41 *
17 * *
18 ************************************************************************
19 #include "gpgeo.inc"
20 #include "gpmed.inc"
21 *
22 INTEGER IROT,IVOLU,N,NMED,NUM
23 REAL X,Y,Z
24 *
25 * Define the SPEB volume
26 *
27 NMED= MN2
28 CALL GSVOLU('SPEB','BOX ',NMED,SPEB, 3,IVOLU)
29 *
30 * Define the MGPL volume
31 *
32 NMED= MMAG
33 CALL GSVOLU('MGPL','BOX ',NMED,MGPL, 3,IVOLU)
34 *
35 * Define the MGPI volume
36 *
37 NMED= MN2
38 CALL GSVOLU('MGPI','BOX ',NMED,MGPI, 3,IVOLU)
39 *
40 * Define the TRPB volume
41 *
42 NMED= MAL
43 CALL GSVOLU('TRPB','BOX ',NMED,TRPB, 3,IVOLU)
44 *
45 * Define the TRPL volume
46 *
47 NMED= MN2
48 CALL GSVOLU('TRPL','BOX ',NMED,TRPL, 3,IVOLU)
49 *
50 * Define the TRSL volume
51 *
52 NMED= MN2
53 CALL GSVOLU('TRSL','BOX ',NMED,TRSL, 3,IVOLU)
54 *
55 * Define the TSPA volume
56 *
57 NMED= MSIT
58 CALL GSVOLU('TSPA','BOX ',NMED,TSPA, 3,IVOLU)
59 *
60 * Define the TRCP volume
61 *
62 NMED= MCF
63 CALL GSVOLU('TRCP','BOX ',NMED,TRCP, 3,IVOLU)
64 *
65 * Positioning volume TSPA into the mother TRSL
66 *
67 N= 1
68 X= 0.
69 Y= TRSL(2) - TSPA(2)
70 Z= 0.
71 CALL GSPOS('TSPA',N,'TRSL',X,Y,Z,0,'ONLY')
72 N= 2
73 Y= Y - 2.*TSPA(2)
74 CALL GSPOS('TSPA',N,'TRSL',X,Y,Z,0,'ONLY')
75 *
76 * Positioning volume TRCP into the mother TRSL
77 *
78 N= 1
79 Z= 0.
80 Y= 0.
81 X= -TRSL(1) + TRCP(1)
82 CALL GSPOS('TRCP',N,'TRSL',X,Y,Z,0,'ONLY')
83 N= 2
84 X= -X
85 CALL GSPOS('TRCP',N,'TRSL',X,Y,Z,0,'ONLY')
86 *
87 * Positioning volume TRSL into the mother TRPL
88 *
89 Y= 0.
90 Z= 0.
91 DO I=1, NTRSL
92 X= -TRPL(1) + TRSL(1) +2.*(I-1)*TRSL(1)
93 CALL GSPOS('TRSL',I,'TRPL',X,Y,Z,0,'ONLY')
94 ENDDO
95 *
96 * Positioning volume MGPI into the mother MGPL
97 *
98 N= 1
99 X= 0.
100 Y= 0.
101 Z= 0.
102 CALL GSPOS('MGPI',N,'MGPL',X,Y,Z,0,'ONLY')
103 *
104 * Positioning volume TRPL into the mother TRPB
105 *
106 N= 1
107 Z= 0.
108 CALL GSPOS('TRPL',N,'TRPB',X,Y,Z,0,'ONLY')
109 *
110 * Positioning volumes TRPB & MGPL into the mother SPEB
111 *
112 N= 1
113 X= 0.
114 Y= 0.
115 Z= SPEB(3) - TRPB(3)
116 CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY')
117 DO I=1, 5
118 Z= Z - TRPB(3) - MGPL(3)
119 N= I
120 CALL GSPOS('MGPL',N,'SPEB',X,Y,Z,0,'ONLY')
121 Z= Z - MGPL(3) - TRPB(3)
122 N= (I+1)
123 CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY')
124 ENDDO
125 *
126 RETURN
127 END

  ViewVC Help
Powered by ViewVC 1.1.23