1 |
* |
2 |
* $Id: gptofv.F,v 3.5 2006/05/18 10:52:32 pam-ba Exp $ |
3 |
* |
4 |
* $Log: gptofv.F,v $ |
5 |
* Revision 3.5 2006/05/18 10:52:32 pam-ba |
6 |
* TOF geometry completed and a new material, the polystyrene (density 35 g/l), added |
7 |
* |
8 |
* Revision 3.4 2006/05/02 10:40:13 pam-ba |
9 |
* TOF geometry and position updated and a new material, the mylar, added |
10 |
* |
11 |
* Revision 3.3 2006/04/09 23:29:22 cafagna |
12 |
* Several new things, among this: ND and CARD |
13 |
* |
14 |
* Revision 3.2 2005/06/21 02:42:29 cafagna |
15 |
* Major modification to the geometry and to the random number chain |
16 |
* |
17 |
* Revision 3.1.1.1 2002/07/11 16:02:01 cafagna |
18 |
* First GPAMELA release on CVS |
19 |
* |
20 |
* |
21 |
*CMZ : 2.01/00 05/04/2000 14.35.18 by Marialuigia Ambriola |
22 |
*CMZ : 2.00/00 03/03/2000 15.39.05 by Francesco Cafagna |
23 |
*CMZ : 1.02/00 21/10/99 16.30.25 by Francesco Cafagna |
24 |
*CMZ : 1.00/02 18/03/96 17.18.03 by Francesco Cafagna |
25 |
*-- Author : Francesco Cafagna 05/12/95 |
26 |
SUBROUTINE GPTOFV |
27 |
************************************************************************ |
28 |
* * |
29 |
* Volumes definition for the scintillators counters * |
30 |
* Called by: GPGEO * |
31 |
* Author: Francesco Cafagna, 05/12/95 13.39.41 * |
32 |
* * |
33 |
************************************************************************ |
34 |
#include "gpgeo.inc" |
35 |
#include "gpmed.inc" |
36 |
* |
37 |
INTEGER IROT,IVOLU,N,NMED,NUM |
38 |
REAL X,Y,Z |
39 |
* |
40 |
NMED=MAL |
41 |
* |
42 |
* Define the S1 volume |
43 |
* |
44 |
CALL GSVOLU('S1 ','BOX ',NMED,S1, 3,IVOLU) |
45 |
* |
46 |
* Define the S2 volume |
47 |
* |
48 |
CALL GSVOLU('S2 ','BOX ',NMED,S2, 3,IVOLU) |
49 |
* |
50 |
NMED=MN2 |
51 |
* |
52 |
* Define the S1A volume |
53 |
* |
54 |
CALL GSVOLU('S1A ','BOX ',NMED,S1A, 3,IVOLU) |
55 |
* |
56 |
* Define the S2A volume |
57 |
* |
58 |
CALL GSVOLU('S2A ','BOX ',NMED,S2A, 3,IVOLU) |
59 |
* |
60 |
* Define the S3 volume |
61 |
* |
62 |
CALL GSVOLU('S3 ','BOX ',NMED,S3, 3,IVOLU) |
63 |
* |
64 |
NMED=MMYL |
65 |
* |
66 |
* Define the S11M volume |
67 |
* |
68 |
CALL GSVOLU('S11M','BOX ',NMED,S11M, 3,IVOLU) |
69 |
* |
70 |
* Define the S12M volume |
71 |
* |
72 |
CALL GSVOLU('S12M','BOX ',NMED,S12M, 3,IVOLU) |
73 |
* |
74 |
* Define the S21M volume |
75 |
* |
76 |
CALL GSVOLU('S21M','BOX ',NMED,S21M, 3,IVOLU) |
77 |
* |
78 |
* Define the S22M volume |
79 |
* |
80 |
CALL GSVOLU('S22M','BOX ',NMED,S22M, 3,IVOLU) |
81 |
* |
82 |
* Define the S31M volume |
83 |
* |
84 |
CALL GSVOLU('S31M','BOX ',NMED,S31M, 3,IVOLU) |
85 |
* |
86 |
* Define the S32M volume |
87 |
* |
88 |
CALL GSVOLU('S32M','BOX ',NMED,S32M, 3,IVOLU) |
89 |
* |
90 |
* Define the POL1 volume |
91 |
* |
92 |
NMED=MPOL |
93 |
CALL GSVOLU('POL1','BOX ',NMED,POL1, 3,IVOLU) |
94 |
* |
95 |
* Define the POL2 volume |
96 |
* |
97 |
CALL GSVOLU('POL2','BOX ',NMED,POL2, 3,IVOLU) |
98 |
* |
99 |
* Define the POLY volume |
100 |
* |
101 |
CALL GSVOLU('POLY','BOX ',NMED,POLY, 3,IVOLU) |
102 |
* |
103 |
* |
104 |
* S4 container volume. |
105 |
* |
106 |
NMED=MAL |
107 |
CALL GSVOLU('S4AL','BOX ',NMED,S4AL, 3,IVOLU) |
108 |
* |
109 |
* |
110 |
* Change medium just for S4. |
111 |
* |
112 |
NMED=MSCIN |
113 |
* |
114 |
* Define the S4 volume |
115 |
* |
116 |
CALL GSVOLU('S4 ','BOX ',NMED,S4, 3,IVOLU) |
117 |
* |
118 |
* Start subvolume definition. |
119 |
* |
120 |
* |
121 |
* Define the S11Y volume |
122 |
* |
123 |
CALL GSVOLU('S11Y','BOX ',NMED,S11Y, 3,IVOLU) |
124 |
* |
125 |
* Define the S12X volume |
126 |
* |
127 |
CALL GSVOLU('S12X','BOX ',NMED,S12X, 3,IVOLU) |
128 |
* |
129 |
* Define the S21X volume |
130 |
* |
131 |
CALL GSVOLU('S21X','BOX ',NMED,S21X, 3,IVOLU) |
132 |
* |
133 |
* Define the S22Y volume |
134 |
* |
135 |
CALL GSVOLU('S22Y','BOX ',NMED,S22Y, 3,IVOLU) |
136 |
* |
137 |
* Define the S31Y volume |
138 |
* |
139 |
CALL GSVOLU('S31Y','BOX ',NMED,S31Y, 3,IVOLU) |
140 |
* |
141 |
* Define the S32X volume |
142 |
* |
143 |
CALL GSVOLU('S32X','BOX ',NMED,S32X, 3,IVOLU) |
144 |
|
145 |
c$$$<<<<<<< gptofv.F |
146 |
c$$$======= |
147 |
c$$$c ml: 21/12/04: |
148 |
c$$$ NMED=MAL |
149 |
c$$$* |
150 |
c$$$* Define the SC11 volume |
151 |
c$$$* |
152 |
c$$$ CALL GSVOLU('SC11','BOX ',NMED,SC11, 3,IVOLU) |
153 |
c$$$* |
154 |
c$$$* Define the SC12 volume |
155 |
c$$$* |
156 |
c$$$ CALL GSVOLU('SC12','BOX ',NMED,SC12, 3,IVOLU) |
157 |
c$$$* |
158 |
c$$$* Define the SC21 volume |
159 |
c$$$* |
160 |
c$$$ CALL GSVOLU('SC21','BOX ',NMED,SC21, 3,IVOLU) |
161 |
c$$$* |
162 |
c$$$* Define the SC22 volume |
163 |
c$$$* |
164 |
c$$$ CALL GSVOLU('SC22','BOX ',NMED,SC22, 3,IVOLU) |
165 |
c$$$ |
166 |
c$$$>>>>>>> 3.3 |
167 |
* |
168 |
* Positioning volumes |
169 |
* |
170 |
X=0. |
171 |
Y=0. |
172 |
Z=0. |
173 |
CALL GSPOS('S1A ',N,'S1 ',X,Y,Z,0,'ONLY') |
174 |
* |
175 |
N=1 |
176 |
X=0. |
177 |
Y=0. |
178 |
Z=-S1A(3)+HGLUTOF+HPVCMIN/2. |
179 |
CALL GSPOS('POL2',N,'S1A ',X,Y,Z,0,'ONLY') |
180 |
* |
181 |
X=0. |
182 |
Z=-S1A(3)+HGLUTOF+HPVCMIN+S12M(3) |
183 |
DO I=1,NS12X |
184 |
N= I |
185 |
Y= -S1A(2) + HMYLTOF + (2*I-1)*S12M(2) |
186 |
CALL GSPOS('S12M',N,'S1A ',X,Y,Z,0,'ONLY') |
187 |
ENDDO |
188 |
* |
189 |
Y= 0. |
190 |
Z=-S1A(3)+HGLUTOF+HPVCMIN+2*S12M(3)+S11M(3) |
191 |
DO I=1,NS11Y |
192 |
N= I |
193 |
X= -S1A(1) + HMYLTOF + (2*I-1)*S11M(1) |
194 |
CALL GSPOS('S11M',N,'S1A ',X,Y,Z,0,'ONLY') |
195 |
ENDDO |
196 |
* |
197 |
N=1 |
198 |
X=0. |
199 |
Y=0. |
200 |
Z=-S1A(3)+HGLUTOF+HPVCMIN+2*S12M(3)+2.*S11M(3)+HPVCMAX/2. |
201 |
CALL GSPOS('POL1',N,'S1A ',X,Y,Z,0,'ONLY') |
202 |
C Z=-S1A(3)+HGLUTOF+HPVCMAX+S12M(3) |
203 |
C CALL GSPOS('S12M',N,'S1A ',X,Y,Z,0,'ONLY') |
204 |
C Z=-S1A(3)+HGLUTOF+0.4+2*S12M(3)+S11M(3) |
205 |
C CALL GSPOS('S11M',N,'S1A ',X,Y,Z,0,'ONLY') |
206 |
* |
207 |
X=0. |
208 |
Y=0. |
209 |
Z=0. |
210 |
CALL GSPOS('S2A ',N,'S2 ',X,Y,Z,0,'ONLY') |
211 |
* |
212 |
Y= 0. |
213 |
Z=-S2A(3)+HGLUTOF+S22M(3) |
214 |
DO I=1,NS22Y |
215 |
N= I |
216 |
X= -S2A(1) + HMYLTOF + (2*I-1)*S22M(1) |
217 |
CALL GSPOS('S22M',N,'S2A ',X,Y,Z,0,'ONLY') |
218 |
ENDDO |
219 |
* |
220 |
X= 0. |
221 |
Z=-S2A(3)+HGLUTOF+2*S22M(3)+S21M(3) |
222 |
DO I=1,NS21X |
223 |
N= I |
224 |
Y= -S2A(2) + HMYLTOF+ (2*I-1)*S21M(2) |
225 |
CALL GSPOS('S21M',N,'S2A ',X,Y,Z,0,'ONLY') |
226 |
ENDDO |
227 |
* |
228 |
N=1 |
229 |
X=0. |
230 |
Y=0. |
231 |
Z=-S2A(3)+HGLUTOF+2*S22M(3)+2.*S21M(3)+HPVCMIN/2. |
232 |
CALL GSPOS('POLY',N,'S2A ',X,Y,Z,0,'ONLY') |
233 |
C Z=-S2A(3)+HGLUTOF+S22M(3) |
234 |
C CALL GSPOS('S22M',N,'S2A ',X,Y,Z,0,'ONLY') |
235 |
C Z=-S2A(3)+HGLUTOF+2*S22M(3)+S21M(3) |
236 |
C CALL GSPOS('S21M',N,'S2A ',X,Y,Z,0,'ONLY') |
237 |
* |
238 |
X= 0. |
239 |
ccC Z=-S3(3)+HAIRS3+S32M(3) |
240 |
Z=-S3(3)+S32M(3) |
241 |
DO I=1,NS32X |
242 |
N= I |
243 |
Y= -S3(2)+ (2*I-1)*S32M(2) |
244 |
CALL GSPOS('S32M',N,'S3 ',X,Y,Z,0,'ONLY') |
245 |
ENDDO |
246 |
* |
247 |
Y= 0. |
248 |
ccC Z= -S3(3)+HAIRS3+2*S32M(3)+HAIRS3+S31M(3) |
249 |
Z=-S3(3)+2*S32M(3)+HAIRS3+S31M(3) |
250 |
DO I=1,NS31Y |
251 |
N= I |
252 |
X= -S3(1)+(2*I-1)*S31M(1) |
253 |
CALL GSPOS('S31M',N,'S3 ',X,Y,Z,0,'ONLY') |
254 |
ENDDO |
255 |
|
256 |
* |
257 |
C Z=-S3(3)+HAIRS3+S32M(3) |
258 |
C CALL GSPOS('S32M',N,'S3 ',X,Y,Z,0,'ONLY') |
259 |
C Z=-S32(3)+HAIRS3+2*S32M(3)+HAIRS3+S31M(3) |
260 |
C CALL GSPOS('S31M',N,'S3 ',X,Y,Z,0,'ONLY') |
261 |
**************************************** |
262 |
c ml: 21/12/04: |
263 |
X=0. |
264 |
Y= 0. |
265 |
Z= 0. |
266 |
N=1 |
267 |
c ml: 27/10/04: |
268 |
c DO I=1,NS11Y |
269 |
c N= I |
270 |
c X= -S11M(1) + HMYLTOF + (2*I-1)*S11Y(1) |
271 |
CALL GSPOS('S11Y',N,'S11M',X,Y,Z,0,'ONLY') |
272 |
c ENDDO |
273 |
c end ml. |
274 |
* |
275 |
X= 0. |
276 |
Y=0. |
277 |
Z= 0. |
278 |
N=1 |
279 |
c ml: 27/10/04 |
280 |
C DO I=1,NS12X |
281 |
C N= I |
282 |
C Y= -S11M(2) + HMYLTOF + (2*I-1)*S12X(2) |
283 |
CALL GSPOS('S12X',N,'S12M',X,Y,Z,0,'ONLY') |
284 |
C ENDDO |
285 |
c end ml. |
286 |
* |
287 |
X=0. |
288 |
y=0. |
289 |
Z= 0. |
290 |
N=1 |
291 |
C DO I=1,NS21X |
292 |
C N= I |
293 |
c Y= -S21M(2) + HMYLTOF+ (2*I-1)*S21X(2) |
294 |
CALL GSPOS('S21X',N,'S21M',X,Y,Z,0,'ONLY') |
295 |
C ENDDO |
296 |
* |
297 |
X=0. |
298 |
Y= 0. |
299 |
Z= 0. |
300 |
N=1 |
301 |
C DO I=1,NS22Y |
302 |
C N= I |
303 |
C X= -S22M(1) + HMYLTOF + (2*I-1)*S22Y(1) |
304 |
CALL GSPOS('S22Y',N,'S22M',X,Y,Z,0,'ONLY') |
305 |
C ENDDO |
306 |
Y= 0. |
307 |
Z= -S31M(3)+HMYLTOF+S31Y(3) |
308 |
N=1 |
309 |
C DO I=1,NS31Y |
310 |
C N= I |
311 |
C X= -S31M(1) + HMYLTOF+(2*I-1)*S31Y(1) |
312 |
X= -S31M(1) + 2*(HMYLTOF/2)+S31Y(1) |
313 |
CALL GSPOS('S31Y',N,'S31M',X,Y,Z,0,'ONLY') |
314 |
C ENDDO |
315 |
* |
316 |
X= 0. |
317 |
Z= -S32M(3)+HMYLTOF+S32X(3) |
318 |
N=1 |
319 |
C DO I=1,NS32X |
320 |
C N= I |
321 |
C Y= -S32M(2) + HMYLTOF+ (2*I-1)*S32X(2) |
322 |
Y= -S32M(2) + 2*(HMYLTOF/2)+ S32X(2) |
323 |
CALL GSPOS('S32X',N,'S32M',X,Y,Z,0,'ONLY') |
324 |
C ENDDO |
325 |
X=0. |
326 |
Y=0. |
327 |
Z=0. |
328 |
CALL GSPOS('S4 ',N,'S4AL',X,Y,Z,0,'ONLY') |
329 |
* |
330 |
RETURN |
331 |
END |