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

Diff of /gpamela/gpspe/gpspev.F

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3.4 by pam-ba, Mon Dec 5 12:15:21 2005 UTC revision 3.10 by cafagna, Fri Dec 1 12:25:51 2006 UTC
# Line 1  Line 1 
   
1  *  *
2  * $Id: gpspev.F,v 3.3 2005/07/25 11:53:21 cafagna Exp $  * $Id: gpspev.F,v 3.9 2006/06/30 15:38:16 pam-ba Exp $
3  *  *
4  * $Log: gpspev.F,v $  * $Log: gpspev.F,v $
5    * Revision 3.9  2006/06/30 15:38:16  pam-ba
6    * S22 and S12 heights positioned in GPAMELA at the nominal heights in PAMELA (see document: Main geometrical parameters of the PAMELA sub-detectors, 20 December 2005)
7    *
8    * Revision 3.8  2006/05/02 12:02:43  bottai
9    * micrometric adjustment of spe geometry
10    *
11    * Revision 3.7  2005/12/16 10:20:23  cafagna
12    * Bug fixed in the new update
13    *
14    * Revision 3.6  2005/12/16 09:13:59  cafagna
15    * New small valume added to the tracker frame
16    *
17    * Revision 3.5  2005/12/13 10:31:29  pam-ba
18    * added a new volume, TPGI, in the spectrometer
19    *
20    * Revision 3.4  2005/12/05 12:15:21  pam-ba
21    * new spectrometer geometry and internal magnetic field
22    *
23  * Revision 3.3  2005/07/25 11:53:21  cafagna  * Revision 3.3  2005/07/25 11:53:21  cafagna
24  * Several updates. See history for details  * Several updates. See history for details
25  *  *
# Line 93  C end ml. Line 110  C end ml.
110        NMED= MCF        NMED= MCF
111        CALL GSVOLU('TRCP','BOX ',NMED,TRCP, 3,IVOLU)        CALL GSVOLU('TRCP','BOX ',NMED,TRCP, 3,IVOLU)
112  *  *
113    *  Define the TBAL     volume
114    *
115          NMED= MAL
116          CALL GSVOLU('TBAL','BOX ',NMED,TBAL, 3,IVOLU)
117    *
118  *  Define the MGPA     volume  *  Define the MGPA     volume
119  *  *
120        NMED= MAL        NMED= MAL
# Line 103  C end ml. Line 125  C end ml.
125        NMED= MN2        NMED= MN2
126        CALL GSVOLU('TPGA','BOX ',NMED,TPGA, 3,IVOLU)        CALL GSVOLU('TPGA','BOX ',NMED,TPGA, 3,IVOLU)
127  *  *
128    *  Define the TPGI     volume
129    *
130          NMED= MN2
131          CALL GSVOLU('TPGI','BOX ',NMED,TPGI, 3,IVOLU)
132    *
133  *  Define the TPGU     volume  *  Define the TPGU     volume
134  *  *
135        NMED= MN2        NMED= MN2
# Line 116  C end ml. Line 143  C end ml.
143  *  *
144  * Positioning volume TSPA     into the mother TRSL  * Positioning volume TSPA     into the mother TRSL
145  *  *
146          GLUEX=XGLUE-0.0005
147          GLUEY=XGLUE
148        N= 1        N= 1
149        X= 0.        X= 0.
150        Y= 0.        Y= 0.
# Line 133  C #       Y=-TRPB(2)+1.5-0.225+TRCP(2) Line 162  C #       Y=-TRPB(2)+1.5-0.225+TRCP(2)
162  CC end ml.  CC end ml.
163  c      Z=-TRPB(3)+2*TPAI(3)+TRCP(3)  c      Z=-TRPB(3)+2*TPAI(3)+TRCP(3)
164        Z=TRPB(3)-2*TPAI(3)-TRCP(3)        Z=TRPB(3)-2*TPAI(3)-TRCP(3)
165        y=-0.225-TPAS(2)+TRCP(2)        y=-TPAS(2)+TRCP(2)
166  C # end CAF mod  C # end CAF mod
167          TPASSPACE=TPAS(1)-(3*TRSL(1)+4*TRCP(1)+3*GLUEX)
168        DO I=1,4        DO I=1,4
169  CC ml 20/04/05:          CC ml 20/04/05:        
170  CC         X=-TRPL(1)+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)  CC         X=-TRPL(1)+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)
# Line 143  C #          X=-TRPB(1)+2.29+(2*I-1)*TRC Line 173  C #          X=-TRPB(1)+2.29+(2*I-1)*TRC
173  c ml: 19/9/05: introducing the glue between TRCP and the silicon ladders.  c ml: 19/9/05: introducing the glue between TRCP and the silicon ladders.
174  c              for now the glue is a space of nitrogen of 0.015 mm  c              for now the glue is a space of nitrogen of 0.015 mm
175  c         X=-TPAS(1)+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)  c         X=-TPAS(1)+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)
176           X=-TPAS(1)+2*(I-1)*0.0015+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)  C Ml. 15/12/05: introducing a space (along x) between the inner part of the
177    c  aluminum frame and respectively the first and the last carbon fiber barrel.
178    c It is has been done increasing the dimension of TPAS along x:
179    C         X=-TPAS(1)+2*(I-1)*XGLUE+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)
180             X=-TPAS(1)+TPASSPACE+2*(I-1)*GLUEX+(2*I-1)*TRCP(1)+
181         +      2*(I-1)*TRSL(1)
182  CC end ml  CC end ml
183           CALL GSPOS('TRCP',I,'TPAS',X,Y,Z,0,'ONLY')           CALL GSPOS('TRCP',I,'TPAS',X,Y,Z,0,'ONLY')
184  C # end CAF mod  C # end CAF mod
# Line 161  c      Z=-TRPB(3)+2*TPAI(3)+TRCP(3) Line 196  c      Z=-TRPB(3)+2*TPAI(3)+TRCP(3)
196  c ml: 20/9/05 introducing the glue between TRCP and the silicon ladders.  c ml: 20/9/05 introducing the glue between TRCP and the silicon ladders.
197  c         X=-TPAS(1)+2*(MOD(I-1,3)+1)*TRCP(1)+  c         X=-TPAS(1)+2*(MOD(I-1,3)+1)*TRCP(1)+
198  c     +        (2*(MOD(I-1,3)+1)-1)*TRSL(1)  c     +        (2*(MOD(I-1,3)+1)-1)*TRSL(1)
199           X=-TPAS(1)+2*(MOD(I-1,3)+1)*TRCP(1)+           X=-TPAS(1)+TPASSPACE+2*(MOD(I-1,3)+1)*TRCP(1)+
200       +   (2*(MOD(I-1,3)+1)-1)*0.0015+(2*(MOD(I-1,3)+1)-1)*TRSL(1)               +   (2*(MOD(I-1,3)+1)-1)*GLUEX+(2*(MOD(I-1,3)+1)-1)*TRSL(1)
201           IF(I.LE.3) THEN           IF(I.LE.3) THEN
202  C ml: 22/9/05:  C ml: 22/9/05:
203  c            Y=TPAS(2)-TRSL(2)  c            Y=TPAS(2)-TRSL(2)
204              Y=TPAS(2)-0.1485-TRSL(2)              Y=TPAS(2)-0.1485+0.0005-TRSL(2)
205           ELSE           ELSE
206  C            Y=TPAS(2)-3*TRSL(2)  C            Y=TPAS(2)-3*TRSL(2)
207              Y=TPAS(2)-0.1485-0.0015-3*TRSL(2)              Y=TPAS(2)-0.1485-GLUEY-3*TRSL(2)
208           ENDIF           ENDIF
209           CALL GSPOS('TRSL',I,'TPAS',X,Y,Z,0,'ONLY')           CALL GSPOS('TRSL',I,'TPAS',X,Y,Z,0,'ONLY')
210        ENDDO        ENDDO
# Line 193  C #          X=-TRPB(1)+2.29+2*I*TRCP(1) Line 228  C #          X=-TRPB(1)+2.29+2*I*TRCP(1)
228  c ml: 21/9/05 introducing the glue between the carbon barrel and the silicon  c ml: 21/9/05 introducing the glue between the carbon barrel and the silicon
229  c       ladders  c       ladders
230  c         X=-TPAS(1)+2*I*TRCP(1)+(2*I-1)*THBP(1)  c         X=-TPAS(1)+2*I*TRCP(1)+(2*I-1)*THBP(1)
231           X=-TPAS(1)+2*I*TRCP(1)+(2*I-1)*THBP(1)+           X=-TPAS(1)+TPASSPACE+2*I*TRCP(1)+(2*I-1)*THBP(1)+
232       +      (2*(MOD(I-1,3)+1)-1)*0.0015       +      (2*(MOD(I-1,3)+1)-1)*GLUEX
233           CALL GSPOS('THBP',I,'TPAS',X,Y,Z,0,'ONLY')           CALL GSPOS('THBP',I,'TPAS',X,Y,Z,0,'ONLY')
234        ENDDO        ENDDO
235  c end ml.  c end ml.
# Line 240  c end ml. Line 275  c end ml.
275        Y=0.        Y=0.
276        CALL GSPOS('TPGD',N,'MGFR',X,Y,Z,0,'ONLY')        CALL GSPOS('TPGD',N,'MGFR',X,Y,Z,0,'ONLY')
277  *  *
278    * Positioning volume TPGI     into the mother MGFR under MGPL
279    *
280          N=1
281          X=0.
282          Z=-MGFR(3)+2*TPGD(3)+TPGI(3)
283          Y=0.
284          CALL GSPOS('TPGI',N,'MGFR',X,Y,Z,0,'ONLY')
285    *
286  * Positioning volume MGPI     into the mother MGPL  * Positioning volume MGPI     into the mother MGPL
287  *  *
288        N= 1        N= 1
289        X= 0.        X= 0.
290        Y= 0.        Y= 0.
291  CC ML 10/11/05:  Positioning volume MGPI     into the mother MGFR  CC ML 10/11/05:  Positioning volume MGPI     into the mother MGPA
292        Z= 0.        Z= 0.
293        CALL GSPOS('MGPI',N,'MGPA',X,Y,Z,0,'ONLY')        CALL GSPOS('MGPI',N,'MGPA',X,Y,Z,0,'ONLY')
294  C      Z= -MGFR(3)+2*TPGD(3)+MGPI(3)  C      Z= -MGFR(3)+2*TPGD(3)+MGPI(3)
# Line 254  C      CALL GSPOS('MGPI',N,'MGFR',X,Y,Z, Line 297  C      CALL GSPOS('MGPI',N,'MGFR',X,Y,Z,
297  * Positioning volume MGPL     into the mother MGFR  * Positioning volume MGPL     into the mother MGFR
298  *  *
299  c ml: 10/11/05  c ml: 10/11/05
300          N=1
301  c      Z=-MGFR(3)+MGPL(3)  c      Z=-MGFR(3)+MGPL(3)
302        Z=-MGFR(3)+2*TPGD(3)+MGPI(3)        Z=-MGFR(3)+2*(TPGD(3)+TPGI(3))+MGPL(3)
303        CALL GSPOS('MGPL',N,'MGFR',X,Y,Z,0,'ONLY')        CALL GSPOS('MGPL',N,'MGFR',X,Y,Z,0,'ONLY')
304  *  *
305    * Positioning volume TPGI     into the mother MGFR above MGPL
306    *
307          N=2
308          X=0.
309          Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3))+TPGI(3)
310          Y=0.
311          CALL GSPOS('TPGI',N,'MGFR',X,Y,Z,0,'ONLY')
312    *
313  * Positioning volume TPGA     into the mother MGFR  * Positioning volume TPGA     into the mother MGFR
314  *  *
315  C ML: 10/11/05  C ML: 10/11/05
316          N=1
317        X=0.        X=0.
318        Y=MGFR(2)-2*(MGFR(2)-TRPB(2))-TPGA(2)        Y=MGFR(2)-2*(MGFR(2)-TRPB(2))-TPGA(2)
319  C      Z=-MGFR(3)+2*MGPL(3)+TPGA(3)  C      Z=-MGFR(3)+2*MGPL(3)+TPGA(3)
320        Z=MGFR(3)-2*TPGU(3)-2*TRPB(3)-TPGA(3)  C      Z=MGFR(3)-2*TPGU(3)-2*TRPB(3)-TPGA(3)
321          Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3)+TPGI(3))+TPGA(3)
322  C      Y=-0.75  C      Y=-0.75
323        CALL GSPOS('TPGA',N,'MGFR',X,Y,Z,0,'ONLY')        CALL GSPOS('TPGA',N,'MGFR',X,Y,Z,0,'ONLY')
324  *  *
# Line 276  C      Y= SPEB(2) - TRPB(2) Line 330  C      Y= SPEB(2) - TRPB(2)
330        Y= -MGFR(2) + TRPB(2)        Y= -MGFR(2) + TRPB(2)
331  C      Z= SPEB(3) - TRPB(3)  C      Z= SPEB(3) - TRPB(3)
332  c      Z=-MGFR(3)+2*MGPL(3)+2*TPGA(3)+TRPB(3)  c      Z=-MGFR(3)+2*MGPL(3)+2*TPGA(3)+TRPB(3)
333        Z=MGFR(3)-2*TPGU(3)-TRPB(3)  C      Z=MGFR(3)-2*TPGU(3)-TRPB(3)
334          Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3)+TPGI(3)+TPGA(3))+TRPB(3)
335  C      CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY')  C      CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY')
336        CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,0,'ONLY')        CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,0,'ONLY')
337  c      CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,9,'ONLY')  c      CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,9,'ONLY')
# Line 304  C         ENDIF Line 359  C         ENDIF
359        X=0.        X=0.
360        Y=MGFR(2) - TRPB(2)        Y=MGFR(2) - TRPB(2)
361        Z=Z-TRPB(3)        Z=Z-TRPB(3)
362          ZTRPB=Z
363  c      CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,4,'ONLY')  c      CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,4,'ONLY')
364        CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,10,'ONLY')        CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,10,'ONLY')
365  *  *
366    * Positioning volume TBAL into the mother SPEB
367    *
368          DO I=1,2
369    C DTBAL is the distance along x of the volumes TBAL from the end of TRPB
370             DTBAL=3.6
371             N=I
372             IF(I.EQ.1) THEN
373                X=TRPB(1)-3.6-TBAL(1)
374             ELSE
375                X=-(TRPB(1)-3.6-TBAL(1))
376             ENDIF
377             Y=MGFR(2) - 2*TRPB(2)-TBAL(2)
378             Z=ZTRPB
379             CALL GSPOS('TBAL',N,'SPEB',X,Y,Z,0,'ONLY')
380          ENDDO
381    *
382  * Positioning volume TPGU     into the mother MGFR  * Positioning volume TPGU     into the mother MGFR
383  *  *
384        X=0.        X=0.
385        Z=MGFR(3)-TPGU(3)  C      Z=MGFR(3)-TPGU(3)
386          Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3)+TPGI(3)+TPGA(3)+TRPB(3))+
387         +   TPGU(3)      
388        Y=-MGFR(2)+TRPB(2)        Y=-MGFR(2)+TRPB(2)
389        CALL GSPOS('TPGU',N,'MGFR',X,Y,Z,0,'ONLY')        CALL GSPOS('TPGU',N,'MGFR',X,Y,Z,0,'ONLY')
390  *  *

Legend:
Removed from v.3.4  
changed lines
  Added in v.3.10

  ViewVC Help
Powered by ViewVC 1.1.23