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

Legend:
Removed from v.3.5  
changed lines
  Added in v.3.9

  ViewVC Help
Powered by ViewVC 1.1.23