/[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.7 by cafagna, Fri Dec 16 10:20:23 2005 UTC
# Line 1  Line 1 
1    
2  *  *
3  * $Id: gpspev.F,v 3.3 2005/07/25 11:53:21 cafagna Exp $  * $Id: gpspev.F,v 3.6 2005/12/16 09:13:59 cafagna Exp $
4  *  *
5  * $Log: gpspev.F,v $  * $Log: gpspev.F,v $
6  * Revision 3.3  2005/07/25 11:53:21  cafagna  * Revision 3.6  2005/12/16 09:13:59  cafagna
7  * Several updates. See history for details  * New small valume added to the tracker frame
8  *  *
9  * Revision 3.2  2005/06/21 02:42:27  cafagna  * Revision 3.5  2005/12/13 10:31:29  pam-ba
10  * Major modification to the geometry and to the random number chain  * added a new volume, TPGI, in the spectrometer
11  *  *
12  * Revision 3.1.1.1  2002/07/11 16:02:14  cafagna  * Revision 3.4  2005/12/05 12:15:21  pam-ba
13  * First GPAMELA release on CVS  * new spectrometer geometry and internal magnetic field
14  *  *
15  *  * Revision 3.3  2005/07/25 11:53:21  cafagna
16  *CMZ :  2.01/00 05/04/2000  14.35.18  by  Marialuigia Ambriola  * Several updates. See history for details
17  *CMZ :  2.00/00 03/03/2000  15.39.06  by  Francesco Cafagna  *
18  *CMZ :  1.02/00 07/03/97  14.48.41  by  Francesco Cafagna  * Revision 3.2  2005/06/21 02:42:27  cafagna
19  *CMZ :  1.00/02 06/02/96  17.34.50  by  Francesco Cafagna  * Major modification to the geometry and to the random number chain
20  *-- Author :    Francesco Cafagna   09/12/95  *
21        SUBROUTINE GPSPEV  * Revision 3.1.1.1  2002/07/11 16:02:14  cafagna
22  ************************************************************************  * First GPAMELA release on CVS
23  *                                                                      *  *
24  * Volumes definition for the silicon tracking system and magnet        *  *
25  * Called by: GPGEM                                                     *  *CMZ :  2.01/00 05/04/2000  14.35.18  by  Marialuigia Ambriola
26  * Author: Francesco Cafagna, 05/12/95 13.39.41                         *  *CMZ :  2.00/00 03/03/2000  15.39.06  by  Francesco Cafagna
27  *                                                                      *  *CMZ :  1.02/00 07/03/97  14.48.41  by  Francesco Cafagna
28  ************************************************************************  *CMZ :  1.00/02 06/02/96  17.34.50  by  Francesco Cafagna
29  #include "gpgeo.inc"  *-- Author :    Francesco Cafagna   09/12/95
30  #include "gpmed.inc"        SUBROUTINE GPSPEV
31  *  ************************************************************************
32        INTEGER IROT,IVOLU,N,NMED,NUM  *                                                                      *
33        REAL X,Y,Z  * Volumes definition for the silicon tracking system and magnet        *
34  *  * Called by: GPGEM                                                     *
35  *  Define the SPEB     volume  * Author: Francesco Cafagna, 05/12/95 13.39.41                         *
36  *  *                                                                      *
37        NMED= MN2  ************************************************************************
38        CALL GSVOLU('SPEB','BOX ',NMED,SPEB, 3,IVOLU)  #include "gpgeo.inc"
39  *  #include "gpmed.inc"
40  *  Define the MGFR     volume  *
41  *        INTEGER IROT,IVOLU,N,NMED,NUM
42        NMED= MAL        REAL X,Y,Z
43        CALL GSVOLU('MGFR','BOX ',NMED,MGFR, 3,IVOLU)  *
44  *  *  Define the SPEB     volume
45  *  Define the MGPL     volume  *
46  *        NMED= MN2
47        NMED= MMAG        CALL GSVOLU('SPEB','BOX ',NMED,SPEB, 3,IVOLU)
48        CALL GSVOLU('MGPL','BOX ',NMED,MGPL, 3,IVOLU)  *
49  *  *  Define the MGFR     volume
50  *  Define the MGPI     volume  *
51  *        NMED= MAL
52        NMED= MN2        CALL GSVOLU('MGFR','BOX ',NMED,MGFR, 3,IVOLU)
53        CALL GSVOLU('MGPI','BOX ',NMED,MGPI, 3,IVOLU)  *
54  *  *  Define the MGPL     volume
55  *  Define the TRPB     volume  *
56  *        NMED= MMAG
57        NMED= MAL        CALL GSVOLU('MGPL','BOX ',NMED,MGPL, 3,IVOLU)
58        CALL GSVOLU('TRPB','BOX ',NMED,TRPB, 3,IVOLU)  *
59  *****  *  Define the MGPI     volume
60  cC ml 20/04/05:  *
61  *        NMED= MN2
62  cc*  Define the TRPL     volume        CALL GSVOLU('MGPI','BOX ',NMED,MGPI, 3,IVOLU)
63  *  Define the TPAS and TPAI volume  *
64  *  *  Define the TRPB     volume
65        NMED= MN2  *
66  CC      CALL GSVOLU('TRPL','BOX ',NMED,TRPL, 3,IVOLU)        NMED= MAL
67        CALL GSVOLU('TPAS','BOX ',NMED,TPAS, 3,IVOLU)        CALL GSVOLU('TRPB','BOX ',NMED,TRPB, 3,IVOLU)
68        NMED= MAL  *****
69        CALL GSVOLU('TPAI','BOX ',NMED,TPAI, 3,IVOLU)  cC ml 20/04/05:
70  CC end ml.  *
71  ****************  cc*  Define the TRPL     volume
72  *  *  Define the TPAS and TPAI volume
73  *  Define the TRSL     volume  *
74  *        NMED= MN2
75  c ml: 26/11/04:  CC      CALL GSVOLU('TRPL','BOX ',NMED,TRPL, 3,IVOLU)
76  c      NMED= MN2        CALL GSVOLU('TPAS','BOX ',NMED,TPAS, 3,IVOLU)
77        NMED=MSIT        NMED= MAL
78        CALL GSVOLU('TRSL','BOX ',NMED,TRSL, 3,IVOLU)        CALL GSVOLU('TPAI','BOX ',NMED,TPAI, 3,IVOLU)
79  *  CC end ml.
80  * Define the THBP volume  ****************
81  *  *
82        NMED=MG10C  *  Define the TRSL     volume
83        CALL GSVOLU('THBP','BOX ',NMED,THBP, 3,IVOLU)  *
84  C end ml.  c ml: 26/11/04:
85  *  c      NMED= MN2
86  *  Define the TSPA     volume        NMED=MSIT
87  *        CALL GSVOLU('TRSL','BOX ',NMED,TRSL, 3,IVOLU)
88        NMED= MSIT  *
89        CALL GSVOLU('TSPA','BOX ',NMED,TSPA, 3,IVOLU)  * Define the THBP volume
90  *  *
91  *  Define the TRCP     volume        NMED=MG10C
92  *        CALL GSVOLU('THBP','BOX ',NMED,THBP, 3,IVOLU)
93        NMED= MCF  C end ml.
94        CALL GSVOLU('TRCP','BOX ',NMED,TRCP, 3,IVOLU)  *
95  *  *  Define the TSPA     volume
96  *  Define the MGPA     volume  *
97  *        NMED= MSIT
98        NMED= MAL        CALL GSVOLU('TSPA','BOX ',NMED,TSPA, 3,IVOLU)
99        CALL GSVOLU('MGPA','BOX ',NMED,MGPA, 3,IVOLU)  *
100  *  *  Define the TRCP     volume
101  *  Define the TPGA     volume  *
102  *        NMED= MCF
103        NMED= MN2        CALL GSVOLU('TRCP','BOX ',NMED,TRCP, 3,IVOLU)
104        CALL GSVOLU('TPGA','BOX ',NMED,TPGA, 3,IVOLU)  *
105  *  *  Define the TBAL     volume
106  *  Define the TPGU     volume  *
107  *        NMED= MAL
108        NMED= MN2        CALL GSVOLU('TBAL','BOX ',NMED,TBAL, 3,IVOLU)
109        CALL GSVOLU('TPGU','BOX ',NMED,TPGU, 3,IVOLU)  *
110  *  *  Define the MGPA     volume
111  *  Define the TPGD     volume  *
112  *        NMED= MAL
113        NMED= MN2        CALL GSVOLU('MGPA','BOX ',NMED,MGPA, 3,IVOLU)
114        CALL GSVOLU('TPGD','BOX ',NMED,TPGD, 3,IVOLU)  *
115    *  Define the TPGA     volume
116  *  *
117  * Positioning volume TSPA     into the mother TRSL        NMED= MN2
118  *        CALL GSVOLU('TPGA','BOX ',NMED,TPGA, 3,IVOLU)
119        N= 1  *
120        X= 0.  *  Define the TPGI     volume
121        Y= 0.  *
122        Z= 0.        NMED= MN2
123        CALL GSPOS('TSPA',N,'TRSL',X,Y,Z,0,'ONLY')        CALL GSVOLU('TPGI','BOX ',NMED,TPGI, 3,IVOLU)
124  C #       N= 2  *
125  C # C      Y= Y - 2.*TSPA(2)  *  Define the TPGU     volume
126  C #       Y=-TRSL(2)/2  *
127  C #       CALL GSPOS('TSPA',N,'TRSL',X,Y,Z,0,'ONLY')        NMED= MN2
128  c ml: 26/11/04:        CALL GSVOLU('TPGU','BOX ',NMED,TPGU, 3,IVOLU)
129  * Positioning volume TRCP into mother TPAS  *
130  C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one  *  Define the TPGD     volume
131  C #       Z=-TRPB(3)+0.11+TRCP(3)  *
132  C #       Y=-TRPB(2)+1.5-0.225+TRCP(2)        NMED= MN2
133  CC end ml.        CALL GSVOLU('TPGD','BOX ',NMED,TPGD, 3,IVOLU)
134  c      Z=-TRPB(3)+2*TPAI(3)+TRCP(3)  
135        Z=TRPB(3)-2*TPAI(3)-TRCP(3)  *
136        y=-0.225-TPAS(2)+TRCP(2)  * Positioning volume TSPA     into the mother TRSL
137  C # end CAF mod  *
138        DO I=1,4        N= 1
139  CC ml 20/04/05:                X= 0.
140  CC         X=-TRPL(1)+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)        Y= 0.
141  C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one        Z= 0.
142  C #          X=-TRPB(1)+2.29+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)        CALL GSPOS('TSPA',N,'TRSL',X,Y,Z,0,'ONLY')
143  c ml: 19/9/05: introducing the glue between TRCP and the silicon ladders.  C #       N= 2
144  c              for now the glue is a space of nitrogen of 0.015 mm  C # C      Y= Y - 2.*TSPA(2)
145  c         X=-TPAS(1)+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)  C #       Y=-TRSL(2)/2
146           X=-TPAS(1)+2*(I-1)*0.0015+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)  C #       CALL GSPOS('TSPA',N,'TRSL',X,Y,Z,0,'ONLY')
147  CC end ml  c ml: 26/11/04:
148           CALL GSPOS('TRCP',I,'TPAS',X,Y,Z,0,'ONLY')  * Positioning volume TRCP into mother TPAS
149  C # end CAF mod  C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one
150        ENDDO    C #       Z=-TRPB(3)+0.11+TRCP(3)
151  cc ml 20/04/05:  C #       Y=-TRPB(2)+1.5-0.225+TRCP(2)
152  * Positioning volume TRSL     into the mother TPAS  CC end ml.
153  C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one  c      Z=-TRPB(3)+2*TPAI(3)+TRCP(3)
154  C #       Y=-TRPB(2)+1.5+2*THBP(2)+TRSL(2)        Z=TRPB(3)-2*TPAI(3)-TRCP(3)
155  C      Y=2.75        y=-0.225-TPAS(2)+TRCP(2)
156  CC      Z= 0.  C # end CAF mod
157  C      Z=-0.005        TPASSPACE=TPAS(1)-(3*TRSL(1)+4*TRCP(1)+3*XGLUE)
158  c      Z=-TRPB(3)+2*TPAI(3)+TRCP(3)        DO I=1,4
159        Z=TRPB(3)-2*TPAI(3)-TRCP(3)  CC ml 20/04/05:        
160        DO I=1, NTRSL  CC         X=-TRPL(1)+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)
161  c ml: 20/9/05 introducing the glue between TRCP and the silicon ladders.  C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one
162  c         X=-TPAS(1)+2*(MOD(I-1,3)+1)*TRCP(1)+  C #          X=-TRPB(1)+2.29+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)
163  c     +        (2*(MOD(I-1,3)+1)-1)*TRSL(1)  c ml: 19/9/05: introducing the glue between TRCP and the silicon ladders.
164           X=-TPAS(1)+2*(MOD(I-1,3)+1)*TRCP(1)+  c              for now the glue is a space of nitrogen of 0.015 mm
165       +   (2*(MOD(I-1,3)+1)-1)*0.0015+(2*(MOD(I-1,3)+1)-1)*TRSL(1)          c         X=-TPAS(1)+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)
166           IF(I.LE.3) THEN  C Ml. 15/12/05: introducing a space (along x) between the inner part of the
167  C ml: 22/9/05:  c  aluminum frame and respectively the first and the last carbon fiber barrel.
168  c            Y=TPAS(2)-TRSL(2)  c It is has been done increasing the dimension of TPAS along x:
169              Y=TPAS(2)-0.1485-TRSL(2)  C         X=-TPAS(1)+2*(I-1)*XGLUE+(2*I-1)*TRCP(1)+2*(I-1)*TRSL(1)
170           ELSE           X=-TPAS(1)+TPASSPACE+2*(I-1)*XGLUE+(2*I-1)*TRCP(1)+
171  C            Y=TPAS(2)-3*TRSL(2)       +      2*(I-1)*TRSL(1)
172              Y=TPAS(2)-0.1485-0.0015-3*TRSL(2)  CC end ml
173           ENDIF           CALL GSPOS('TRCP',I,'TPAS',X,Y,Z,0,'ONLY')
174           CALL GSPOS('TRSL',I,'TPAS',X,Y,Z,0,'ONLY')  C # end CAF mod
175        ENDDO        ENDDO  
176  C # end CAF mod  cc ml 20/04/05:
177  **********  * Positioning volume TRSL     into the mother TPAS
178  cc ml: 20/04/05  C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one
179  * Positioning volume THBP     into the mother TPAS  C #       Y=-TRPB(2)+1.5+2*THBP(2)+TRSL(2)
180  C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one  C      Y=2.75
181  C #       Y=-TRPB(2)+1.5+THBP(2)  CC      Z= 0.
182  C # cc      Z= 0.  C      Z=-0.005
183  C #       Z=-TRPB(3)+0.11+TRCP(3)  c      Z=-TRPB(3)+2*TPAI(3)+TRCP(3)
184  c ml: 22/9/05:        Z=TRPB(3)-2*TPAI(3)-TRCP(3)
185  c      Y=-TPAS(2)+THBP(2)        DO I=1, NTRSL
186        Y=-TPAS(2)+0.1485+THBP(2)  c ml: 20/9/05 introducing the glue between TRCP and the silicon ladders.
187  C      Z=-0.005  c         X=-TPAS(1)+2*(MOD(I-1,3)+1)*TRCP(1)+
188  c      Z=-TRPB(3)+2*TPAI(3)+TRCP(3)  c     +        (2*(MOD(I-1,3)+1)-1)*TRSL(1)
189        Z=TRPB(3)-2*TPAI(3)-TRCP(3)           X=-TPAS(1)+2*(MOD(I-1,3)+1)*TRCP(1)+
190        DO I=1, NTHBP       +   (2*(MOD(I-1,3)+1)-1)*XGLUE+(2*(MOD(I-1,3)+1)-1)*TRSL(1)        
191  CC         X= -TRPL(1) + 2*I*TRCP(1)+(2*I-1)*THBP(1)           IF(I.LE.3) THEN
192  C #          X=-TRPB(1)+2.29+2*I*TRCP(1)+(2*I-1)*THBP(1)  C ml: 22/9/05:
193  c ml: 21/9/05 introducing the glue between the carbon barrel and the silicon  c            Y=TPAS(2)-TRSL(2)
194  c       ladders              Y=TPAS(2)-0.1485-TRSL(2)
195  c         X=-TPAS(1)+2*I*TRCP(1)+(2*I-1)*THBP(1)           ELSE
196           X=-TPAS(1)+2*I*TRCP(1)+(2*I-1)*THBP(1)+  C            Y=TPAS(2)-3*TRSL(2)
197       +      (2*(MOD(I-1,3)+1)-1)*0.0015              Y=TPAS(2)-0.1485-XGLUE-3*TRSL(2)
198           CALL GSPOS('THBP',I,'TPAS',X,Y,Z,0,'ONLY')           ENDIF
199        ENDDO           CALL GSPOS('TRSL',I,'TPAS',X,Y,Z,0,'ONLY')
200  c end ml.        ENDDO
201  cc ml: 20/04/05  C # end CAF mod
202  *  **********
203  * Positioning volume TPAI into the mother TPAS  cc ml: 20/04/05
204  *  * Positioning volume THBP     into the mother TPAS
205  C # Mod By Caf on 19th Jul 2005 all volumes inside the TPAS  C # Caf mod on 19 Jul 2005 all volumes are placed inside the TPAS one
206        X=0  C #       Y=-TRPB(2)+1.5+THBP(2)
207        Y=-TPAS(2)+TPAI(2)  C # cc      Z= 0.
208  c      Z=-TPAS(3)+TPAI(3)  C #       Z=-TRPB(3)+0.11+TRCP(3)
209        Z=TRPB(3)-TPAI(3)  c ml: 22/9/05:
210  C #       X=-TRPB(1)+2.29+TPAI(1)  c      Y=-TPAS(2)+THBP(2)
211  C #       Y=-TRPB(2)+1.5+2.5+TPAI(2)        Y=-TPAS(2)+0.1485+THBP(2)
212  C #       Z=-TRPB(3)+TPAI(3)  C      Z=-0.005
213        CALL GSPOS('TPAI',I,'TPAS',X,Y,Z,0,'ONLY')  c      Z=-TRPB(3)+2*TPAI(3)+TRCP(3)
214  C # end CAF mod        Z=TRPB(3)-2*TPAI(3)-TRCP(3)
215  *        DO I=1, NTHBP
216  * Positioning volume TPAS into the mother TRPB  CC         X= -TRPL(1) + 2*I*TRCP(1)+(2*I-1)*THBP(1)
217  *  C #          X=-TRPB(1)+2.29+2*I*TRCP(1)+(2*I-1)*THBP(1)
218  C # Mod By Caf on 15th Jul 2005  c ml: 21/9/05 introducing the glue between the carbon barrel and the silicon
219        X=0  c       ladders
220        Y=-TRPB(2)+1.5+TPAS(2)  c         X=-TPAS(1)+2*I*TRCP(1)+(2*I-1)*THBP(1)
221        Z=0           X=-TPAS(1)+2*I*TRCP(1)+(2*I-1)*THBP(1)+
222  C #       X=-TRPB(1)+2.29+TPAS(1)       +      (2*(MOD(I-1,3)+1)-1)*XGLUE
223  C #       Y=-TRPB(2)+1.5+TPAS(2)           CALL GSPOS('THBP',I,'TPAS',X,Y,Z,0,'ONLY')
224  C #       Z=-TRPB(3)+0.11+2*TRCP(3)+TPAS(3)        ENDDO
225        CALL GSPOS('TPAS',I,'TRPB',X,Y,Z,0,'ONLY')  c end ml.
226  c end ml.  cc ml: 20/04/05
227  *  *
228  * Positioning volume MGPA     into the mother MGPL  * Positioning volume TPAI into the mother TPAS
229  *  *
230        N= 1  C # Mod By Caf on 19th Jul 2005 all volumes inside the TPAS
231        X= 0.        X=0
232        Y= 0.        Y=-TPAS(2)+TPAI(2)
233        Z= 0.  c      Z=-TPAS(3)+TPAI(3)
234        CALL GSPOS('MGPA',N,'MGPL',X,Y,Z,0,'ONLY')        Z=TRPB(3)-TPAI(3)
235  *  C #       X=-TRPB(1)+2.29+TPAI(1)
236  * Positioning volume TPGD     into the mother MGFR  C #       Y=-TRPB(2)+1.5+2.5+TPAI(2)
237  *  C #       Z=-TRPB(3)+TPAI(3)
238        X=0.        CALL GSPOS('TPAI',I,'TPAS',X,Y,Z,0,'ONLY')
239        Z=-MGFR(3)+TPGD(3)  C # end CAF mod
240        Y=0.  *
241        CALL GSPOS('TPGD',N,'MGFR',X,Y,Z,0,'ONLY')  * Positioning volume TPAS into the mother TRPB
242  *  *
243  * Positioning volume MGPI     into the mother MGPL  C # Mod By Caf on 15th Jul 2005
244  *        X=0
245        N= 1        Y=-TRPB(2)+1.5+TPAS(2)
246        X= 0.        Z=0
247        Y= 0.  C #       X=-TRPB(1)+2.29+TPAS(1)
248  CC ML 10/11/05:  Positioning volume MGPI     into the mother MGFR  C #       Y=-TRPB(2)+1.5+TPAS(2)
249        Z= 0.  C #       Z=-TRPB(3)+0.11+2*TRCP(3)+TPAS(3)
250        CALL GSPOS('MGPI',N,'MGPA',X,Y,Z,0,'ONLY')        CALL GSPOS('TPAS',I,'TRPB',X,Y,Z,0,'ONLY')
251  C      Z= -MGFR(3)+2*TPGD(3)+MGPI(3)  c end ml.
252  C      CALL GSPOS('MGPI',N,'MGFR',X,Y,Z,0,'ONLY')  *
253  *  * Positioning volume MGPA     into the mother MGPL
254  * Positioning volume MGPL     into the mother MGFR  *
255  *        N= 1
256  c ml: 10/11/05        X= 0.
257  c      Z=-MGFR(3)+MGPL(3)        Y= 0.
258        Z=-MGFR(3)+2*TPGD(3)+MGPI(3)        Z= 0.
259        CALL GSPOS('MGPL',N,'MGFR',X,Y,Z,0,'ONLY')        CALL GSPOS('MGPA',N,'MGPL',X,Y,Z,0,'ONLY')
260  *  *
261  * Positioning volume TPGA     into the mother MGFR  * Positioning volume TPGD     into the mother MGFR
262  *  *
263  C ML: 10/11/05        X=0.
264        X=0.        Z=-MGFR(3)+TPGD(3)
265        Y=MGFR(2)-2*(MGFR(2)-TRPB(2))-TPGA(2)        Y=0.
266  C      Z=-MGFR(3)+2*MGPL(3)+TPGA(3)        CALL GSPOS('TPGD',N,'MGFR',X,Y,Z,0,'ONLY')
267        Z=MGFR(3)-2*TPGU(3)-2*TRPB(3)-TPGA(3)  *
268  C      Y=-0.75  * Positioning volume TPGI     into the mother MGFR under MGPL
269        CALL GSPOS('TPGA',N,'MGFR',X,Y,Z,0,'ONLY')  *
270  *        N=1
271  * Positioning volumes TRPB & MGPL into the mother SPEB        X=0.
272  *        Z=-MGFR(3)+2*TPGD(3)+TPGI(3)
273        N= 1        Y=0.
274        X= 0.        CALL GSPOS('TPGI',N,'MGFR',X,Y,Z,0,'ONLY')
275  C      Y= SPEB(2) - TRPB(2)  *
276        Y= -MGFR(2) + TRPB(2)  * Positioning volume MGPI     into the mother MGPL
277  C      Z= SPEB(3) - TRPB(3)  *
278  c      Z=-MGFR(3)+2*MGPL(3)+2*TPGA(3)+TRPB(3)        N= 1
279        Z=MGFR(3)-2*TPGU(3)-TRPB(3)        X= 0.
280  C      CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY')        Y= 0.
281        CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,0,'ONLY')  CC ML 10/11/05:  Positioning volume MGPI     into the mother MGPA
282  c      CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,9,'ONLY')        Z= 0.
283        Z=SPEB(3)        CALL GSPOS('MGPI',N,'MGPA',X,Y,Z,0,'ONLY')
284        DO I=1, 5  C      Z= -MGFR(3)+2*TPGD(3)+MGPI(3)
285           X= 0.  C      CALL GSPOS('MGPI',N,'MGFR',X,Y,Z,0,'ONLY')
286           Y= 0.  *
287  C         Z= Z - TRPB(3) - MGFR(3)  * Positioning volume MGPL     into the mother MGFR
288           Z=Z-MGFR(3)  *
289           N= I  c ml: 10/11/05
290           CALL GSPOS('MGFR',N,'SPEB',X,Y,Z,0,'ONLY')        N=1
291  C         Y= SPEB(2) - TRPB(2)  c      Z=-MGFR(3)+MGPL(3)
292  C         Z= Z - MGFR(3) - TRPB(3)        Z=-MGFR(3)+2*(TPGD(3)+TPGI(3))+MGPL(3)
293  C         N= (I+1)        CALL GSPOS('MGPL',N,'MGFR',X,Y,Z,0,'ONLY')
294  C         IF(I.EQ.5) THEN  *
295  CC            CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,10,'ONLY')  * Positioning volume TPGI     into the mother MGFR above MGPL
296  C            CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,10,'ONLY')  *
297  C         ELSE        N=2
298  CC            CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY')        X=0.
299  C            CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,0,'ONLY')        Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3))+TPGI(3)
300  C         ENDIF        Y=0.
301           Z=Z-MGFR(3)        CALL GSPOS('TPGI',N,'MGFR',X,Y,Z,0,'ONLY')
302        ENDDO  *
303        N=2  * Positioning volume TPGA     into the mother MGFR
304        X=0.  *
305        Y=MGFR(2) - TRPB(2)  C ML: 10/11/05
306        Z=Z-TRPB(3)        N=1
307  c      CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,4,'ONLY')        X=0.
308        CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,10,'ONLY')        Y=MGFR(2)-2*(MGFR(2)-TRPB(2))-TPGA(2)
309  *  C      Z=-MGFR(3)+2*MGPL(3)+TPGA(3)
310  * Positioning volume TPGU     into the mother MGFR  C      Z=MGFR(3)-2*TPGU(3)-2*TRPB(3)-TPGA(3)
311  *        Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3)+TPGI(3))+TPGA(3)
312        X=0.  C      Y=-0.75
313        Z=MGFR(3)-TPGU(3)        CALL GSPOS('TPGA',N,'MGFR',X,Y,Z,0,'ONLY')
314        Y=-MGFR(2)+TRPB(2)  *
315        CALL GSPOS('TPGU',N,'MGFR',X,Y,Z,0,'ONLY')  * Positioning volumes TRPB & MGPL into the mother SPEB
316  *  *
317        RETURN        N= 1
318        END        X= 0.
319    C      Y= SPEB(2) - TRPB(2)
320          Y= -MGFR(2) + TRPB(2)
321    C      Z= SPEB(3) - TRPB(3)
322    c      Z=-MGFR(3)+2*MGPL(3)+2*TPGA(3)+TRPB(3)
323    C      Z=MGFR(3)-2*TPGU(3)-TRPB(3)
324          Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3)+TPGI(3)+TPGA(3))+TRPB(3)
325    C      CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY')
326          CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,0,'ONLY')
327    c      CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,9,'ONLY')
328          Z=SPEB(3)
329          DO I=1, 5
330             X= 0.
331             Y= 0.
332    C         Z= Z - TRPB(3) - MGFR(3)
333             Z=Z-MGFR(3)
334             N= I
335             CALL GSPOS('MGFR',N,'SPEB',X,Y,Z,0,'ONLY')
336    C         Y= SPEB(2) - TRPB(2)
337    C         Z= Z - MGFR(3) - TRPB(3)
338    C         N= (I+1)
339    C         IF(I.EQ.5) THEN
340    CC            CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,10,'ONLY')
341    C            CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,10,'ONLY')
342    C         ELSE
343    CC            CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY')
344    C            CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,0,'ONLY')
345    C         ENDIF
346             Z=Z-MGFR(3)
347          ENDDO
348          N=2
349          X=0.
350          Y=MGFR(2) - TRPB(2)
351          Z=Z-TRPB(3)
352          ZTRPB=Z
353    c      CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,4,'ONLY')
354          CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,10,'ONLY')
355    *
356    * Positioning volume TBAL into the mother SPEB
357    *
358          DO I=1,2
359    C DTBAL is the distance along x of the volumes TBAL from the end of TRPB
360             DTBAL=3.6
361             N=I
362             IF(I.EQ.1) THEN
363                X=TRPB(1)-3.6-TBAL(1)
364             ELSE
365                X=-(TRPB(1)-3.6-TBAL(1))
366             ENDIF
367             Y=MGFR(2) - 2*TRPB(2)-TBAL(2)
368             Z=ZTRPB
369             CALL GSPOS('TBAL',N,'SPEB',X,Y,Z,0,'ONLY')
370          ENDDO
371    *
372    * Positioning volume TPGU     into the mother MGFR
373    *
374          X=0.
375    C      Z=MGFR(3)-TPGU(3)
376          Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3)+TPGI(3)+TPGA(3)+TRPB(3))+
377         +   TPGU(3)      
378          Y=-MGFR(2)+TRPB(2)
379          CALL GSPOS('TPGU',N,'MGFR',X,Y,Z,0,'ONLY')
380    *
381          RETURN
382          END

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

  ViewVC Help
Powered by ViewVC 1.1.23