26 |
#include "gpstripspe.inc" |
#include "gpstripspe.inc" |
27 |
#include "gpgeo.inc" |
#include "gpgeo.inc" |
28 |
#include "gpgene.inc" |
#include "gpgene.inc" |
29 |
|
#include "gpkey.inc" |
30 |
|
|
31 |
INTEGER IACT,NUMVOL(20) |
INTEGER IACT,NUMVOL(20) |
32 |
REAL DELOSS, TRAPAR(7),xyzspa(3),VPOS(3),xyzspac(3) |
REAL DELOSS, TRAPAR(7),xyzspa(3),VPOS(3),xyzspac(3) |
54 |
zup=TSPA(3)-xyzspa(3) |
zup=TSPA(3)-xyzspa(3) |
55 |
zdown=TSPA(3)+xyzspa(3) |
zdown=TSPA(3)+xyzspa(3) |
56 |
|
|
57 |
|
|
58 |
nearstripx=nearstx(xyzspa(1),xyzspa(2)) |
nearstripx=nearstx(xyzspa(1),xyzspa(2)) |
59 |
if(nearstripx.ne.0) then |
if(nearstripx.ne.0) then |
60 |
|
|
71 |
* v is along -Z; B is along -Y --> shift is along -X |
* v is along -Z; B is along -Y --> shift is along -X |
72 |
* |
* |
73 |
***************************************************************************** |
***************************************************************************** |
74 |
|
IF(FFIELD.NE.0) THEN |
75 |
CALL GUFLD(VPOS,BMAGNET) |
CALL GUFLD(VPOS,BMAGNET) |
76 |
|
|
77 |
c |
c |
78 |
c to be checked |
c to be checked |
79 |
c |
c |
80 |
xshift=xyzspa(1)-zdown*hallmob*1.e-4*BMAGNET(2)/10. |
xshift=xyzspa(1)+zdown*hallmob*1.e-4*BMAGNET(2)/10. |
81 |
IF(NSPEPLANE.EQ.6) xshift=xyzspa(1)+ |
IF(NSPEPLANE.EQ.6) xshift=xyzspa(1)- |
82 |
+ zdown*hallmob*1.e-4*BMAGNET(2)/10. |
+ zdown*hallmob*1.e-4*BMAGNET(2)/10. |
83 |
|
|
84 |
|
else |
85 |
|
xshift=xyzspa(1) |
86 |
|
endif |
87 |
|
|
88 |
* |
* |
89 |
* Now widths of Gaussian functions can be calculated by means of |
* Now widths of Gaussian functions can be calculated by means of |