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

Contents of /gpamela/gpspe/gpspev.F

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3.3 - (show annotations) (download)
Mon Jul 25 11:53:21 2005 UTC (19 years, 4 months ago) by cafagna
Branch: MAIN
CVS Tags: v4r3
Changes since 3.2: +83 -34 lines
Several updates. See history for details

1
2 *
3 * $Id: gpspev.F,v 3.2 2005/06/21 02:42:27 cafagna Exp $
4 *
5 * $Log: gpspev.F,v $
6 * Revision 3.2 2005/06/21 02:42:27 cafagna
7 * Major modification to the geometry and to the random number chain
8 *
9 * Revision 3.1.1.1 2002/07/11 16:02:14 cafagna
10 * First GPAMELA release on CVS
11 *
12 *
13 *CMZ : 2.01/00 05/04/2000 14.35.18 by Marialuigia Ambriola
14 *CMZ : 2.00/00 03/03/2000 15.39.06 by Francesco Cafagna
15 *CMZ : 1.02/00 07/03/97 14.48.41 by Francesco Cafagna
16 *CMZ : 1.00/02 06/02/96 17.34.50 by Francesco Cafagna
17 *-- Author : Francesco Cafagna 09/12/95
18 SUBROUTINE GPSPEV
19 ************************************************************************
20 * *
21 * Volumes definition for the silicon tracking system and magnet *
22 * Called by: GPGEM *
23 * Author: Francesco Cafagna, 05/12/95 13.39.41 *
24 * *
25 ************************************************************************
26 #include "gpgeo.inc"
27 #include "gpmed.inc"
28 *
29 INTEGER IROT,IVOLU,N,NMED,NUM
30 REAL X,Y,Z
31 *
32 * Define the SPEB volume
33 *
34 NMED= MN2
35 CALL GSVOLU('SPEB','BOX ',NMED,SPEB, 3,IVOLU)
36 *
37 * Define the MGFR volume
38 *
39 NMED= MAL
40 CALL GSVOLU('MGFR','BOX ',NMED,MGFR, 3,IVOLU)
41 *
42 * Define the MGPL volume
43 *
44 NMED= MMAG
45 CALL GSVOLU('MGPL','BOX ',NMED,MGPL, 3,IVOLU)
46 *
47 * Define the MGPI volume
48 *
49 NMED= MN2
50 CALL GSVOLU('MGPI','BOX ',NMED,MGPI, 3,IVOLU)
51 *
52 * Define the TRPB volume
53 *
54 NMED= MAL
55 CALL GSVOLU('TRPB','BOX ',NMED,TRPB, 3,IVOLU)
56 *****
57 cC ml 20/04/05:
58 *
59 cc* Define the TRPL volume
60 * Define the TPAS and TPAI volume
61 *
62 NMED= MN2
63 CC CALL GSVOLU('TRPL','BOX ',NMED,TRPL, 3,IVOLU)
64 CALL GSVOLU('TPAS','BOX ',NMED,TPAS, 3,IVOLU)
65 NMED= MAL
66 CALL GSVOLU('TPAI','BOX ',NMED,TPAI, 3,IVOLU)
67 CC end ml.
68 ****************
69 *
70 * Define the TRSL volume
71 *
72 c ml: 26/11/04:
73 c NMED= MN2
74 NMED=MSIT
75 CALL GSVOLU('TRSL','BOX ',NMED,TRSL, 3,IVOLU)
76 *
77 * Define the THBP volume
78 *
79 NMED=MG10C
80 CALL GSVOLU('THBP','BOX ',NMED,THBP, 3,IVOLU)
81 C end ml.
82 *
83 * Define the TSPA volume
84 *
85 NMED= MSIT
86 CALL GSVOLU('TSPA','BOX ',NMED,TSPA, 3,IVOLU)
87 *
88 * Define the TRCP volume
89 *
90 NMED= MCF
91 CALL GSVOLU('TRCP','BOX ',NMED,TRCP, 3,IVOLU)
92 *
93 * Positioning volume TSPA into the mother TRSL
94 *
95 N= 1
96 X= 0.
97 c ml: 26/11/66:
98 c Y= TRSL(2) - TSPA(2)
99 C # Y=+TRSL(2)/2
100 Y= 0.
101 Z= 0.
102 CALL GSPOS('TSPA',N,'TRSL',X,Y,Z,0,'ONLY')
103 C # N= 2
104 C # C Y= Y - 2.*TSPA(2)
105 C # Y=-TRSL(2)/2
106 C # CALL GSPOS('TSPA',N,'TRSL',X,Y,Z,0,'ONLY')
107 c ml: 26/11/04:
108 *
109 c* Positioning volume TRCP into the mother TRSL
110 CC ml 20/04/05:
111 CC* Positioning volume TRCP into mother TRPL
112 * Positioning volume TRCP into mother TRPB
113 *
114 c N= 1
115 CC ml 20/04/05:
116 cc Z= 0.
117 cc Y= 0.
118 C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one
119 C # Z=-TRPB(3)+0.11+TRCP(3)
120 C # Y=-TRPB(2)+1.5-0.225+TRCP(2)
121 CC end ml.
122 Z=-0.005
123 y=-0.225-TPAS(2)+TRCP(2)
124 C # end CAF mod
125 DO I=1,4
126 CC ml 20/04/05:
127 CC X=-TRPL(1)+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)
128 C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one
129 C # X=-TRPB(1)+2.29+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)
130 X=-TPAS(1)+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)
131 CC end ml
132 c CALL GSPOS('TRCP',I,'TRPL',X,Y,Z,0,'ONLY')
133 C # CALL GSPOS('TRCP',I,'TRPB',X,Y,Z,0,'ONLY')
134 CALL GSPOS('TRCP',I,'TPAS',X,Y,Z,0,'ONLY')
135 C # end CAF mod
136 ENDDO
137 c X= -TRSL(1) + TRCP(1)
138 c CALL GSPOS('TRCP',N,'TRSL',X,Y,Z,0,'ONLY')
139 C N= 2
140 C X= -X
141 C CALL GSPOS('TRCP',N,'TRSL',X,Y,Z,0,'ONLY')
142 *****
143 cc ml 20/04/05:
144 *
145 *** Positioning volume TRSL into the mother TRPL
146 * Positioning volume TRSL into the mother TRPB
147 *
148 c ml: 26/11/04:
149 C Y= 0.
150 cc Y=THBP(2)
151 C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one
152 C # Y=-TRPB(2)+1.5+2*THBP(2)+TRSL(2)
153 C Y=2.75
154 CC Z= 0.
155 C # Z=-TRPB(3)+0.11+TRCP(3)
156 Z=-0.005
157 DO I=1, NTRSL
158 X=-TPAS(1)+2*(MOD(I-1,3)+1)*TRCP(1)+
159 + (2*(MOD(I-1,3)+1)-1)*TRSL(1)
160 IF(I.LE.3) THEN
161 Y=TPAS(2)-TRSL(2)
162 ELSE
163 Y=TPAS(2)-3*TRSL(2)
164 ENDIF
165 CALL GSPOS('TRSL',I,'TPAS',X,Y,Z,0,'ONLY')
166 ENDDO
167 C # end CAF mod
168 **********
169 cc ml: 20/04/05
170 *
171 ********* Positioning volume THBP into the mother TRPL
172 * Positioning volume THBP into the mother TRPB
173 *
174 cc Y=-TRSL(2)
175 C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one
176 C # Y=-TRPB(2)+1.5+THBP(2)
177 C # cc Z= 0.
178 C # Z=-TRPB(3)+0.11+TRCP(3)
179 Y=-TPAS(2)+THBP(2)
180 Z=-0.005
181 DO I=1, NTHBP
182 CC X= -TRPL(1) + 2*I*TRCP(1)+(2*I-1)*THBP(1)
183 C # X=-TRPB(1)+2.29+2*I*TRCP(1)+(2*I-1)*THBP(1)
184 X=-TPAS(1)+2*I*TRCP(1)+(2*I-1)*THBP(1)
185 cc CALL GSPOS('THBP',I,'TRPL',X,Y,Z,0,'ONLY')
186 C # CALL GSPOS('THBP',I,'TRPB',X,Y,Z,0,'ONLY')
187 CALL GSPOS('THBP',I,'TPAS',X,Y,Z,0,'ONLY')
188 ENDDO
189 c end ml.
190 cc ml: 20/04/05
191 *
192 * Positioning volume TPAI into the mother TRPB
193 *
194 C # Mod By Caf on 19th Jul 2005 all volumes inside the TPAS
195 X=0
196 Y=-TPAS(2)+TPAI(2)
197 Z=-TPAS(3)+TPAI(3)
198 C # X=-TRPB(1)+2.29+TPAI(1)
199 C # Y=-TRPB(2)+1.5+2.5+TPAI(2)
200 C # Z=-TRPB(3)+TPAI(3)
201 CALL GSPOS('TPAI',I,'TPAS',X,Y,Z,0,'ONLY')
202 C # end CAF mod
203 *
204 * Positioning volume TPAS into the mother TRPB
205 *
206 C # Mod By Caf on 15th Jul 2005
207 X=0
208 Y=-TRPB(2)+1.5+TPAS(2)
209 Z=0
210 C # X=-TRPB(1)+2.29+TPAS(1)
211 C # Y=-TRPB(2)+1.5+TPAS(2)
212 C # Z=-TRPB(3)+0.11+2*TRCP(3)+TPAS(3)
213 CALL GSPOS('TPAS',I,'TRPB',X,Y,Z,0,'ONLY')
214 c end ml.
215
216 *
217 * Positioning volume MGPI into the mother MGPL
218 *
219 N= 1
220 X= 0.
221 Y= 0.
222 Z= 0.
223 CALL GSPOS('MGPI',N,'MGPL',X,Y,Z,0,'ONLY')
224 *
225 * Positioning volume MGPL into the mother MGFR
226 *
227 CALL GSPOS('MGPL',N,'MGFR',X,Y,Z,0,'ONLY')
228 C Ml: 20/04/05:
229 c*
230 c* Positioning volume TRPL into the mother TRPB
231 c*
232 c N= 1
233 c Z= 0.
234 c CALL GSPOS('TRPL',N,'TRPB',X,Y,Z,0,'ONLY')
235 c end ml.
236 *
237 * Positioning volumes TRPB & MGPL into the mother SPEB
238 *
239 N= 1
240 X= 0.
241 Y= SPEB(2) - TRPB(2)
242 Z= SPEB(3) - TRPB(3)
243 CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY')
244 DO I=1, 5
245 X= 0.
246 Y= 0.
247 Z= Z - TRPB(3) - MGFR(3)
248 N= I
249 CALL GSPOS('MGFR',N,'SPEB',X,Y,Z,0,'ONLY')
250 Y= SPEB(2) - TRPB(2)
251 Z= Z - MGFR(3) - TRPB(3)
252 N= (I+1)
253 IF(I.EQ.5) THEN
254 CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,10,'ONLY')
255 ELSE
256 CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY')
257 ENDIF
258 ENDDO
259 *
260 RETURN
261 END

  ViewVC Help
Powered by ViewVC 1.1.23