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