{"text_format":"1","workbook":"xlsx","n_sheets":3,"sheets":["data","InFile","MadXFile"],"not_rendered":{"charts":0,"images":0,"macros":1,"external_links":0,"defined_names":1,"comments":1,"pivot_tables":0},"unopened":[],"bounds":{"document_bytes":16777216,"sheet_cells":100000,"rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096},"cells_cut":0,"cells_raw":0,"read":"whole","date_system":"1900"}

{"sheet":"data","index":0,"n_rows":48,"n_cols":16,"rows_kept":48,"cut":false,"hidden":false,"merged":[[9,5,13,14],[15,12,15,13],[0,4,0,5],[1,4,1,5],[2,4,2,5],[3,4,3,5],[43,3,43,5],[30,10,30,13],[36,9,37,9],[28,7,28,13],[38,3,40,9],[36,3,36,7],[37,3,37,7],[35,3,35,9]]}
["Initial Energy (MeV)",160,null,null,"Path To IN File:",null,"c:\\mad-x\\"]
["Particle Mass (MeV/c2)",939.29300000000001,null,null,"                IN File:",null,"TransferLine.in"]
["Charge",-1,null,null,"           MadXFile:",null,{"$f":"LEFT(G2,LEN(G2)-3)","v":"TransferLine"},".madx"]
["File Name:","TL",null,null,"Results Folder:",null,"c:\\mad-x\\"]
["Frequency of RF",352.21]
["Gap Length (Default Zero)",0]
["Emit. X. Norm (m.rad)",3.0000000000000001E-6]
["Emit. Y. Norm (m.rad)",3.0000000000000001E-6]
["Sigma T",1]
["Sigma E",1,null,null,null,"To name the elements correctly, define the \"Machine\", \"Machine Sector\" and \"Girders\" positions in your .IN file by adding the following commands to your line where they start:"]
["Beam Particle","H-"]
["Skip the Cavities","Yes"]
[]
["Alpha X",3,null,null,null,null,null,null,null,null,null,null,null,null,null,"Yes"]
["Beta X",0.42,null,null,null,"C","MSG","Machine","Sector","Girder",null,null,null,null,null,"No"]
[null,null,null,null,null,null,null,null,null,null,null,null,"Machine Sectors"]
["Alpha Y",-1.23,null,null,null,"Example: LINAC4 DTL Tank 1:",null,null,null,null,null,null,"Low Energy","L"]
["Beta Y",0.4,null,null,null,null,"C","MSGN","L4","D",1,null,"DTL","D"]
[null,null,null,null,null,null,null,null,null,null,null,null,"CCDTL","C"]
["Skip the Drifts in the Sequence?","No",null,null,null,"Example: LINAC4 PIMS Tank 3:",null,null,null,null,null,null,"PIMS","P"]
["Permanent Quads","No",null,null,null,null,"C","MSGN","L4","P",3,null,"TransferLine","L"]
["Would you like to remove the empty lines too?","No"]
[null,null,null,null,null,"Example: LINAC4 Transferline Girder 2:"]
[null,null,null,null,null,null,"C","MSGN","L4","T",2]
["Would you like to change the default naming?","Yes"]
["New Naming Convention",null,null,null,null,"Example: LINAC4 Chopper Girder 1:"]
["Drifts","DR",null,null,null,null,"C","MSGN","L4","L",1]
["Dipoles","B"]
["Vertical","VR",null,null,null,null,null,"A Marker can be added at any position by:"]
["Horizontal","HZ"]
["Quadrupoles","MQ",null,null,null,"C","MARK","NameOfMarker",null,null,"A Marker whose name starts with M__ will be ploted as a 1m diameter disc"]
["Permanent Quad","PQ"]
["Focusing","F"]
["Defocusing","D"]
["Solenoids","S"]
["Cavities","CV",null," Keeping the Old names as in Travel File"]
["Steerers","MCHV",null,"Would you like to Keep the same names?",null,null,null,null,"No",{"$f":"IF(AND(I37=\"Yes\", I38=\"Yes\"), \"Yes\", \"\")","v":""}]
["Screens","BPM",null,{"$f":"IF(I37=\"Yes\", \"Are you sure?\", \"\")","v":""},null,null,null,null,"No"]
["Separator",".",null,{"$f":" IF( J37=\"Yes\", \"Check for NON_MAD-X separators in the names, otherwise may get problems in MAD-X!\", \"Generating New Names!\")","v":"Generating New Names!"}]
["Girder Progression number separator"]
["Marker","M__"]
[]
[]
[null,null,null,"Initial Line Coordinates"]
["Name of User","M. Eshraqi",null,"Angle (a1)",344.51280000000003,"Gradian"]
[null,null,null,"z(0)",1968.34337,"m"]
[null,null,null,"x(0)",1892.9020499999999,"m"]
[null,null,null,"y(0)",2431.1606200000001,"m"]

{"sheet":"InFile","index":1,"n_rows":628,"n_cols":16,"rows_kept":628,"cut":false,"hidden":false,"merged":[]}
["C","MSGN","L4","D",1,null,"This line will set the following structure as the L4, Dtl, 1st Tank"]
[24,65,0,0,0,0,0,0,0,0,";"]
[7,0,0,0,0,0,0,"initial beam jitter",";"]
[15,1.6,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.118837,"Drift Q20-1",";"]
[15,1.6,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.1,-80,100,0,0,0,0,"Q scl 20",";"]
[15,1.6,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.11830499999999999,"Drift 0001",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,4,";"]
[3,1,"Drift 0002-a",";"]
[7,0,0,0,0,0,0,"steerer2",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,4,";"]
[3,1,"Drift 0002-b",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.80700000000000005,"Drift 0003",";"]
[23,1,";"]
[3,0.35221999999999998,"Delta B",";"]
[15,0,0,0,0,5,2.5,";"]
[13,1,0,";"]
[23,2,";"]
[17,1,";"]
[4,1,-11.63693,0,0,2.5,1,0,0,1,0,0,2.8,0.45,"To Right 1",";"]
[17,0,";"]
[23,1,";"]
[3,0.35221999999999998,"Delta B",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,10,";"]
[3,5.3853,"Drift 1001",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,45.456969999999998,100,0,0,0,0,"Quad H Acro",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.5,"Drift 1002",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,-50.84516,100,0,0,0,0,"Quad H Acro Mid",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.5,"Drift 1003",";"]
[23,1,";"]
[3,0.25,"Drift Quad Null",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,10,";"]
[3,4.9852999999999996,"Drift 1004",";"]
[23,1,";"]
[3,0.35221999999999998,"Delta B",";"]
[15,0,0,0,0,5,2.5,";"]
[13,1,0,";"]
[23,2,";"]
[17,1,";"]
[4,1,-11.63693,0,0,2.5,1,0,0,1,0,0,2.8,0.45,"To Right 2",";"]
[17,0,";"]
[23,1,";"]
[3,0.35221999999999998,"Delta B",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,4,";"]
[3,1.93,"Drift 2001",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,39.991610000000001,100,0,0,0,0,"Quad 2001",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.5,"Drift 2002",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,-52.502899999999997,100,0,0,0,0,"Quad 2002",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,2,";"]
[3,1,"Drift 2003",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,18,";"]
[3,9.3000000000000007,"Drift 2004",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,26.2,100,0,0,0,0,"Quad 2003",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.5,"Drift 2005",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,-26.2,100,0,0,0,0,"Quad 2004",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.5,"Drift 2006",";"]
[15,3.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.5,"pre-buncher",";"]
[15,3.5,0,0,0,0,0,";"]
[13,1,0,";"]
[22,0.7,1.5707963267949001,1,0,"Buncher Cavity 3",";"]
[15,3.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.5,"post-buncher",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,18,";"]
[3,8.8000000000000007,"Drift 2007",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,-8.8268799999999992,100,0,0,0,0,"Quad 2005",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.5,"Drift 2008",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,15.88724,100,0,0,0,0,"Quad 2006",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,2,";"]
[3,1,"Drift 2009-a",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,4,";"]
[3,2,"Drift 2009-b",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,-46,100,0,0,0,0,"Quad 2007",";"]
[15,0,0,0,0,5,7,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.5,"Drift 2010",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,46,100,0,0,0,0,"Quad 2008",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,2,";"]
[3,1,"Drift 2011-a",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,6,";"]
[3,3,"Drift 2011-b",";"]
[20,90.000000000000298,"Clockwise",";"]
[15,0,0,0,0,5,2.5,";"]
[13,1,0,";"]
[23,1,";"]
[17,1,";"]
[4,0.92354000000000003,-9.9895499999999995,0,0,2.5,1,-3.5,0,1,-3.5,0,2.8,0.45,"vertical-up",";"]
[17,0,";"]
[20,-90.000000000000298,"C-Clockwise",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,2,";"]
[3,1.32,"Drift 3001",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,151.19999999999999,100,0,0,0,0,"Quad V Acro",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.52,"Drift 3002",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,-141.69999999999999,100,0,0,0,0,"Quad V Acro Mid",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.52,"Drift 3003",";"]
[23,1,";"]
[5,0.25,151.19999999999999,100,0,0,0,0,"Quad V Acro2",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,2,";"]
[3,1.32,"Drift 3004",";"]
[20,90.000000000000298,"Clockwise",";"]
[20,180,180,";"]
[15,0,0,0,0,5,2.5,";"]
[13,1,0,";"]
[23,1,";"]
[17,1,";"]
[4,0.92354000000000003,-9.9895499999999995,0,0,2.5,1,-3.5,0,1,-3.5,0,2.8,0.45,"vertical-level",";"]
[17,0,";"]
[20,180,180,";"]
[20,-90.000000000000298,"C-Clockwise",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,4,";"]
[3,1.25,"Drift 4001",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,-9.9949100000000008,100,0,0,0,0,"Quad 4001",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.5,"Drift 4002",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,44.596789999999999,100,0,0,0,0,"Quad 4002",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,6,";"]
[3,1.56,"Drift 4003",";"]
[23,1,";"]
[5,0.25,-50.043419999999998,100,0,0,0,0,"Quad 4003",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.5,"Drift 4004",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.25,22.994810000000001,100,0,0,0,0,"Quad 4004",";"]
[15,5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,7,";"]
[3,6,"Drift 4005",";"]
[20,180,180,";"]
[15,0,0,0,0,7.5,5,";"]
[13,1,0,";"]
[23,1,";"]
[17,1,";"]
[4,1.093623309,-7.3000550000000004,0,0,5,1,12,0,1,12,0,2.8,0.45,"BHZ20",";"]
[17,0,";"]
[20,180,180,";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,12,";"]
[3,5.96,"Drift 5001",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.255,10.69018,100,0,0,0,0,"QFN50",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,4,";"]
[3,2.1212499999999999,"Drift 5002-a",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,4,";"]
[3,1.1599999999999999,"Drift 5002-b",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,4,";"]
[3,0.65874999999999995,"Drift 5002-c",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.255,-16.716419999999999,100,0,0,0,0,"QDN55",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,9,";"]
[3,4.6139999999999999,"Drift 5003",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.255,24.50442,100,0,0,0,0,"QFN60",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,3,";"]
[3,1.67,"Drift 5004",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.255,-16.496279999999999,100,0,0,0,0,"QDN65",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,9,";"]
[3,4.7679999999999998,"Drift 5005",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.46700000000000003,2.5010400000000002,100,0,0,0,0,"QFW70",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,6,";"]
[3,3.0249999999999999,"Drift 5006",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.255,-9.0067599999999999,100,0,0,0,0,"QDN75",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,2,";"]
[3,0.84250000000000003,"Drift 5007-a",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,3,";"]
[3,1.4,"Drift 5007-b",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,2,";"]
[3,0.98850000000000005,"Drift 5007-c",";"]
[20,180,180,";"]
[15,0,0,0,0,7.5,5,";"]
[13,1,0,";"]
[23,1,";"]
[17,1,";"]
[4,1.00600778,-7.2443289999999996,0,0,5,1,11,0,1,11,0,2.8,0.45,"BHZ30",";"]
[17,0,";"]
[20,180,180,";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,2,";"]
[3,0.68961099999999997,"Drift 6001-a",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.31038900000000003,"Drift 6001-b",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,7,";"]
[3,2.6859999999999999,"Drift 6002",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.255,-7.9973999999999998,100,0,0,0,0,"QFN10",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.73799999999999999,"Drift 6003",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.255,1.9985200000000001,100,0,0,0,0,"QDN20",";"]
[15,4.5,0,0,0,0,0,";"]
[13,1,0,";"]
[23,2,";"]
[3,1,"Drift 6004",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,1.2500000000000001E-2,"Drift 6005-a",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.71,"Drift 6005-b",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,15,";"]
[3,6.4930000000000003,"Drift 6005-c",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.51,"Drift 6005-d",";"]
[7,0,0,0,0,0,0,"steererDL30",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.66949999999999998,"Drift 6005-e",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.46100000000000002,-16.00592,100,0,0,0,0,"QFW30",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.53900000000000003,"Drift 6006",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.46100000000000002,14.002359999999999,100,0,0,0,0,"QDW40",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,18,";"]
[3,9.09,"Drift 6007",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.46100000000000002,-8.1985299999999999,100,0,0,0,0,"QFW50",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.83899999999999997,"Drift 6008",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.46100000000000002,7.5071700000000003,100,0,0,0,0,"QDW60",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,2,";"]
[3,0.41949999999999998,"Drift 6009-a",";"]
[7,0,0,0,0,0,0,"steererDL40",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,2,";"]
[3,0.4965,"Drift 6009-b",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.65900000000000003,"Drift 6010",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,2,";"]
[3,0.9,"BHZ40",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,12,";"]
[3,6.22,"Drift 7001-a",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,12,";"]
[3,0.28499999999999998,"Drift 7001-b",";"]
[7,0,0,0,0,0,0,"steererDVT20",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,12,";"]
[3,6,"Drift 7001-c",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.46200000000000002,-10.70505,100,0,0,0,0,"BI.QN10",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.53800000000000003,"Drift 7002",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.46200000000000002,9.0039200000000008,100,0,0,0,0,"BI.QN20",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,11,";"]
[3,5.5149999999999997,"Drift 7003-a",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,4,";"]
[3,2,"Drift 7003-b",";"]
[7,0,0,0,0,0,0,"steererDVT30",";"]
[20,90.000000000000298,"Clockwise",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[17,1,";"]
[4,0.3,0,0,0,7.5,1,0,0,1,0.1226072,0,2.8,0.45,"DVT30",";"]
[17,0,";"]
[20,-90.000000000000298,"C-Clockwise",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,2,";"]
[3,1.0389999999999999,"Drift D 001",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.46200000000000002,-7.9925600000000001,100,0,0,0,0,"BI.QN30",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.26900000000000002,"Drift D 002",";"]
[20,90.000000000000298,"Clockwise",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[17,1,";"]
[4,0.3,0,0,0,7.5,1,0.1476111,0,1,-4.29661E-2,0,2.8,0.45,"DVT30-b",";"]
[17,0,";"]
[20,-90.000000000000298,"C-Clockwise",";"]
[7,0,0,0,0,0,0,"steererDVT30-b",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.26900000000000002,"Drift D 003",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.46200000000000002,10.20903,100,0,0,0,0,"BI-QN40",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.3,"Drift D 004",";"]
[20,90.000000000000298,"Clockwise",";"]
[15,0,0,0,0,5,2.5,";"]
[13,1,0,";"]
[23,1,";"]
[17,1,";"]
[4,0.4,0,0,0,7.5,0,0,0,0,0,0,2.8,0.45,"DIS-0 R3",";"]
[17,0,";"]
[15,0,0,0,0,5,2.5,";"]
[13,1,0,";"]
[23,1,";"]
[17,1,";"]
[4,0.4,0,0,0,7.5,0,0,0,0,0,0,2.8,0.45,"DIS-1 R3",";"]
[17,0,";"]
[15,0,0,0,0,5,2.5,";"]
[13,1,0,";"]
[23,1,";"]
[17,1,";"]
[4,0.4,0,0,0,7.5,0,0,0,0,0,0,2.8,0.45,"DIS-2 R3",";"]
[17,0,";"]
[15,0,0,0,0,5,2.5,";"]
[13,1,0,";"]
[23,1,";"]
[17,1,";"]
[4,0.4,0,0,0,7.5,1,0,0,1,0.2091296,0,2.8,0.45,"DIS-3 R3",";"]
[17,0,";"]
[15,0,0,0,0,5,2.5,";"]
[13,1,0,";"]
[23,1,";"]
[17,1,";"]
[4,0.4,0,0,0,7.5,1,-0.2091296,0,1,0.41654032000000002,0,2.8,0.45,"DIS-4 R3",";"]
[17,0,";"]
[20,-90.000000000000298,"C-Clockwise",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.15,"Drift D 005",";"]
[20,90.000000000000298,"Clockwise",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[17,1,";"]
[4,0.3,0,0,0,7.5,1,0.41654032000000002,0,1,0,0,2.8,0.45,"DVT40 R3",";"]
[17,0,";"]
[20,-90.000000000000298,"C-Clockwise",";"]
[7,0,0,0,0,0,0,"steererDVT40",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,13,";"]
[3,6.57,"Drift DS 001",";"]
[20,90.000000000000298,"Clockwise",";"]
[15,0,0,0,0,1.5,3.4,";"]
[13,1,0,";"]
[23,2,";"]
[17,1,";"]
[4,0.96,0,0,0,7.5,0,0,0,0,0,0,2.8,0.45,"SMV1 R3",";"]
[17,0,";"]
[20,-90.000000000000298,"C-Clockwise",";"]
[15,3.3,0,0,0,0,0,";"]
[13,1,0,";"]
[23,4,";"]
[3,0.36,"Drift S 001",";"]
[20,90.000000000000298,"Clockwise",";"]
[15,0,0,0,0,1.5,3.4,";"]
[13,1,0,";"]
[23,2,";"]
[17,1,";"]
[4,0.96,0,0,0,7.5,0,0,0,0,0,0,2.8,0.45,"SMV2-4 R3",";"]
[17,0,";"]
[20,-90.000000000000298,"C-Clockwise",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,3,";"]
[3,1.5449999999999999,"Drift S 002",";"]
[20,90.000000000000298,"Clockwise",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[17,1,";"]
[4,0.73499999999999999,0,0,0,7.5,0,0,0,0,0,0,2.8,0.45,"BVT R3",";"]
[17,0,";"]
[20,-90.000000000000298,"C-Clockwise",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.3,"Drift S 003",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.46600000000000003,-21,100,0,0,0,0,"BI-QN50",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.28399999999999997,"Drift S 004",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[5,0.46600000000000003,22,100,0,0,0,0,"BI-QN60",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.46300000000000002,"Drift S 005-a",";"]
[7,0,0,0,0,0,0,"steererDVT50-uneffective",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,1,";"]
[3,0.4,"Drift S 005-b",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,5,";"]
[3,2.6,"Drift S 005-c",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,4,";"]
[3,2,"Drift S 006-a",";"]
[15,7,0,0,0,0,0,";"]
[13,1,0,";"]
[23,5,";"]
[3,2.4529999999999998,"Drift S 006-b",";"]
[7,0,0,0,0,0,0,"Final Shift",";"]
[33,1,"'screen'",";"]
["SENTINEL"]
["SENTINEL"]
["SENTINEL"]
["SENTINEL"]
["SENTINEL"]
["SENTINEL"]
["SENTINEL"]
["SENTINEL"]

{"sheet":"MadXFile","index":2,"n_rows":476,"n_cols":10,"rows_kept":476,"cut":false,"hidden":false,"merged":[]}
["!-----------------------------------------------------------------  MAD-X  -----------------------------------------------------------------",null,null,null,null,null,null,null,null,477]
["!-----------------------------------------------------------------   TL   ------------------------------------------------------------------"]
["!-------------------------------------------------------------------------------------------------------------------------------------------"]
["!   File:TL"]
["!"]
["!   Converted from the TransferLine.in file"]
["!   Date : 08-Mar-10"]
["!   Converted from Travel by: M. Eshraqi"]
["!",null,null,null,null,null,null,null,"File Converted"]
["!-----------------------------------------------------------     Beam Parameters    --------------------------------------------------------"]
["BEAM, MASS = 0.939293, GAMMA = 1.1703408840479, CHARGE = -1, ENERGY = 1.099293"]
[", EXN = 0.000003, EYN = 0.000003, SIGT = 1, SIGE = 1;"]
[]
[" 'set,  format = \"-21s\";"]
[" 'set,  format = \"10.6e\";"]
[]
["!------------------------------------------------------------     TL sequence   ------------------------------------------------------------"]
["! Optical Properties of the Elements"]
[]
["!-------------------------------------------------------------------------------------------------------------------------------------------"]
["!-----------------------------------------------------------       WARNING!!      ----------------------------------------------------------"]
["!-------------------------------------------------------------------------------------------------------------------------------------------"]
[]
["!            Elements other than Drifts, Solenoids, Quads, Bends, Gaps, Beam Rotations, Steerers, and Screens will not be converted!!"]
["!            Make Sure that every vertical dipole in the imput file is sandwiched between a 90 and -90 degrees beam rotation!!"]
[]
["!-------------------------------------------------------------------------------------------------------------------------------------------"]
["!    Naming:  Machine.Strt_ElemType_GirderNo_ElemNo and is defined by a (C      MSGN) [M]achine [S]tructure [G]irder[N]umber in the .IN file."]
["!    Naming:  A Marker can be added at any place by adding a line (C     MARK) in the InFile."]
["!-------------------------------------------------------------------------------------------------------------------------------------------"]
["! MAD-X Optical Properties of the Elements"]
["L4D.DR.0101",": DRIFT, L = ",0.118837,";"]
["L4D.MQF.0101",": QUADRUPOLE, L = ",0.1,",K1 = 4.19944126874223;"]
["L4D.DR.0102",": DRIFT, L = ",0.11830499999999999,";"]
["L4D.DR.0103",": DRIFT, L = ",1,";"]
[" 'L4D.MCHV.0101",": CORRECT, FLAG = Line;"]
["L4D.DR.0104",": DRIFT, L = ",1,";"]
["L4D.DR.0105",": DRIFT, L = ",0.80700000000000005,";"]
["L4D.DR.0106",": DRIFT, L = ",0.35221999999999998,";"]
["L4D.BHZ.0101",": SBEND, L = ",1,",ANGLE = 0.610857551043306,TILT=0,K0=0,K0S=0,K1=0,E1=0,E2=0,FINT=0.5, FINTX=0,HGAP=0.025,K2=0,H1=0,H2=0; !34.9995595483383"]
["L4D.DR.0107",": DRIFT, L = ",0.35221999999999998,";"]
["L4D.DR.0108",": DRIFT, L = ",5.3853,";"]
["L4D.MQD.0102",": QUADRUPOLE, L = ",0.25,",K1 = -2.38617344712472;"]
["L4D.DR.0109",": DRIFT, L = ",0.5,";"]
["L4D.MQF.0103",": QUADRUPOLE, L = ",0.25,",K1 = 2.66901579024752;"]
["L4D.DR.0110",": DRIFT, L = ",0.5,";"]
["L4D.DR.0111",": DRIFT, L = ",0.25,";"]
["L4D.DR.0112",": DRIFT, L = ",4.9852999999999996,";"]
["L4D.DR.0113",": DRIFT, L = ",0.35221999999999998,";"]
["L4D.BHZ.0102",": SBEND, L = ",1,",ANGLE = 0.610857551043306,TILT=0,K0=0,K0S=0,K1=0,E1=0,E2=0,FINT=0.5, FINTX=0,HGAP=0.025,K2=0,H1=0,H2=0; !34.9995595483383"]
["L4D.DR.0114",": DRIFT, L = ",0.35221999999999998,";"]
["L4D.DR.0115",": DRIFT, L = ",1.93,";"]
["L4D.MQD.0104",": QUADRUPOLE, L = ",0.25,",K1 = -2.09928021796805;"]
["L4D.DR.0116",": DRIFT, L = ",0.5,";"]
["L4D.MQF.0105",": QUADRUPOLE, L = ",0.25,",K1 = 2.75603556235808;"]
["L4D.DR.0117",": DRIFT, L = ",1,";"]
["L4D.DR.0118",": DRIFT, L = ",9.3000000000000007,";"]
["L4D.MQD.0106",": QUADRUPOLE, L = ",0.25,",K1 = -1.37531701551308;"]
["L4D.DR.0119",": DRIFT, L = ",0.5,";"]
["L4D.MQF.0107",": QUADRUPOLE, L = ",0.25,",K1 = 1.37531701551308;"]
["L4D.DR.0120",": DRIFT, L = ",0.5,";"]
["L4D.DR.0121",": DRIFT, L = ",0.5,";"]
[" 'L4D.CV.0101",": RFCAVITY, L = 0, VOLT = ",700000,", LAG = 0.245636676870014, FREQ = 352.21;"]
["L4D.DR.0122",": DRIFT, L = ",0.5,";"]
["L4D.DR.0123",": DRIFT, L = ",8.8000000000000007,";"]
["L4D.MQF.0108",": QUADRUPOLE, L = ",0.25,",K1 = 0.46444580002178;"]
["L4D.DR.0124",": DRIFT, L = ",0.5,";"]
["L4D.MQD.0109",": QUADRUPOLE, L = ",0.25,",K1 = -0.83594224595078;"]
["L4D.DR.0125",": DRIFT, L = ",1,";"]
["L4D.DR.0126",": DRIFT, L = ",2,";"]
["L4D.MQF.0110",": QUADRUPOLE, L = ",0.25,",K1 = 2.42039166738438;"]
["L4D.DR.0127",": DRIFT, L = ",0.5,";"]
["L4D.MQD.0111",": QUADRUPOLE, L = ",0.25,",K1 = -2.42039166738438;"]
["L4D.DR.0128",": DRIFT, L = ",1,";"]
["L4D.DR.0129",": DRIFT, L = ",3,";"]
["L4D.BVR.0103",": SBEND, L = ",0.92354000000000003,",ANGLE = 0.485433174389621,TILT=-1.57079632725001,K0=0,K0S=0,K1=0,E1=-0.0610865238375,E2=-0.0610865238375,FINT=0.5, FINTX=0,HGAP=0.025,K2=0,H1=0,H2=0; !27.8132721201051"]
["L4D.DR.0130",": DRIFT, L = ",1.32,";"]
["L4D.MQD.0112",": QUADRUPOLE, L = ",0.25,",K1 = -7.95572217627215;"]
["L4D.DR.0131",": DRIFT, L = ",0.52,";"]
["L4D.MQF.0113",": QUADRUPOLE, L = ",0.25,",K1 = 7.45585867974711;"]
["L4D.DR.0132",": DRIFT, L = ",0.52,";"]
["L4D.MQD.0114",": QUADRUPOLE, L = ",0.25,",K1 = -7.95572217627215;"]
["L4D.DR.0133",": DRIFT, L = ",1.32,";"]
["L4D.BVR.0104",": SBEND, L = ",0.92354000000000003,",ANGLE = 0.485433174389621,TILT=-4.71238898175001,K0=0,K0S=0,K1=0,E1=-0.0610865238375,E2=-0.0610865238375,FINT=0.5, FINTX=0,HGAP=0.025,K2=0,H1=0,H2=0; !27.8132721201051"]
["L4D.DR.0134",": DRIFT, L = ",1.25,";"]
["L4D.MQF.0115",": QUADRUPOLE, L = ",0.25,",K1 = 0.525904280005584;"]
["L4D.DR.0135",": DRIFT, L = ",0.5,";"]
["L4D.MQD.0116",": QUADRUPOLE, L = ",0.25,",K1 = -2.34655867191503;"]
["L4D.DR.0136",": DRIFT, L = ",1.56,";"]
["L4D.MQF.0117",": QUADRUPOLE, L = ",0.25,",K1 = 2.63314514729168;"]
["L4D.DR.0137",": DRIFT, L = ",0.5,";"]
["L4D.MQD.0118",": QUADRUPOLE, L = ",0.25,",K1 = -1.20992275037146;"]
["L4D.DR.0138",": DRIFT, L = ",6,";"]
["L4D.BHZ.0105",": SBEND, L = ",1.093623309,",ANGLE = 0.420070039535995,TILT=-3.1415926545,K0=0,K0S=0,K1=0,E1=0.2094395103,E2=0.2094395103,FINT=0.5, FINTX=0,HGAP=0.05,K2=0,H1=0,H2=0; !24.0682403583329"]
["L4D.DR.0139",": DRIFT, L = ",5.96,";"]
["L4D.MQD.0119",": QUADRUPOLE, L = ",0.255,",K1 = -0.562487447713896;"]
["L4D.DR.0140",": DRIFT, L = ",2.1212499999999999,";"]
["L4D.DR.0141",": DRIFT, L = ",1.1599999999999999,";"]
["L4D.DR.0142",": DRIFT, L = ",0.65874999999999995,";"]
["L4D.MQF.0120",": QUADRUPOLE, L = ",0.255,",K1 = 0.879571384271689;"]
["L4D.DR.0143",": DRIFT, L = ",4.6139999999999999,";"]
["L4D.MQD.0121",": QUADRUPOLE, L = ",0.255,",K1 = -1.2893542170019;"]
["L4D.DR.0144",": DRIFT, L = ",1.67,";"]
["L4D.MQF.0122",": QUADRUPOLE, L = ",0.255,",K1 = 0.867988231626949;"]
["L4D.DR.0145",": DRIFT, L = ",4.7679999999999998,";"]
["L4D.MQD.0123",": QUADRUPOLE, L = ",0.46700000000000003,",K1 = -0.131597747299892;"]
["L4D.DR.0146",": DRIFT, L = ",3.0249999999999999,";"]
["L4D.MQF.0124",": QUADRUPOLE, L = ",0.255,",K1 = 0.473910583785456;"]
["L4D.DR.0147",": DRIFT, L = ",0.84250000000000003,";"]
["L4D.DR.0148",": DRIFT, L = ",1.4,";"]
["L4D.DR.0149",": DRIFT, L = ",0.98850000000000005,";"]
["L4D.BHZ.0106",": SBEND, L = ",1.00600778,",ANGLE = 0.383466405306061,TILT=-3.1415926545,K0=0,K0S=0,K1=0,E1=0.191986217775,E2=0.191986217775,FINT=0.5, FINTX=0,HGAP=0.05,K2=0,H1=0,H2=0; !21.9710066027247"]
["L4D.DR.0150",": DRIFT, L = ",0.68961099999999997,";"]
["L4D.DR.0151",": DRIFT, L = ",0.31038900000000003,";"]
["L4D.DR.0152",": DRIFT, L = ",2.6859999999999999,";"]
["L4D.MQF.0125",": QUADRUPOLE, L = ",0.255,",K1 = 0.420800876537823;"]
["L4D.DR.0153",": DRIFT, L = ",0.73799999999999999,";"]
["L4D.MQD.0126",": QUADRUPOLE, L = ",0.255,",K1 = -0.105156546850023;"]
["L4D.DR.0154",": DRIFT, L = ",1,";"]
["L4D.DR.0155",": DRIFT, L = ",1.2500000000000001E-2,";"]
["L4D.DR.0156",": DRIFT, L = ",0.71,";"]
["L4D.DR.0157",": DRIFT, L = ",6.4930000000000003,";"]
["L4D.DR.0158",": DRIFT, L = ",0.51,";"]
[" 'L4D.MCHV.0102",": CORRECT, FLAG = Line;"]
["L4D.DR.0159",": DRIFT, L = ",0.66949999999999998,";"]
["L4D.MQF.0127",": QUADRUPOLE, L = ",0.46100000000000002,",K1 = 0.842186856452632;"]
["L4D.DR.0160",": DRIFT, L = ",0.53900000000000003,";"]
["L4D.MQD.0128",": QUADRUPOLE, L = ",0.46100000000000002,",K1 = -0.7367651188634;"]
["L4D.DR.0161",": DRIFT, L = ",9.09,";"]
["L4D.MQF.0129",": QUADRUPOLE, L = ",0.46100000000000002,",K1 = 0.431383776017411;"]
["L4D.DR.0162",": DRIFT, L = ",0.83899999999999997,";"]
["L4D.MQD.0130",": QUADRUPOLE, L = ",0.46100000000000002,",K1 = -0.395006341600827;"]
["L4D.DR.0163",": DRIFT, L = ",0.41949999999999998,";"]
[" 'L4D.MCHV.0103",": CORRECT, FLAG = Line;"]
["L4D.DR.0164",": DRIFT, L = ",0.4965,";"]
["L4D.DR.0165",": DRIFT, L = ",0.65900000000000003,";"]
["L4D.DR.0166",": DRIFT, L = ",0.9,";"]
["L4D.DR.0167",": DRIFT, L = ",6.22,";"]
["L4D.DR.0168",": DRIFT, L = ",0.28499999999999998,";"]
[" 'L4D.MCHV.0104",": CORRECT, FLAG = Line;"]
["L4D.DR.0169",": DRIFT, L = ",6,";"]
["L4D.MQF.0131",": QUADRUPOLE, L = ",0.46200000000000002,",K1 = 0.563269865628983;"]
["L4D.DR.0170",": DRIFT, L = ",0.53800000000000003,";"]
["L4D.MQD.0132",": QUADRUPOLE, L = ",0.46200000000000002,",K1 = -0.4737611509086;"]
["L4D.DR.0171",": DRIFT, L = ",5.5149999999999997,";"]
["L4D.DR.0172",": DRIFT, L = ",2,";"]
[" 'L4D.MCHV.0105",": CORRECT, FLAG = Line;"]
["L4D.BVR.0107",": SBEND, L = ",0.3,",ANGLE = 0,TILT=-1.57079632725001,K0=0,K0S=0,K1=0,E1=0,E2=2.13989932727118E-03,FINT=0.5, FINTX=0,HGAP=0.075,K2=0,H1=0,H2=0; !0"]
["L4D.DR.0173",": DRIFT, L = ",1.0389999999999999,";"]
["L4D.MQF.0133",": QUADRUPOLE, L = ",0.46200000000000002,",K1 = 0.420546209240646;"]
["L4D.DR.0174",": DRIFT, L = ",0.26900000000000002,";"]
["L4D.BVR.0108",": SBEND, L = ",0.3,",ANGLE = 0,TILT=-1.57079632725001,K0=0,K0S=0,K1=0,E1=2.57629970823703E-03,E2=-7.49899911958403E-04,FINT=0.5, FINTX=0,HGAP=0.075,K2=0,H1=0,H2=0; !0"]
[" 'L4D.MCHV.0106",": CORRECT, FLAG = Line;"]
["L4D.DR.0175",": DRIFT, L = ",0.26900000000000002,";"]
["L4D.MQD.0134",": QUADRUPOLE, L = ",0.46200000000000002,",K1 = -0.537170677045157;"]
["L4D.DR.0176",": DRIFT, L = ",0.3,";"]
["L4D.BVR.0109",": SBEND, L = ",0.4,",ANGLE = 0,TILT=-1.57079632725001,K0=0,K0S=0,K1=0,E1=0,E2=0,FINT=0.5, FINTX=0,HGAP=0.075,K2=0,H1=0,H2=0; !0"]
["L4D.BHZ.0110",": SBEND, L = ",0.4,",ANGLE = 0,TILT=0,K0=0,K0S=0,K1=0,E1=0,E2=0,FINT=0.5, FINTX=0,HGAP=0.075,K2=0,H1=0,H2=0; !0"]
["L4D.BHZ.0111",": SBEND, L = ",0.4,",ANGLE = 0,TILT=0,K0=0,K0S=0,K1=0,E1=0,E2=0,FINT=0.5, FINTX=0,HGAP=0.075,K2=0,H1=0,H2=0; !0"]
["L4D.BHZ.0112",": SBEND, L = ",0.4,",ANGLE = 0,TILT=0,K0=0,K0S=0,K1=0,E1=0,E2=3.65000008443624E-03,FINT=0.5, FINTX=0,HGAP=0.075,K2=0,H1=0,H2=0; !0"]
["L4D.BHZ.0113",": SBEND, L = ",0.4,",ANGLE = 0,TILT=0,K0=0,K0S=0,K1=0,E1=-3.65000008443624E-03,E2=7.27000005341711E-03,FINT=0.5, FINTX=0,HGAP=0.075,K2=0,H1=0,H2=0; !0"]
["L4D.DR.0177",": DRIFT, L = ",0.15,";"]
["L4D.BVR.0114",": SBEND, L = ",0.3,",ANGLE = 0,TILT=-1.57079632725001,K0=0,K0S=0,K1=0,E1=7.27000005341711E-03,E2=0,FINT=0.5, FINTX=0,HGAP=0.075,K2=0,H1=0,H2=0; !0"]
[" 'L4D.MCHV.0107",": CORRECT, FLAG = Line;"]
["L4D.DR.0178",": DRIFT, L = ",6.57,";"]
["L4D.BVR.0115",": SBEND, L = ",0.96,",ANGLE = 0,TILT=-1.57079632725001,K0=0,K0S=0,K1=0,E1=0,E2=0,FINT=0.5, FINTX=0,HGAP=0.075,K2=0,H1=0,H2=0; !0"]
["L4D.DR.0179",": DRIFT, L = ",0.36,";"]
["L4D.BVR.0116",": SBEND, L = ",0.96,",ANGLE = 0,TILT=-1.57079632725001,K0=0,K0S=0,K1=0,E1=0,E2=0,FINT=0.5, FINTX=0,HGAP=0.075,K2=0,H1=0,H2=0; !0"]
["L4D.DR.0180",": DRIFT, L = ",1.5449999999999999,";"]
["L4D.BVR.0117",": SBEND, L = ",0.73499999999999999,",ANGLE = 0,TILT=-1.57079632725001,K0=0,K0S=0,K1=0,E1=0,E2=0,FINT=0.5, FINTX=0,HGAP=0.075,K2=0,H1=0,H2=0; !0"]
["L4D.DR.0181",": DRIFT, L = ",0.3,";"]
["L4D.MQF.0135",": QUADRUPOLE, L = ",0.46600000000000003,",K1 = 1.10496141337113;"]
["L4D.DR.0182",": DRIFT, L = ",0.28399999999999997,";"]
["L4D.MQD.0136",": QUADRUPOLE, L = ",0.46600000000000003,",K1 = -1.15757862353166;"]
["L4D.DR.0183",": DRIFT, L = ",0.46300000000000002,";"]
[" 'L4D.MCHV.0108",": CORRECT, FLAG = Line;"]
["L4D.DR.0184",": DRIFT, L = ",0.4,";"]
["L4D.DR.0185",": DRIFT, L = ",2.6,";"]
["L4D.DR.0186",": DRIFT, L = ",2,";"]
["L4D.DR.0187",": DRIFT, L = ",2.4529999999999998,";"]
[" 'L4D.BPM.0101",": SCREEN;"]
[]
[]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
["!                                                      MAD-X SEQUENCE FILE"]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
["select, flag=select,flag=twiss;"]
["TL: sequence, refer=Entry, L=",null,"177.351333089;"]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
["L4D.DR.0101, AT = 0;"]
["L4D.MQF.0101, AT = 0.118837;"]
["L4D.DR.0102, AT = 0.218837;"]
["L4D.DR.0103, AT = 0.337142;"]
[" 'L4D.MCHV.0101, AT = 1.337142;"]
["L4D.DR.0104, AT = 1.337142;"]
["L4D.DR.0105, AT = 2.337142;"]
["L4D.DR.0106, AT = 3.144142;"]
["L4D.BHZ.0101, AT = 3.496362;"]
["L4D.DR.0107, AT = 4.496362;"]
["L4D.DR.0108, AT = 4.848582;"]
["L4D.MQD.0102, AT = 10.233882;"]
["L4D.DR.0109, AT = 10.483882;"]
["L4D.MQF.0103, AT = 10.983882;"]
["L4D.DR.0110, AT = 11.233882;"]
["L4D.DR.0111, AT = 11.733882;"]
["L4D.DR.0112, AT = 11.983882;"]
["L4D.DR.0113, AT = 16.969182;"]
["L4D.BHZ.0102, AT = 17.321402;"]
["L4D.DR.0114, AT = 18.321402;"]
["L4D.DR.0115, AT = 18.673622;"]
["L4D.MQD.0104, AT = 20.603622;"]
["L4D.DR.0116, AT = 20.853622;"]
["L4D.MQF.0105, AT = 21.353622;"]
["L4D.DR.0117, AT = 21.603622;"]
["L4D.DR.0118, AT = 22.603622;"]
["L4D.MQD.0106, AT = 31.903622;"]
["L4D.DR.0119, AT = 32.153622;"]
["L4D.MQF.0107, AT = 32.653622;"]
["L4D.DR.0120, AT = 32.903622;"]
["L4D.DR.0121, AT = 33.403622;"]
[" 'L4D.CV.0101, AT = 33.903622;"]
["L4D.DR.0122, AT = 33.903622;"]
["L4D.DR.0123, AT = 34.403622;"]
["L4D.MQF.0108, AT = 43.203622;"]
["L4D.DR.0124, AT = 43.453622;"]
["L4D.MQD.0109, AT = 43.953622;"]
["L4D.DR.0125, AT = 44.203622;"]
["L4D.DR.0126, AT = 45.203622;"]
["L4D.MQF.0110, AT = 47.203622;"]
["L4D.DR.0127, AT = 47.453622;"]
["L4D.MQD.0111, AT = 47.953622;"]
["L4D.DR.0128, AT = 48.203622;"]
["L4D.DR.0129, AT = 49.203622;"]
["L4D.BVR.0103, AT = 52.203622;"]
["L4D.DR.0130, AT = 53.127162;"]
["L4D.MQD.0112, AT = 54.447162;"]
["L4D.DR.0131, AT = 54.697162;"]
["L4D.MQF.0113, AT = 55.217162;"]
["L4D.DR.0132, AT = 55.467162;"]
["L4D.MQD.0114, AT = 55.987162;"]
["L4D.DR.0133, AT = 56.237162;"]
["L4D.BVR.0104, AT = 57.557162;"]
["L4D.DR.0134, AT = 58.480702;"]
["L4D.MQF.0115, AT = 59.730702;"]
["L4D.DR.0135, AT = 59.980702;"]
["L4D.MQD.0116, AT = 60.480702;"]
["L4D.DR.0136, AT = 60.730702;"]
["L4D.MQF.0117, AT = 62.290702;"]
["L4D.DR.0137, AT = 62.540702;"]
["L4D.MQD.0118, AT = 63.040702;"]
["L4D.DR.0138, AT = 63.290702;"]
["L4D.BHZ.0105, AT = 69.290702;"]
["L4D.DR.0139, AT = 70.384325309;"]
["L4D.MQD.0119, AT = 76.344325309;"]
["L4D.DR.0140, AT = 76.599325309;"]
["L4D.DR.0141, AT = 78.720575309;"]
["L4D.DR.0142, AT = 79.880575309;"]
["L4D.MQF.0120, AT = 80.539325309;"]
["L4D.DR.0143, AT = 80.794325309;"]
["L4D.MQD.0121, AT = 85.408325309;"]
["L4D.DR.0144, AT = 85.663325309;"]
["L4D.MQF.0122, AT = 87.333325309;"]
["L4D.DR.0145, AT = 87.588325309;"]
["L4D.MQD.0123, AT = 92.356325309;"]
["L4D.DR.0146, AT = 92.823325309;"]
["L4D.MQF.0124, AT = 95.848325309;"]
["L4D.DR.0147, AT = 96.103325309;"]
["L4D.DR.0148, AT = 96.945825309;"]
["L4D.DR.0149, AT = 98.345825309;"]
["L4D.BHZ.0106, AT = 99.334325309;"]
["L4D.DR.0150, AT = 100.340333089;"]
["L4D.DR.0151, AT = 101.029944089;"]
["L4D.DR.0152, AT = 101.340333089;"]
["L4D.MQF.0125, AT = 104.026333089;"]
["L4D.DR.0153, AT = 104.281333089;"]
["L4D.MQD.0126, AT = 105.019333089;"]
["L4D.DR.0154, AT = 105.274333089;"]
["L4D.DR.0155, AT = 106.274333089;"]
["L4D.DR.0156, AT = 106.286833089;"]
["L4D.DR.0157, AT = 106.996833089;"]
["L4D.DR.0158, AT = 113.489833089;"]
[" 'L4D.MCHV.0102, AT = 113.999833089;"]
["L4D.DR.0159, AT = 113.999833089;"]
["L4D.MQF.0127, AT = 114.669333089;"]
["L4D.DR.0160, AT = 115.130333089;"]
["L4D.MQD.0128, AT = 115.669333089;"]
["L4D.DR.0161, AT = 116.130333089;"]
["L4D.MQF.0129, AT = 125.220333089;"]
["L4D.DR.0162, AT = 125.681333089;"]
["L4D.MQD.0130, AT = 126.520333089;"]
["L4D.DR.0163, AT = 126.981333089;"]
[" 'L4D.MCHV.0103, AT = 127.400833089;"]
["L4D.DR.0164, AT = 127.400833089;"]
["L4D.DR.0165, AT = 127.897333089;"]
["L4D.DR.0166, AT = 128.556333089;"]
["L4D.DR.0167, AT = 129.456333089;"]
["L4D.DR.0168, AT = 135.676333089;"]
[" 'L4D.MCHV.0104, AT = 135.961333089;"]
["L4D.DR.0169, AT = 135.961333089;"]
["L4D.MQF.0131, AT = 141.961333089;"]
["L4D.DR.0170, AT = 142.423333089;"]
["L4D.MQD.0132, AT = 142.961333089;"]
["L4D.DR.0171, AT = 143.423333089;"]
["L4D.DR.0172, AT = 148.938333089;"]
[" 'L4D.MCHV.0105, AT = 150.938333089;"]
["L4D.BVR.0107, AT = 150.938333089;"]
["L4D.DR.0173, AT = 151.238333089;"]
["L4D.MQF.0133, AT = 152.277333089;"]
["L4D.DR.0174, AT = 152.739333089;"]
["L4D.BVR.0108, AT = 153.008333089;"]
[" 'L4D.MCHV.0106, AT = 153.308333089;"]
["L4D.DR.0175, AT = 153.308333089;"]
["L4D.MQD.0134, AT = 153.577333089;"]
["L4D.DR.0176, AT = 154.039333089;"]
["L4D.BVR.0109, AT = 154.339333089;"]
["L4D.BHZ.0110, AT = 154.739333089;"]
["L4D.BHZ.0111, AT = 155.139333089;"]
["L4D.BHZ.0112, AT = 155.539333089;"]
["L4D.BHZ.0113, AT = 155.939333089;"]
["L4D.DR.0177, AT = 156.339333089;"]
["L4D.BVR.0114, AT = 156.489333089;"]
[" 'L4D.MCHV.0107, AT = 156.789333089;"]
["L4D.DR.0178, AT = 156.789333089;"]
["L4D.BVR.0115, AT = 163.359333089;"]
["L4D.DR.0179, AT = 164.319333089;"]
["L4D.BVR.0116, AT = 164.679333089;"]
["L4D.DR.0180, AT = 165.639333089;"]
["L4D.BVR.0117, AT = 167.184333089;"]
["L4D.DR.0181, AT = 167.919333089;"]
["L4D.MQF.0135, AT = 168.219333089;"]
["L4D.DR.0182, AT = 168.685333089;"]
["L4D.MQD.0136, AT = 168.969333089;"]
["L4D.DR.0183, AT = 169.435333089;"]
[" 'L4D.MCHV.0108, AT = 169.898333089;"]
["L4D.DR.0184, AT = 169.898333089;"]
["L4D.DR.0185, AT = 170.298333089;"]
["L4D.DR.0186, AT = 172.898333089;"]
["L4D.DR.0187, AT = 174.898333089;"]
[" 'L4D.BPM.0101, AT = 177.351333089;"]
["ENDSEQUENCE;"]
[]
[]
[]
[]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
["!-------------------------------------------------------------     Twiss Plot     -------------------------------------------------------------"]
["         use sequence=TL;"]
["         twiss, betx = 0.42, alfx = 3 , bety= 0.4,  alfy = -1.23,"]
["         file = twiss.TL.xls;"]
["         plot,haxis=s,vaxis1=betx,bety,vaxis2=dx,dy,colour=100,interpolate=true;"]
[]
[]
[]
[]
[]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
["!  Survey"]
[]
["!  LINAC4 starting point:"]
["!  A 1968.34337 1892.90205 2431.16062"]
["!  Bearing of Beamline: 344.5128 Gon (Gradian) = -0.87159089944 rad"]
[]
["!  Slope of Beamline: 0.0 radian"]
[]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
["!Note that the coordinates used by TS/SU and in MADX are different:"]
["!     MADX    TS/SU"]
["!                                        | Y, z             "]
["!                                        |                  "]
["!       Z        x                       |                  "]
["!       X        y                       |____________ Z, x "]
["!       Y        z                      /                   "]
["!                                      /                    "]
["!                                     / X, y                "]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
[]
["! TS/SU and MADX does not start from the same Axis their zero angle -1.57 is added to compensate that"]
["! Apparently MADX has a counterclockwise and the  (-)  sign is added to make it like TS/SU, which is clockwise. (geometric way of angle calculation)"]
[]
["         a1=-2.44238722694386;"]
[]
["         sur1 : macro={"]
[]
["                  use sequence=TL;"]
["                  select, flag=survey,clear;"]
["!                  select, flag=survey, column=name,s,l,z,x,y;"]
["                  survey, z0=1968.34337, x0=1892.90205, y0=2431.16062"]
["                  , theta0:=-a1"]
["                  , file=\"linac4.sur\";"]
["                  }"]
["         exec, sur1; ! NB: The result of the survey is in the file:\"linac4.sur\""]
["!         stop;"]
[]
[]
[]
[]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
["!                  store initial parameters in memory block"]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
[]
["         INITBETA0: BETA0,"]
["         BETX=0.42,"]
["         ALFX=3,"]
["         MUX  = MUX0,"]
["         BETY=0.4,"]
["         ALFY=-1.23,"]
["         MUY  = MUY0,"]
["         X = X0,   PX = PX0,   Y = Y0,   PY = PY0,   T = T0,"]
["         PT = PT0, DX = DX0, DPX = DPX0, DY = DY0;"]
[]
[]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
["!                  Twiss (optics functions at the end of the elements)"]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
[]
["         select, flag = twiss, clear;"]
["         select, flag = twiss, column=name,s,x,betx,alfx,x,px,bety,alfy,y,py;"]
["         , file = TL.xls;"]
["!         stop;"]
[]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
["! makeptc macro"]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
[]
["         makeptc : macro={"]
["                  use sequence = TL;"]
[]
["                  ptc_create_universe;"]
["                  ptc_create_layout,model=2,method=6,nst=5,time=true,exact;"]
["                  ptc_twiss, table=ptc_twiss, beta0=initbeta0, icase=5, no=1; ! , file = \"twiss\""]
["   ! Generating the .C file to be used with root for 3D graphical generator"]
["                  ptc_printframes, file=\"linac4.C\", format=rootmacro;  ! For root display"]
[]
["                  ptc_end;"]
["                  }"]
[]
[]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
["! twiss using PTC"]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
[]
["exec, makeptc;"]
[]
[]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
["! Write ptc_twiss table. NB! Values at end of elements"]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
[]
["!                 use sequence = TL;"]
[]
["                  select,flag=ptc_twiss,clear;"]
["                  select,flag=ptc_twiss, column = name,s,x,disp1,alfa11,beta11,y,disp3,alfa22,beta22;"]
["                  write,table=ptc_twiss,file = \"ptc.optics.out;\""]
[]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
["!----------------------------------------------------------------------------------------------------------------------------------------------"]
["!         ptc_create_universe;"]
["!         ptc_create_layout,model=2,method=6,nst=5,exact, closed_layout=false;"]
["!         ptc_align;"]
["!        ptc_eplacement, range=mover1, y=yBTL_MTV10+0.360, onlyposition,"]
["!                     refframe=previouselement, autoplacedownstream=true;"]
[]
["! The (ptc_printframes) statement generates a (ROOT) print file."]
["! (ROOT) gives a 3-Dimentional drawing of the line."]
["! (ROOT) can be installed on linux computers, with the commands:"]
["! > source ~/madxsetting.sh"]
["! > root filename.C"]
[]
["! The file ~/madxsetting.sh contains the following commands:"]
[]
["! setenv ROOTSYS /afs/cern.ch/sw/lcg/external/root/5.14.00g/slc4_ia32_gcc34/root"]
["! setenv LF95_ROOT /afs/cern.ch/sw/fortran/lahey/lf9562"]
["! setenv LD_LIBRARY_PATH ${LF95_ROOT}/lib:${ROOTSYS}/lib"]
["! setenv PATH $ROOTSYS/bin:$LF95_ROOT/bin:$PATH"]
["!        ptc_printframes, file=\"linac4.C\", format=rootmacro;"]
["!    ptc_end;"]