MOCADI37 FRS to ESR
***************************************************************************
* this file has correct dimensions for quadrupole collimators (T.Baumann) *
* drift lengths are geometric lengths (Marc Hausmann, 11.04.2000)         *
* acceptance of ESR is simulated by 5 dimensional BR_SLIT (H.Weick, 2002) *
* Example 48Mn from 58Ni from Target station #2, H. Weick Dec. 2006       *
***************************************************************************
*
ATIMA-1.0                     
EPAX 2
option listmode cwn
*
MATRIXFILE		       		
/u/weick/gicosy/frs/esr/mocadi/
*******************************
 BEAM                         * Primary beam 
 100000                        * number of particles
 500.00 0, 58, 28, 0          * E_kin, Time, Masse(amu),Z_proj,electrons  
 4,                           * mode_XA
 0.27, 7.3,  0,  0,  0,       * max_X, max_A, r_XA, X_0, A_0
 4,                           * mode_YB
 0.27, 7.3,  0,  0,  0,       * max_Y, max_B, r_YB, Y_0, B_0
 1,                           * mode_ET 
 0.0 ,   0,  0,  0,  0,       * max_E, max_T, r_ET, E_1, T_1
*******************************
MATTER                                 SIS window
48, 22, 4500
3, 4.50
0
0.0, 0.0, 0.0
1, 1
0, 0, 0, 0
*******************************
'TARGET'                      *
 9, 4, 1850, 1                * A_t, Z_t, rho(mg/cm2), Goldhaber_distr
 48, 25                       * A_f, Z_f
 5, 4000.0                    * mode, thickness(mg/cm2), A_ref, Z_ref, E_ref
 1, 1, 1, 1, 1, 0,            * Klwi, Enstr, Goldh_fact, Coulscat, Kaufm, Spalt
*******************************
ERWARTUNGSWERTE     1:TARGET  
SAVE		      SAVE 1  
*END
******************************* 
 DRIFT
*  227.2                  old, 1997 - Sept 2006
*  268.7                       for TA1
  156.1                       for TA2
*******************************
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4001.MAT			* * * * TS2QT11 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
*******************************	
DRIFT			      
*45.18			      	
50.00
*******************************
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4002.MAT			* * * *	TS2QT12 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
*******************************
DRIFT			      
*45.18			      	
50.00
*******************************
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4003.MAT			* * * * TS2QT13 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
*******************************
DRIFT			      
*7.99			      
13.00
*******************************
COLL 4, 0, 0, 11.88, 12.4, 6.965
MATRIX				
FRSESRMATCHED4004.MAT			* * * *	TS2KS1 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 4, 0, 0, 11.88, 12.4, 6.965
*******************************
DRIFT			      
*56.104			      
63.0592
*******************************	
COLL 1, 0, 0,  12.75,  5.0, 0.0	
MATRIX				
FRSESRMATCHED4005.MAT			* * * *	TS3MU1 Streufeld
47.96863, 25, 367.8414		
3, 3				
MATRIX				
FRSESRMATCHED4006.MAT			* ******** TS3MU1 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 1, 0, 0,  12.75,  5.0, 0.0	
MATRIX				
FRSESRMATCHED4007.MAT			* ******** TS3MU1 magnet
47.96863, 25, 367.8414		
3, 3				
MATRIX				
FRSESRMATCHED4008.MAT			* * * * TS3MU1 Streufeld
47.96863, 25, 367.8414		
3, 3				
COLL 1, 0, 0,  12.75,  5.0, 0.0	
*******************************
DRIFT			      
*56.104			      
63.0592
*******************************
COLL 4, 0, 0, 11.88, 12.4, 6.965
MATRIX				
FRSESRMATCHED4009.MAT			* * * *	TS3KS1 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 4, 0, 0, 11.88, 12.4, 6.965
*******************************
DRIFT			      	
*7.99			      
13.00
*******************************
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4010.MAT			* * * *	TS3QD11 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
*******************************
DRIFT
*45.18			      
50.00
*******************************	
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4011.MAT			* * * *	TS3QD12 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
*******************************
DRIFT			      
*126.795			    
128.00
*******************************
******************************** FIRST FOCUS ***********************************
'ERWARTUNGSWERTE'   2:S1      * 
SAVE		      SAVE 2  *
******************************* 
******************************** END FIRST FOCUS *******************************
DRIFT			      
*126.795			      
128.00
*******************************
COLL 4, 0, 0, 12.4, 12.58, 7.47 
MATRIX				
FRSESRMATCHED4012.MAT			* * * * TS3QD21 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	 
*******************************
DRIFT			      
*46.38			      
50.00
*******************************
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4013.MAT			* * * *	TS3QD22 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
*******************************
DRIFT			      
*7.99			      
13.00
*******************************
COLL 4, 0, 0, 11.88, 12.4, 6.965
MATRIX				
FRSESRMATCHED4014.MAT			* * * *	TS3KS2 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 4, 0, 0, 11.88, 12.4, 6.965
*******************************
DRIFT			      
*56.104			      
63.0592
*******************************
COLL 1, 0, 0,  12.75,  5.0, 0.0	
MATRIX				
FRSESRMATCHED4015.MAT			* * * *	TS3MU2 STREUFELD
47.96863, 25, 367.8414		
3, 3				
MATRIX				
FRSESRMATCHED4016.MAT			* ******** TS3MU2 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 1, 0, 0,  12.75,  5.0, 0.0	
MATRIX				
FRSESRMATCHED4017.MAT			* ******** TS3MU2 magnet
47.96863, 25, 367.8414		
3, 3				
MATRIX				
FRSESRMATCHED4018.MAT			* * * *	TS3MU2 STREUFELD
47.96863, 25, 367.8414		
3, 3				
COLL 1, 0, 0,  12.75,  5.0, 0.0	
*******************************
DRIFT			      
*56.104			      
63.0592
*******************************
COLL 4, 0, 0, 11.88, 12.4, 6.965
MATRIX				
FRSESRMATCHED4019.MAT			* * * *	TS3KS3 magnet
47.96863, 25, 367.8414	
3, 3				
COLL 4, 0, 0, 11.88, 12.4, 6.965
*******************************
DRIFT			      
*7.99			      
13.00
*******************************
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4020.MAT			* * * *	TS3QT31 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
*******************************
DRIFT			      
*45.18			      
50.00
*******************************
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4021.MAT			* * * *	TS3QT32 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
*******************************
DRIFT			      
50.00
*******************************
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4022.MAT			* * * *	TS3QT33 magnet
47.96863, 25, 367.8414		
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
*
******************************* total drift length TS3QT33 to S2-focus
DRIFT			      
228.00
***********************************************************************
*WEDGE			      * S2-Degrader	
*27, 13, 2700,		      *	
*216.0, 0.00, 0               *	0.7 mm (0.28 mrad for achromacy ~ 0 )
*6, 0, 0, 0                   *	
*1, 1, 1, 1		      *
*0, 0, 0, 0		      *
************************ SECOND FOCUS ***********************************
*******************************
'ERWARTUNGSWERTE'   3:S2      
SAVE		      SAVE 3  
******************************* 
DRIFT                          total drift length S2-focus to TS4QT11
228.00
*******************************
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4023.MAT			* * * *	TS4QT11 magnet
47.96863, 25, 367.8414	 
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
*******************************
DRIFT			      
50.00
*******************************
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4024.MAT			* * * *	TS4QT12 magnet
47.96863, 25, 367.8414	
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
*******************************
DRIFT			      
*45.18			      
50.00
*******************************
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4025.MAT			* * * *	TS4QT13 magnet
47.96863, 25, 367.8414	
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
*******************************
DRIFT			      
*7.99			      
13.00
*******************************
COLL 4, 0, 0, 11.88, 12.4, 6.965
MATRIX				
FRSESRMATCHED4026.MAT			* * * *	TS4KS1 magnet
47.96863, 25, 367.8414	
3, 3				
COLL 4, 0, 0, 11.88, 12.4, 6.965
*******************************
DRIFT			      
*56.104			      
63.0592
*******************************
COLL 1, 0, 0,  12.75,  5.0, 0.0
MATRIX				
FRSESRMATCHED4027.MAT			* * * *	TS4MU1 STREUFELD
47.96863, 25, 367.8414	
3, 3				
MATRIX				
FRSESRMATCHED4028.MAT			* ******** TS4MU1 magnet
47.96863, 25, 367.8414	
3, 3				
COLL 1, 0, 0,  12.75,  5.0, 0.0	
MATRIX				
FRSESRMATCHED4029.MAT			* ******** TS4MU1 magnet
47.96863, 25, 367.8414	
3, 3,				
MATRIX				
FRSESRMATCHED4030.MAT			* * * *	TS4MU1 STREUFELD
47.96863, 25, 367.8414	
3, 3,				
COLL 1, 0, 0,  12.75,  5.0, 0.0	
*******************************
DRIFT				
*56.104
63.0592
*******************************
COLL 4, 0, 0, 11.88, 12.4, 6.965
MATRIX				
FRSESRMATCHED4031.MAT			* * * * TS4KS2 magnet
47.96863, 25, 367.8414	
3, 3				
COLL 4, 0, 0, 11.88, 12.4, 6.965
*******************************
DRIFT			      
*7.99			      
13.00
*******************************
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4032.MAT			* * * *	TS4QD21 magnet
47.96863, 25, 367.8414	
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
*******************************
DRIFT			      
*46.38			      
50.00
*******************************
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4033.MAT			* * * *	TS4QD22 magnet
47.96863, 25, 367.8414	
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
*******************************
DRIFT			      
*126.795			      
128.00
*******************************
******************************** THIRD FOCUS ***********************************
'ERWARTUNGSWERTE'   4:S3      * 
SAVE		      SAVE 4  *
******************************* 
******************************** END THIRD FOCUS *******************************
DRIFT			      
*126.795			      
128.00
******************************* 
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4034.MAT			* * * *	TS4QD31 magnet
47.96863, 25, 367.8414	
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
******************************* 
DRIFT			      
*45.18			      
50.00
******************************* 
COLL 4, 0, 0, 12.4, 12.58, 7.47	
MATRIX				
FRSESRMATCHED4035.MAT			* * * *	TS4QD32 magnet
47.96863, 25, 367.8414	
3, 3				
COLL 4, 0, 0, 12.4, 12.58, 7.47	
******************************* 
DRIFT			      
*7.99			      
13.00
******************************* 
COLL 4, 0, 0, 11.88, 12.4, 6.965
MATRIX				
FRSESRMATCHED4036.MAT			* * * *	TS4KS3 magnet
47.96863, 25, 367.8414	
3, 3				
COLL 4, 0, 0, 11.88, 12.4, 6.965
******************************* 
DRIFT			      
30.0			      
******************************* 
COLL 1, 0, 0, 12.75, 5.0, 0.0 * Vac.chamber HFSMU1 (Entrance)
******************************* 
DRIFT			      
290.0                         
******************************* 
COLL 1, 0, 0, 12.75, 5.0, 0.0 * Vac.chamber HFSMU1 (Mid)
******************************* 
DRIFT			      
288.7492                      
******************************* 
COLL 1, 0, 0, 12.75, 5.0, 0.0 * Vac.chamber HFSMU1 (Exit)
******************************* 
DRIFT			      
30.0                          
******************************* 
COLL 1, 0, 0,  7.0,  3.0, 0.0	
MATRIX				
FRSESRMATCHED4037.MAT			* * * *	TS5MU1 STREUFELD
47.96863, 25, 367.8414	
3, 3				
MATRIX				
FRSESRMATCHED4038.MAT			* ******** TS5MU1 magnet
47.96863, 25, 367.8414	
3, 3				
MATRIX				
FRSESRMATCHED4039.MAT			* * * *	TS5MU1 STREUFELD
47.96863, 25, 367.8414	
3, 3,				
COLL 1, 0, 0,  7.0,  3.0, 0.0	
*******************************
DRIFT			      
136.2386		      
*******************************
ERWARTUNGSWERTE   5:S5       FOKUS S5 
SAVE		      SAVE 5  
******************************* 
SLIT -10.0, 10.0, -10.0, 10.0 
* obsolete soon
*******************************
DRIFT			      
27.0			      
*******************************
*COLL 4, 0, 0, 5.0, 5.0, 5.0    was a flange inside chamber, now removed
*******************************
DRIFT			      
105.0			      
*******************************
COLL 4, 0, 0, 10.50, 11.50, 6.40
MATRIX				
FRSESRMATCHED4040.MAT			* * * * TS5QT11
47.96863, 25, 367.8414	
3, 3				
COLL 4, 0, 0, 10.50, 11.50, 6.40
*******************************
DRIFT			      *
50.0			      * 
*******************************
COLL 4, 0, 0, 10.50, 11.50, 6.40
MATRIX				
FRSESRMATCHED4041.MAT			* * * * TS5QT12
47.96863, 25, 367.8414	
3, 3				
COLL 4, 0, 0, 10.50, 11.50, 6.40
*******************************
DRIFT			      *
50.0			      * 
*******************************
COLL 4, 0, 0, 10.50, 11.50, 6.40
MATRIX				
FRSESRMATCHED4042.MAT			* * * * TS5QT13
47.96863, 25, 367.8414	
3, 3				
COLL 4, 0, 0, 10.50, 11.50, 6.40
*******************************
DRIFT			      *
160.9552		      *	
*******************************
COLL 4, 0, 0, 10.50, 11.50, 6.40
MATRIX				
FRSESRMATCHED4043.MAT			* * * *	TS5KS1 magnet
47.96863, 25, 367.8414	
3, 3				
COLL 4, 0, 0, 10.50, 11.50, 6.40
******************************* 
DRIFT			      
63.10			      
*******************************  
COLL 1, 0, 0,  12.6,  3.75, 0.0	
MATRIX				
FRSESRMATCHED4044.MAT			* * * *	TS6MU1 STREUFELD
47.96863, 25, 367.8414	
3, 3				
MATRIX				
FRSESRMATCHED4045.MAT			* ******** TS6MU1 magnet
47.96863, 25, 367.8414	
3, 3				
COLL 1, 0, 0,  12.6,  3.75, 0.0	
MATRIX				
FRSESRMATCHED4046.MAT			* ******** TS6MU1 magnet
47.96863, 25, 367.8414	
3, 3,				
MATRIX				
FRSESRMATCHED4047.MAT			* * * *	TS6MU1 STREUFELD
47.96863, 25, 367.8414	
3, 3,				
COLL 1, 0, 0,  12.6,  3.75, 0.0	
*******************************
DRIFT		              	
63.10			      
*******************************
COLL 4, 0, 0, 10.50, 11.50, 6.40
MATRIX			
FRSESRMATCHED4048.MAT			* * * *	TE5KS1 magnet
47.96863, 25, 367.8414
3, 3				
COLL 4, 0, 0, 10.50, 11.50, 6.40
******************************* 
DRIFT		              		
8.00
*******************************
DRIFT		              	
5.00
*******************************
COLL 4, 0, 0, 10.50, 11.50, 6.40
MATRIX				
FRSESRMATCHED4049.MAT			* * * * TE5QD11
47.96863, 25, 367.8414	         
3, 3				
COLL 4, 0, 0, 10.50, 11.50, 6.40 
*******************************
DRIFT			      
50.0			       
*******************************
COLL 4, 0, 0, 10.50, 11.50, 6.40
MATRIX				
FRSESRMATCHED4050.MAT			* * * * TE5QD12
47.96863, 25, 367.8414	         
3, 3				
COLL 4, 0, 0, 10.50, 11.50, 6.40
*******************************
DRIFT			      
198.7
*******************************
ERWARTUNGSWERTE   6:S6       
SAVE		      SAVE 6  
*******************************
DRIFT			      
153.80662
*******************************
COLL 1, 0, 0, 10.50, 4.00       *
MATRIX				*
FRSESRMATCHED4051.MAT			* * * * FF of TE5MU0
47.96863, 25, 367.8414	        * 
3, 3				*
MATRIX				*
FRSESRMATCHED4052.MAT			* * * * TE5MU0
47.96863, 25, 367.8414	        * 
3, 3				*
MATRIX				*
FRSESRMATCHED4053.MAT			* * * * FF of TE5MU0
47.96863, 25, 367.8414	        * 
3, 3				*
COLL 1, 0, 0, 10.50, 4.00       *
*******************************
DRIFT			      
118.00
*******************************
COLL 4, 0, 0, 8.50, 9.50, 6.40  * gap guessed only
MATRIX				
FRSESRMATCHED4054.MAT			* * * * TE5QD21
47.96863, 25, 367.8414	         
3, 3				
COLL 4, 0, 0, 8.50, 9.50, 6.40  * gap guessed only
*******************************
DRIFT			      
66.00
*******************************
COLL 4, 0, 0, 8.50, 9.50, 6.40  * gap guessed only
MATRIX				
FRSESRMATCHED4055.MAT			* * * * TE5QD22
47.96863, 25, 367.8414	         
3, 3				
COLL 4, 0, 0, 8.50, 9.50, 6.40  * gap guessed only
*******************************
DRIFT			      
47.00                          
******************************* Take Over Point defined by P. Spiller98
'ERWARTUNGSWERTE'   7:TOP     
SAVE		      SAVE 7  
*******************************
*
* cut phase space according to measured ESR-acceptance in
* scan of ESR-injection for ESR standard mode, August 2001 (Run98)
* The BR_SLIT does not allow elliptical cuts. Therefore, the
* acceptance is still to high by a factor of (Pi/4) * (Pi/4)
* best values for phase space acceptace would be:
* x-x'-Brho (3dim ellipsoidal cut) on upright ellipse at longitudinal
* position dz=+4.8m, half width: 2.5mm, 3mrad, 0.3% 
* y-y' (2dim ellipsoidal cut) at dz=-1.75m, half width 2mm, 3mrad
*  H. Weick, 27.03.2002
*------------------
* x,x',Brho-cut
DRIFT
480.0
*
BR_SLIT
47.96863, 25, 367.8414, 0.2
0, 0, 0.25, 100
0, 0, 3.00, 100
*
DRIFT
-480.0
*------------------
* y,y'-cut
DRIFT
-175.0
*
BR_SLIT
47.96863, 25, 367.8414, 100
0, 0, 100, 0.20
0, 0, 100, 3.00
*
DRIFT
175.0
*
*******************************
ERWARTUNGSWERTE   8:ESR     
SAVE		      SAVE 8  
*******************************
END			      
