/[PAMELA software]/gpamela/gptof/gptofv.F
ViewVC logotype

Contents of /gpamela/gptof/gptofv.F

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3.5 - (show annotations) (download)
Thu May 18 10:52:32 2006 UTC (18 years, 6 months ago) by pam-ba
Branch: MAIN
CVS Tags: v4r7
Changes since 3.4: +50 -74 lines
TOF geometry completed and a new material, the polystyrene (density 35 g/l), added

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

  ViewVC Help
Powered by ViewVC 1.1.23