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

Annotation of /gpamela/gptof/gptofv.F

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3.5 - (hide 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 cafagna 3.1 *
2 pam-ba 3.5 * $Id: gptofv.F,v 3.4 2006/05/02 10:40:13 pam-ba Exp $
3 cafagna 3.2 *
4     * $Log: gptofv.F,v $
5 pam-ba 3.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 pam-ba 3.4 * Revision 3.3 2006/04/09 23:29:22 cafagna
9     * Several new things, among this: ND and CARD
10     *
11 cafagna 3.3 * Revision 3.2 2005/06/21 02:42:29 cafagna
12     * Major modification to the geometry and to the random number chain
13     *
14 cafagna 3.2 * Revision 3.1.1.1 2002/07/11 16:02:01 cafagna
15     * First GPAMELA release on CVS
16 cafagna 3.1 *
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 pam-ba 3.4 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 cafagna 3.1 NMED=MN2
48     *
49 pam-ba 3.4 * 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 pam-ba 3.5 * Define the S3 volume
58 cafagna 3.1 *
59 pam-ba 3.5 CALL GSVOLU('S3 ','BOX ',NMED,S3, 3,IVOLU)
60 cafagna 3.1 *
61 pam-ba 3.4 NMED=MMYL
62 cafagna 3.1 *
63 pam-ba 3.4 * Define the S11M volume
64 cafagna 3.1 *
65 pam-ba 3.4 CALL GSVOLU('S11M','BOX ',NMED,S11M, 3,IVOLU)
66 cafagna 3.1 *
67 pam-ba 3.4 * Define the S12M volume
68 cafagna 3.1 *
69 pam-ba 3.4 CALL GSVOLU('S12M','BOX ',NMED,S12M, 3,IVOLU)
70 cafagna 3.1 *
71 pam-ba 3.4 * Define the S21M volume
72 cafagna 3.1 *
73 pam-ba 3.4 CALL GSVOLU('S21M','BOX ',NMED,S21M, 3,IVOLU)
74 cafagna 3.1 *
75 pam-ba 3.4 * Define the S22M volume
76 cafagna 3.1 *
77 pam-ba 3.4 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 cafagna 3.1 *
87 pam-ba 3.5 * 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 cafagna 3.1 *
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 cafagna 3.2 * Define the S11Y volume
113 cafagna 3.1 *
114 cafagna 3.2 CALL GSVOLU('S11Y','BOX ',NMED,S11Y, 3,IVOLU)
115 cafagna 3.1 *
116 cafagna 3.2 * Define the S12X volume
117 cafagna 3.1 *
118 cafagna 3.2 CALL GSVOLU('S12X','BOX ',NMED,S12X, 3,IVOLU)
119 cafagna 3.1 *
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 pam-ba 3.4 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 cafagna 3.1 *
159 pam-ba 3.4 * Positioning volumes
160 cafagna 3.1 *
161 pam-ba 3.4 X=0.
162     Y=0.
163     Z=0.
164     CALL GSPOS('S1A ',N,'S1 ',X,Y,Z,0,'ONLY')
165 cafagna 3.1 *
166 pam-ba 3.5 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 pam-ba 3.4 X=0.
173     Z=-S1A(3)+HGLUTOF+HPVCMIN+S12M(3)
174     DO I=1,NS12X
175 cafagna 3.2 N= I
176 pam-ba 3.4 Y= -S1A(2) + HMYLTOF + (2*I-1)*S12M(2)
177     CALL GSPOS('S12M',N,'S1A ',X,Y,Z,0,'ONLY')
178 cafagna 3.1 ENDDO
179 pam-ba 3.5 *
180 cafagna 3.1 Y= 0.
181 pam-ba 3.4 Z=-S1A(3)+HGLUTOF+HPVCMIN+2*S12M(3)+S11M(3)
182     DO I=1,NS11Y
183 cafagna 3.1 N= I
184 pam-ba 3.4 X= -S1A(1) + HMYLTOF + (2*I-1)*S11M(1)
185     CALL GSPOS('S11M',N,'S1A ',X,Y,Z,0,'ONLY')
186 cafagna 3.1 ENDDO
187 pam-ba 3.5 *
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 pam-ba 3.4 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 cafagna 3.1 *
203     Y= 0.
204 pam-ba 3.4 Z=-S2A(3)+HGLUTOF+S22M(3)
205     DO I=1,NS22Y
206 cafagna 3.1 N= I
207 pam-ba 3.4 X= -S2A(1) + HMYLTOF + (2*I-1)*S22M(1)
208     CALL GSPOS('S22M',N,'S2A ',X,Y,Z,0,'ONLY')
209 cafagna 3.1 ENDDO
210     *
211 pam-ba 3.4 X= 0.
212     Z=-S2A(3)+HGLUTOF+2*S22M(3)+S21M(3)
213 cafagna 3.1 DO I=1,NS21X
214     N= I
215 pam-ba 3.4 Y= -S2A(2) + HMYLTOF+ (2*I-1)*S21M(2)
216     CALL GSPOS('S21M',N,'S2A ',X,Y,Z,0,'ONLY')
217 cafagna 3.1 ENDDO
218 pam-ba 3.5 *
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 pam-ba 3.4 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 cafagna 3.1 X= 0.
230 pam-ba 3.5 ccC Z=-S3(3)+HAIRS3+S32M(3)
231     Z=-S3(3)+S32M(3)
232 pam-ba 3.4 DO I=1,NS32X
233 cafagna 3.1 N= I
234 pam-ba 3.5 Y= -S3(2)+ (2*I-1)*S32M(2)
235     CALL GSPOS('S32M',N,'S3 ',X,Y,Z,0,'ONLY')
236 cafagna 3.1 ENDDO
237     *
238 pam-ba 3.4 Y= 0.
239 pam-ba 3.5 ccC Z= -S3(3)+HAIRS3+2*S32M(3)+HAIRS3+S31M(3)
240     Z=-S3(3)+2*S32M(3)+HAIRS3+S31M(3)
241 pam-ba 3.4 DO I=1,NS31Y
242 cafagna 3.1 N= I
243 pam-ba 3.5 X= -S3(1)+(2*I-1)*S31M(1)
244     CALL GSPOS('S31M',N,'S3 ',X,Y,Z,0,'ONLY')
245 cafagna 3.1 ENDDO
246 pam-ba 3.5
247 pam-ba 3.4 *
248 pam-ba 3.5 C Z=-S3(3)+HAIRS3+S32M(3)
249     C CALL GSPOS('S32M',N,'S3 ',X,Y,Z,0,'ONLY')
250 pam-ba 3.4 C Z=-S32(3)+HAIRS3+2*S32M(3)+HAIRS3+S31M(3)
251 pam-ba 3.5 C CALL GSPOS('S31M',N,'S3 ',X,Y,Z,0,'ONLY')
252 pam-ba 3.4 ****************************************
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 cafagna 3.1 X= 0.
267 pam-ba 3.4 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 cafagna 3.1 Y= 0.
290 pam-ba 3.4 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 cafagna 3.1 Y= 0.
298 pam-ba 3.4 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 cafagna 3.1 *
307     X= 0.
308 pam-ba 3.4 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 cafagna 3.1 *
317     RETURN
318     END

  ViewVC Help
Powered by ViewVC 1.1.23