* MOCADI input file based on RUN81-TA2-2021.DAT in GICOSY 
* adjusted MOCADI for simple case, 9.May 2022, H. Weick 
*
* SAVE #1, after TA
* SAVE #2, at S1
* SAVE #3, at S2 in front of wedge
* SAVE #4, at S2 behind wedge
* SAVE #5, at S3
* SAVE #6, at S4
*  
 epax 2
 atima-1.0
 option listmode root
*  
 BEAM
 10000
 1000.0, 0, 238, 92
 4
 0.10,  5.00, 0, 0, 0
 4
 0.15,  3.33, 0, 0, 0
 4
 0.1,  0, 0, 0, 0
*
 MATRIXFILE
 /u/weick/gicosy/frs/run81/mocadi/
*PRIMARY_BEAM
*1
*
 TARGET
 9., 4, 1850, 1		target material, shape of distribution
 223, 90          	set fragment A, Z
 5, 3000, 0.0, 0.0, 0.0	target thickness
 1, 1, 1, 1, 1, 0	reaction options
*Fklwi, Fenstr, Fgold, Fwico, Fkauf, Ffiss
*
ERWARTUNGSWERTE
SAVE #1
***********************************
DRIFT
 154.04    for TA2
* 266.64    for TA1
MATRIX                   'ff' 
RUN81TA22021001.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS2QT11'
RUN81TA22021002.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021003.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  22.939999
DRIFT
  22.939999
MATRIX                   'ff' 
RUN81TA22021004.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS2QT12'
RUN81TA22021005.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021006.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  46.029999
MATRIX                   'ff' 
RUN81TA22021007.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS2QT13'
RUN81TA22021008.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021009.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
   8.290000
COLL
3, 0, 0,  12.500,  12.500, 0
MATRIX                 'hexapole'
RUN81TA22021010.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
3, 0, 0,  12.500,  12.500, 0
DRIFT
  60.259201
MATRIX                   'ff' 
RUN81TA22021011.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
1, 0, 0, 12.75, 5.0
MATRIX                 'dipole TS3MU1'
RUN81TA22021012.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
1, 0, 0, 12.75, 5.0
COLL
1, 0, 0, 12.75, 5.0
MATRIX                 'dipole TS3MU1'
RUN81TA22021013.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
1, 0, 0, 12.75, 5.0
MATRIX                   'ff' 
RUN81TA22021014.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  60.259201
COLL
3, 0, 0,  12.500,  12.500, 0
MATRIX                 'hexapole'
RUN81TA22021015.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
3, 0, 0,  12.500,  12.500, 0
DRIFT
   8.290000
MATRIX                   'ff' 
RUN81TA22021016.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS3QD11'
RUN81TA22021017.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021018.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  45.730000
MATRIX                   'ff' 
RUN81TA22021019.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS3QD12'
RUN81TA22021020.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021021.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
 125.639999
*
*************** S1 **********************
EXPECTED-VALUES
SAVE   #2
*****************************************
*
DRIFT
 125.890007
MATRIX                   'ff' 
RUN81TA22021022.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS3QD21'
RUN81TA22021023.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021024.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  23.115000
DRIFT
  23.115000
MATRIX                   'ff' 
RUN81TA22021025.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS3QD22'
RUN81TA22021026.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021027.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
   8.540000
COLL
3, 0, 0,  12.500,  12.500, 0
MATRIX                 'hexapole'
RUN81TA22021028.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
3, 0, 0,  12.500,  12.500, 0
DRIFT
  60.259201
MATRIX                   'ff' 
RUN81TA22021029.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
1, 0, 0, 12.75, 5.0
MATRIX                 'dipole'
RUN81TA22021030.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
1, 0, 0, 12.75, 5.0
COLL
1, 0, 0, 12.75, 5.0
MATRIX                 'dipole TS3MU1'
RUN81TA22021031.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
1, 0, 0, 12.75, 5.0
MATRIX                   'ff' 
RUN81TA22021032.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  60.259201
COLL
3, 0, 0,  12.500,  12.500, 0
MATRIX                 'hexapole'
RUN81TA22021033.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
3, 0, 0,  12.500,  12.500, 0
DRIFT
   8.290000
MATRIX                   'ff' 
RUN81TA22021034.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS4QT11'
RUN81TA22021035.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021036.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  46.029999
MATRIX                   'ff' 
RUN81TA22021037.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS4QT12'
RUN81TA22021038.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021039.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  22.914999
DRIFT
  22.914999
MATRIX                   'ff' 
RUN81TA22021040.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS4QT13'
RUN81TA22021041.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021042.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
 225.889999
*
******************** S2 *****************
ERWARTUNGSWERTE
SAVE #3
/*
WEDGE
27, 13, 2700
8400.0, -23.45, 0		Wedge achromatic
6, 0, 0, 0
1, 1, -1, 1
0, 0, 0, 0                                         
*/
ERWARTUNGSWERTE
SAVE #4
*****************************************
*
DRIFT
 225.889999
MATRIX                   'ff' 
RUN81TA22021043.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS4QD21'
RUN81TA22021044.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021045.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  45.829998
MATRIX                   'ff' 
RUN81TA22021046.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS4QT22'
RUN81TA22021047.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021048.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  46.029999
MATRIX                   'ff' 
RUN81TA22021049.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS4QT23'
RUN81TA22021050.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021051.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
   8.290000
COLL
3, 0, 0,  12.500,  12.500, 0
MATRIX                 'hexapole'
RUN81TA22021052.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
3, 0, 0,  12.500,  12.500, 0
DRIFT
  60.259201
MATRIX                   'ff' 
RUN81TA22021053.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
1, 0, 0, 12.75, 5.0
MATRIX                 'dipole TS4MU1'
RUN81TA22021054.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
1, 0, 0, 12.75, 5.0
COLL
1, 0, 0, 12.75, 5.0
MATRIX                 'dipole TS4MU1'
RUN81TA22021055.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
1, 0, 0, 12.75, 5.0
MATRIX                   'ff' 
RUN81TA22021056.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  60.259201
COLL
3, 0, 0,  12.500,  12.500, 0
MATRIX                 'hexapole'
RUN81TA22021057.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
3, 0, 0,  12.500,  12.500, 0
DRIFT
   8.540000
MATRIX                   'ff' 
RUN81TA22021058.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS4QD11'
RUN81TA22021059.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021060.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  46.230000
MATRIX                   'ff' 
RUN81TA22021061.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS4QD12'
RUN81TA22021062.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021063.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
 125.890007
*
******************** S3 *****************
ERWARTUNGSWERTE
SAVE #5
*****************************************
*
DRIFT
 125.639999
MATRIX                   'ff' 
RUN81TA22021064.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS4QD21'
RUN81TA22021065.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021066.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  45.730000
MATRIX                   'ff' 
RUN81TA22021067.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole TS3QD22'
RUN81TA22021068.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021069.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
   8.290000
COLL
3, 0, 0,  12.500,  12.500, 0
MATRIX                 'hexapole TS4KS3'
RUN81TA22021070.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
3, 0, 0,  12.500,  12.500, 0
DRIFT
  60.259201
MATRIX                   'ff' 
RUN81TA22021071.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
1, 0, 0, 12.75, 5.0
MATRIX                 'dipole HFSMU1'
RUN81TA22021072.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
1, 0, 0, 12.75, 5.0
COLL
1, 0, 0, 12.75, 5.0
MATRIX                 'dipole HFSMU1'
RUN81TA22021073.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
1, 0, 0, 12.75, 5.0
MATRIX                   'ff' 
RUN81TA22021074.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  60.259201
COLL
3, 0, 0,  12.500,  12.500, 0
MATRIX                 'hexapole HFSKS1'
RUN81TA22021075.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
3, 0, 0,  12.500,  12.500, 0
DRIFT
   8.540000
MATRIX                   'ff' 
RUN81TA22021076.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole HFSQT11'
RUN81TA22021077.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021078.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  46.279999
MATRIX                   'ff' 
RUN81TA22021079.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole HFSQT12'
RUN81TA22021080.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021081.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
  46.279999
MATRIX                   'ff' 
RUN81TA22021082.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                'quadrupole HFSQT13'
RUN81TA22021083.MAT
223.021, 90, 784.79                          
3, 3                                    
COLL
4, 0, 0, 12.4, 12.58, 7.47
MATRIX                   'ff' 
RUN81TA22021084.MAT
223.021, 90, 784.79                          
3, 3                                    
DRIFT
 328.339996
*
******************** S4 *****************
ERWARTUNGSWERTE
SAVE #6
*****************************************
*
END
