1 |
|
|
2 |
* |
* |
3 |
* $Id: gpspev.F,v 3.3 2005/07/25 11:53:21 cafagna Exp $ |
* $Id: gpspev.F,v 3.4 2005/12/05 12:15:21 pam-ba Exp $ |
4 |
* |
* |
5 |
* $Log: gpspev.F,v $ |
* $Log: gpspev.F,v $ |
6 |
|
* Revision 3.4 2005/12/05 12:15:21 pam-ba |
7 |
|
* new spectrometer geometry and internal magnetic field |
8 |
|
* |
9 |
* Revision 3.3 2005/07/25 11:53:21 cafagna |
* Revision 3.3 2005/07/25 11:53:21 cafagna |
10 |
* Several updates. See history for details |
* Several updates. See history for details |
11 |
* |
* |
106 |
NMED= MN2 |
NMED= MN2 |
107 |
CALL GSVOLU('TPGA','BOX ',NMED,TPGA, 3,IVOLU) |
CALL GSVOLU('TPGA','BOX ',NMED,TPGA, 3,IVOLU) |
108 |
* |
* |
109 |
|
* Define the TPGI volume |
110 |
|
* |
111 |
|
NMED= MN2 |
112 |
|
CALL GSVOLU('TPGI','BOX ',NMED,TPGI, 3,IVOLU) |
113 |
|
* |
114 |
* Define the TPGU volume |
* Define the TPGU volume |
115 |
* |
* |
116 |
NMED= MN2 |
NMED= MN2 |
248 |
Y=0. |
Y=0. |
249 |
CALL GSPOS('TPGD',N,'MGFR',X,Y,Z,0,'ONLY') |
CALL GSPOS('TPGD',N,'MGFR',X,Y,Z,0,'ONLY') |
250 |
* |
* |
251 |
|
* Positioning volume TPGI into the mother MGFR under MGPL |
252 |
|
* |
253 |
|
N=1 |
254 |
|
X=0. |
255 |
|
Z=-MGFR(3)+2*TPGD(3)+TPGI(3) |
256 |
|
Y=0. |
257 |
|
CALL GSPOS('TPGI',N,'MGFR',X,Y,Z,0,'ONLY') |
258 |
|
* |
259 |
* Positioning volume MGPI into the mother MGPL |
* Positioning volume MGPI into the mother MGPL |
260 |
* |
* |
261 |
N= 1 |
N= 1 |
262 |
X= 0. |
X= 0. |
263 |
Y= 0. |
Y= 0. |
264 |
CC ML 10/11/05: Positioning volume MGPI into the mother MGFR |
CC ML 10/11/05: Positioning volume MGPI into the mother MGPA |
265 |
Z= 0. |
Z= 0. |
266 |
CALL GSPOS('MGPI',N,'MGPA',X,Y,Z,0,'ONLY') |
CALL GSPOS('MGPI',N,'MGPA',X,Y,Z,0,'ONLY') |
267 |
C Z= -MGFR(3)+2*TPGD(3)+MGPI(3) |
C Z= -MGFR(3)+2*TPGD(3)+MGPI(3) |
270 |
* Positioning volume MGPL into the mother MGFR |
* Positioning volume MGPL into the mother MGFR |
271 |
* |
* |
272 |
c ml: 10/11/05 |
c ml: 10/11/05 |
273 |
|
N=1 |
274 |
c Z=-MGFR(3)+MGPL(3) |
c Z=-MGFR(3)+MGPL(3) |
275 |
Z=-MGFR(3)+2*TPGD(3)+MGPI(3) |
Z=-MGFR(3)+2*(TPGD(3)+TPGI(3))+MGPL(3) |
276 |
CALL GSPOS('MGPL',N,'MGFR',X,Y,Z,0,'ONLY') |
CALL GSPOS('MGPL',N,'MGFR',X,Y,Z,0,'ONLY') |
277 |
* |
* |
278 |
|
* Positioning volume TPGI into the mother MGFR over MGPL |
279 |
|
* |
280 |
|
N=2 |
281 |
|
X=0. |
282 |
|
Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3))+TPGI(3) |
283 |
|
Y=0. |
284 |
|
CALL GSPOS('TPGI',N,'MGFR',X,Y,Z,0,'ONLY') |
285 |
|
* |
286 |
* Positioning volume TPGA into the mother MGFR |
* Positioning volume TPGA into the mother MGFR |
287 |
* |
* |
288 |
C ML: 10/11/05 |
C ML: 10/11/05 |
289 |
|
N=1 |
290 |
X=0. |
X=0. |
291 |
Y=MGFR(2)-2*(MGFR(2)-TRPB(2))-TPGA(2) |
Y=MGFR(2)-2*(MGFR(2)-TRPB(2))-TPGA(2) |
292 |
C Z=-MGFR(3)+2*MGPL(3)+TPGA(3) |
C Z=-MGFR(3)+2*MGPL(3)+TPGA(3) |
293 |
Z=MGFR(3)-2*TPGU(3)-2*TRPB(3)-TPGA(3) |
C Z=MGFR(3)-2*TPGU(3)-2*TRPB(3)-TPGA(3) |
294 |
|
Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3)+TPGI(3))+TPGA(3) |
295 |
C Y=-0.75 |
C Y=-0.75 |
296 |
CALL GSPOS('TPGA',N,'MGFR',X,Y,Z,0,'ONLY') |
CALL GSPOS('TPGA',N,'MGFR',X,Y,Z,0,'ONLY') |
297 |
* |
* |
303 |
Y= -MGFR(2) + TRPB(2) |
Y= -MGFR(2) + TRPB(2) |
304 |
C Z= SPEB(3) - TRPB(3) |
C Z= SPEB(3) - TRPB(3) |
305 |
c Z=-MGFR(3)+2*MGPL(3)+2*TPGA(3)+TRPB(3) |
c Z=-MGFR(3)+2*MGPL(3)+2*TPGA(3)+TRPB(3) |
306 |
Z=MGFR(3)-2*TPGU(3)-TRPB(3) |
C Z=MGFR(3)-2*TPGU(3)-TRPB(3) |
307 |
|
Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3)+TPGI(3)+TPGA(3))+TRPB(3) |
308 |
C CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY') |
C CALL GSPOS('TRPB',N,'SPEB',X,Y,Z,0,'ONLY') |
309 |
CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,0,'ONLY') |
CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,0,'ONLY') |
310 |
c CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,9,'ONLY') |
c CALL GSPOS('TRPB',N,'MGFR',X,Y,Z,9,'ONLY') |
338 |
* Positioning volume TPGU into the mother MGFR |
* Positioning volume TPGU into the mother MGFR |
339 |
* |
* |
340 |
X=0. |
X=0. |
341 |
Z=MGFR(3)-TPGU(3) |
C Z=MGFR(3)-TPGU(3) |
342 |
|
Z=-MGFR(3)+2*(TPGD(3)+TPGI(3)+MGPL(3)+TPGI(3)+TPGA(3)+TRPB(3))+ |
343 |
|
+ TPGU(3) |
344 |
Y=-MGFR(2)+TRPB(2) |
Y=-MGFR(2)+TRPB(2) |
345 |
CALL GSPOS('TPGU',N,'MGFR',X,Y,Z,0,'ONLY') |
CALL GSPOS('TPGU',N,'MGFR',X,Y,Z,0,'ONLY') |
346 |
* |
* |