FLASSI. ECHO stream rerouted to file: LCLS.echo FLASSI. PRINT stream rerouted to file: LCLS.print FLCALL. Now reading file: LCLS_master.xsif FLCALL. Now reading file: LCLS_L1.xsif FLCALL. Now reading file: LCLS_master.xsif FLCALL. Now reading file: LCLS_L2.xsif FLCALL. Now reading file: LCLS_master.xsif FLCALL. Now reading file: LCLS_L3.xsif FLCALL. Now reading file: LCLS_master.xsif FLCALL. Now reading file: ALINE.xsif FLCALL. Now reading file: LCLS_master.xsif FLCALL. Now reading file: standard input ENBEAM. ## Warning ## Redundant data on BEAM --- SIGE will be ignored. 1065 ! ------------------------------------------------------------------------------ ! configurations ! ------------------------------------------------------------------------------ !MXLEAP !set XLEAP wiggler to minimum gap (K=50) and match to undulators 1070 ! ------------------------------------------------------------------------------ !CALL, FILENAME="LCLS_match.mad8" !CALL, FILENAME="RDB/makeSymbols.mad8" 1075 !CALL, FILENAME="elegant/makeElegant.mad8" !STOP ! ------------------------------------------------------------------------------ 1080 ! Online Modelling Support. ! ** The lines below are selectively commented in by LCLS online model. ** ! ** Please do not edit. ** ! ------------------------------------------------------------------------------ ! CALL, FILENAME="patch.mad8" 1085 ! ------------------------------------------------------------------------------ ! ============================================================================== ! twiss plots, etc. (Full Machine) ! ------------------------------------------------------------------------------ 1090 COMMENT BEAM, ENERGY=E00 USE, (GUNL0a,L0b) SAVEBETA, TWSSi, #E 1095 TWISS, BETA0=TWSSC VALUE, TWSSi[ENERGY] VALUE, TWSSi[BETX],TWSSi[ALFX],TWSSi[BETY],TWSSi[ALFY] STOP ENDCOMMENT 1100 !COMMENT BEAM, ENERGY=E00 SET, SETAL, 0 USE, CU_HXR ENUSE. New beam line expanded: CU_HXR 1105 PRINT, FULL TWISS, BETA0=TWSSC, SAVE TWBTGO. ## Warning ## TWISS found transverse coupling for delta(p)/p = 0.000000 Please use the COUPLE option. TWBTGO. ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit. for optical calculations it ignores both. TWBTSV. Lattice functions saved in table: TWISS PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=DL1beg/#E, TITLE="Cathode to Main Dump" 1110 PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.F., FILE="LCLS", & RANGE=CATHODE/DL1beg, TITLE="L0-to-DL1 dog-leg" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.T., FILE="LCLS", & 1115 RANGE=LHbeg/LHend, TITLE="Laser-Heater" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=L0bBEG/DL1end, TITLE="L0-to-DL1 dog-leg" PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & 1120 STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=L1beg/L1end, TITLE="L1-linac" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=BC1mrk/BC1fin, TITLE="BC1-chicane" 1125 PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=L2beg/L2end, TITLE="L2-linac" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.T., FILE="LCLS", & 1130 RANGE=BPM24301/BPM25501, TITLE="BC2-chicane" !RANGE=BC2mrk/BC2fin, TITLE="BC2-chicane" PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=L3beg/L3end, TITLE="L3-linac" 1135 PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=BEGBSY/ENDBSY, TITLE="BSY" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, & STYLE=100, SPLINE=.T., FILE="LCLS", & 1140 RANGE=MM1/MM2, TITLE="DL2-dogleg" PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=MM2/MM3, TITLE="Undulator emittance diagnostics" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, & 1145 STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=ENDBSY/#E, TITLE="muon-plug-to-DUMP" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=ENDBSY/MM1, TITLE="Vertical Bend System" 1150 PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & STYLE=100, SPLINE=.T., FILE="LCLS", & RANGE=UNDSTART/UNDTERM, TITLE="undulator" PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX,DY, & STYLE=100, SPLINE=.T., FILE="LCLS", & 1155 RANGE=UEbeg/DMPend, TITLE="undulator exit and e- dump" !ENDCOMMENT COMMENT BEAM, ENERGY=E00 1160 SET, SETAL, 0 USE, CU_HXR ENVELOPE, SIGMA0=SIGC, TAPE="LCLS_envelope.tape" ENDCOMMENT 1165 COMMENT BEAM, ENERGY=E00 SET, SETAL, 0 USE, CU_HXR SAVELINE, NAME="LSFEL", FILENAME="LCLS.saveline" 1170 ENDCOMMENT ! ============================================================================== ! standard output files ! ------------------------------------------------------------------------------ 1175 ! linac coordinates ! ------------------------------------------------------------------------------ ! Full Machine: cathode to dump ! ============================= 1180 ASSIGN, PRINT="LCLS.print" FLASSI. Closing PRINT file: LCLS.print BEAM, ENERGY=E00 SET, SETAL, 0 USE, CU_HXR ENUSE. Beam line re-expanded: CU_HXR PRINT, FULL 1185 SURVEY, THETA0=ADL1, X0=Xi, Z0=Zi, TAPE="LCLS_survey.tape" SURVEY. Output written on file: LCLS_survey.tape TWISS, BETA0=TWSSC, TAPE="LCLS_twiss.tape" !, RTAPE="LCLS_rmat.tape" TWBTGO. ## Warning ## TWISS found transverse coupling for delta(p)/p = 0.000000 Please use the COUPLE option. TWBTGO. ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit. for optical calculations it ignores both. TWISS. Lattice functions written on file: LCLS_twiss.tape ! Gun Spectrometer: cathode to 6 MeV spectrometer dump ! ==================================================== 1190 ASSIGN, PRINT="GSPEC.print" FLASSI. Closing PRINT file: LCLS.print FLASSI. PRINT stream rerouted to file: GSPEC.print BEAM, ENERGY=E00 USE, CU_GSPEC ENUSE. New beam line expanded: CU_GSPEC PRINT, FULL SURVEY, THETA0=ADL1, X0=Xi, Z0=Zi, TAPE="GSPEC_survey.tape" SURVEY. Output written on file: GSPEC_survey.tape 1195 TWISS, BETA0=TWSSC, SAVE, TAPE="GSPEC_twiss.tape" !, RTAPE="GSPEC_rmat.tape" TBCREA. ## Warning ## Table buffer "TWISS" already exists --- previous version deleted. TWBTGO. ## Warning ## TWISS found transverse coupling for delta(p)/p = 0.000000 Please use the COUPLE option. TWISS. Lattice functions written on file: GSPEC_twiss.tape TWBTSV. Lattice functions saved in table: TWISS PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.T., FILE="GSPEC", & RANGE=#S/#E, TITLE="Cathode through 6-MeV Gun Spectrometer" !PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & 1200 ! STYLE=100, SPLINE=.T., FILE="GSPEC", & ! RANGE=GSPECBEG/#E, TITLE="Gun spectrometer" !SAVELINE, NAME="LSGUN", FILENAME="GSPEC.saveline" ! 135 MeV Spectrometer: cathode to 135 MeV spectrometer dump 1205 ! ========================================================== ASSIGN, PRINT="SPEC.print" FLASSI. Closing PRINT file: GSPEC.print FLASSI. PRINT stream rerouted to file: SPEC.print BEAM, ENERGY=E00 USE, CU_SPEC ENUSE. New beam line expanded: CU_SPEC PRINT, FULL 1210 SURVEY, THETA0=ADL1, X0=Xi, Z0=Zi, TAPE="SPEC_survey.tape" SURVEY. Output written on file: SPEC_survey.tape TWISS, BETA0=TWSSC, SAVE, TAPE="SPEC_twiss.tape" !, RTAPE="SPEC_rmat.tape" TBCREA. ## Warning ## Table buffer "TWISS" already exists --- previous version deleted. TWBTGO. ## Warning ## TWISS found transverse coupling for delta(p)/p = 0.000000 Please use the COUPLE option. TWBTGO. ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit. for optical calculations it ignores both. TWISS. Lattice functions written on file: SPEC_twiss.tape TWBTSV. Lattice functions saved in table: TWISS PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.T., FILE="SPEC", & RANGE=DL1beg/#E, TITLE="Cathode through 135-MeV Spectrometer" 1215 PLOT, TABLE=TWISS, HAXIS=S, VAXIS1=BETX,BETY, VAXIS2=DX, & STYLE=100, SPLINE=.T., FILE="SPEC", & RANGE=SPECBEG/#E, TITLE="BXS Entrance to 135-MeV Spectrometer" !SAVELINE, NAME="LSINJ", FILENAME="SPEC.saveline" 1220 ! ESTB: cathode to A-line 3PR2 ! ============================ ASSIGN, PRINT="LCLSA.print" FLASSI. Closing PRINT file: SPEC.print FLASSI. PRINT stream rerouted to file: LCLSA.print BEAM, ENERGY=E00 SET, SETAL, 1 1225 USE, (CU_ALINE,DPR2) !include drift to PR2 ENUSE. New beam line expanded: *LIN.01* PRINT, FULL SURVEY, THETA0=ADL1, X0=Xi, Z0=Zi, TAPE="LCLSA_survey.tape" SURVEY. Output written on file: LCLSA_survey.tape TWISS, BETA0=TWSSC, SAVE, TAPE="LCLSA_twiss.tape" !, RTAPE="LCLSA_rmat.tape" TBCREA. ## Warning ## Table buffer "TWISS" already exists --- previous version deleted. TWBTGO. ## Warning ## TWISS found transverse coupling for delta(p)/p = 0.000000 Please use the COUPLE option. TWBTGO. ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit. for optical calculations it ignores both. TWISS. Lattice functions written on file: LCLSA_twiss.tape TWBTSV. Lattice functions saved in table: TWISS PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & 1230 SPLINE=.T., STYLE=100, FILE="LCLSA", & RANGE=BEGCLTH0/#E, TITLE="BSY to A-line" PLOT, TABLE=TWISS, HAXIS=S, VAXIS=DX,DY, & SPLINE=.T., STYLE=100, FILE="LCLSA", & RANGE=BEGCLTH0/#E, TITLE="BSY to A-line" 1235 ! ------------------------------------------------------------------------------ ! special BSY survey coordinates including Y-pitch-down angle at Station-100 ! (NOTE: map onto alignment reference at QSM1 center) ! ------------------------------------------------------------------------------ 1240 ! get Twiss at beginning of BSY BEAM, ENERGY=E00 SET, SETAL, 0 1245 USE, (GUNL0a,L0b,LCLS) ENUSE. New beam line expanded: *LIN.02* SAVEBETA, TBSY, BEGBSY TWISS, BETA0=TWSSC TWSBET. ## Warning ## Chromatic functions in BETA0 are zero. Use CHROM option to get non-zero values. TWBTGO. ## Warning ## TWISS found transverse coupling for delta(p)/p = 0.000000 Please use the COUPLE option. TWBTGO. ## Warning ## TWISS uses the RF system and synchrotron radiation only to find the closed orbit. for optical calculations it ignores both. SHOW, TBSY Command: TBSY TBSY: BETA0, BETX=33.006674872118, ALFX=1.193653989428, MUX=7.620182408854, & BETY=61.971770886279, ALFY=-1.657134955045, MUY=7.308756293532, X=& 0.188129341459E-26, PX=-0.176496332472E-27, Y=0.155347301315E-29, PY=& 0.306151969836E-31, T=-0.143628246982E-17, PT=-0.270207688071E-16, DX=& -0.303381901939E-10, DPX=0.259495010799E-11, DY=0.821740413188E-13, DPY=& 0.161939640029E-14, RM11=0.0, RM12=0.0, RM21=0.0, RM22=0.0, ENERGY=13.64 1250 ! BSY to dump ! =========== ASSIGN, PRINT="BSY-LCLS.print" FLASSI. Closing PRINT file: LCLSA.print FLASSI. PRINT stream rerouted to file: BSY-LCLS.print BEAM, ENERGY=Ef SET, SETAL, 0 1255 USE, BSYLTU ENUSE. New beam line expanded: BSYLTU PRINT, FULL SURVEY, TAPE="BSY-LCLS_survey.tape", & X0=Xf, Y0=Yf, Z0=Zf, THETA0=THETAf, PHI0=PHIf, PSI0=PSIf SURVEY. Output written on file: BSY-LCLS_survey.tape 1260 ! BSY to safety dump ! ================== ASSIGN, PRINT="BSY-SFTDMP.print" FLASSI. Closing PRINT file: BSY-LCLS.print FLASSI. PRINT stream rerouted to file: BSY-SFTDMP.print BEAM, ENERGY=Ef SET, SETAL, 0 1265 USE, BSYSFT ENUSE. New beam line expanded: BSYSFT PRINT, FULL SURVEY, TAPE="BSY-SFTDMP_survey.tape", & X0=Xf, Y0=Yf, Z0=Zf, THETA0=THETAf, PHI0=PHIf, PSI0=PSIf SURVEY. Output written on file: BSY-SFTDMP_survey.tape 1270 ! BSY to A-line 3PR2 ! ================== ASSIGN, PRINT="BSY-LCLSA.print" FLASSI. Closing PRINT file: BSY-SFTDMP.print FLASSI. PRINT stream rerouted to file: BSY-LCLSA.print BEAM, ENERGY=Ef SET, SETAL, 1 1275 USE, (BSYALINE,DPR2) ENUSE. New beam line expanded: *LIN.03* PRINT, FULL SURVEY, TAPE="BSY-LCLSA_survey.tape", & X0=Xf, Y0=Yf, Z0=Zf, THETA0=THETAf, PHI0=PHIf, PSI0=PSIf SURVEY. Output written on file: BSY-LCLSA_survey.tape 1280 ! ============================================================================== ! special cross-checks ! ------------------------------------------------------------------------------ COMMENT 1285 ! check horizontal phase advance between last bends of BC1 and BC2 USE, (L0b,LCLS) SAVEBETA, TBC1, BX14A 1290 SAVEBETA, TBC2, BX24A TWISS, BETA0=TWSS0 ! horizontal phase advance between BC1/BC2 CSR kicks (180 deg desired) 1295 VALUE, 360*(TBC2[MUX]-TBC1[MUX]-3) ENDCOMMENT ! ------------------------------------------------------------------------------ 1300 COMMENT ! check phase advance between wire-scanners WS21 through WS24 USE, (L0b,LCLS) 1305 SAVEBETA, TWS21, DWS21 SAVEBETA, TWS22, DWS22 SAVEBETA, TWS23, DWS23 SAVEBETA, TWS24, WS24 TWISS, BETA0=TWSS0 1310 VALUE, 360*(TWS22[MUX]-TWS21[MUX]) VALUE, 360*(TWS23[MUX]-TWS22[MUX]) VALUE, 360*(TWS24[MUX]-TWS23[MUX]) VALUE, 360*(TWS22[MUY]-TWS21[MUY]) 1315 VALUE, 360*(TWS23[MUY]-TWS22[MUY]) VALUE, 360*(TWS24[MUY]-TWS23[MUY]) ENDCOMMENT ! ------------------------------------------------------------------------------ 1320 COMMENT ! check horizontal phase advance between last BC2 bend and center of first ! DL2 bend system and vertical phase advance between transverse deflecting 1325 ! cavity and OTR30 USE, (L0b,LCLS) SAVEBETA, TBC2, BX24A SAVEBETA, TTCAV, TCAV3[1] 1330 SAVEBETA, TDL2, BX31A[1] SAVEBETA, TOTR30, OTR30 TWISS, BETA0=TWSS0 ! horizontal phase advance between last BC2 bend and first bend of DL2 1335 ! system (want 2N*pi, N=0,1,2,...) VALUE, 360*(TDL2[MUX]-TBC2[MUX]-3) ! vertical phase advance from transverse deflecting cavity to OTR30 (want 1340 ! (2N+1)*(pi/2), N=0,1,2,...) VALUE, 360*(TOTR30[MUY]-TTCAV[MUY]-3) ! twiss at OTR30, including horizontal eta/beta ratio 1345 VALUE, TOTR30[BETY],TOTR30[BETX],TOTR30[DX],TOTR30[DX]/TOTR30[BETX] ENDCOMMENT 1350 ! ------------------------------------------------------------------------------ COMMENT BEAM, ENERGY=E00 USE, (GUNL0a,L0b,LCLS) 1355 SAVEBETA, TWSSM, DBMARK29 TWISS, CHROM, BETA0=TWSSC, TAPE="chrom1.tape" BEAM, ENERGY=TWSSM[ENERGY] USE, BSYLTU PRINT, FULL 1360 TWISS, CHROM, SAVE, TAPE="chrom2.tape", & BETX=TWSSM[BETX], ALFX=TWSSM[ALFX], BETY=TWSSM[BETY], ALFY=TWSSM[ALFY] PLOT, TABLE=TWISS, HAXIS=S, VAXIS=WX,WY, & STYLE=100, SPLINE=.F., FILE="LCLS" !PLOT, TABLE=TWISS, HAXIS=S, VAXIS=BETX,BETY, & 1365 ! STYLE=100, SPLINE=.T., FILE="LCLS" ! RANGE=DL1beg/#E, TITLE="Cathode to Main Dump" STOP ENDCOMMENT 1370 ! ------------------------------------------------------------------------------ STOP ZEND. 16 Warning messages, 0 Error messages. MAD terminated on 24/01/18 at 11.15.47 MZEND. Usage statistics for 1 dynamic stores. Map of store 0 / / ------------------------ Division Number of times Kind Max-size Garb-coll. Mode Position used allowed Wiped user auto Pushd Redcd 1 QDIV1 0 1 9 63728 56000006 21 0 0 40 0 2 QDIV2 1 1 55999606 1179965 56000006 0 0 0 0 0 20 system 1 8 56000006 111 56000006 0 0 0 0 0