parameter[lattice] = g_2 parameter[particle] = antimuon parameter[geometry] = open parameter[p0c] = 3.094353005E9 parameter[absolute_time_tracking] = .true. bmad_com[aperture_limit_on] = .true. beginning[beta_a] = 63.916 ! these values give betax=1.0, betay=9.0 in inflector with Wuzeng inflector map beginning[beta_b] = 3.6027 beginning[alpha_a] = 19.567 beginning[alpha_b] = 3.1574 beginning[beta_a] = 6.3228E+01 ! these values give betax=4.0, betay=16.0 in inflector with Wuzeng inflector map beginning[beta_b] = 5.9635E+00 beginning[alpha_a] = 1.7864E+01 beginning[alpha_b] = 5.5922E+00 beginning[eta_x] = 14.262 !these give eta x = 4.0 in inflector beginning[etap_x] = -3.9241 !parameter[ran_seed] = 123 parameter[custom_attribute2] = "sbend::field_index" parameter[custom_attribute1] = "sbend::kick_width" parameter[custom_attribute1] = "sbend::kick_width" parameter[custom_attribute2] = "sbend::field_index" parameter[custom_attribute3] = "taylor::x_angle" parameter[custom_attribute4] = "sbend::quad_voltage" !================================= ! MAGIC RADIUS !================================= radius = 7.112 x0 = 7.112 !================================= ! OPTIONAL ELEMENTS !================================= ! to include the calorimeter markers in the lattice, uncomment the following line !call, file = calorimeter_lattice. call, file = fiber_monitor_lattice. !==================================================================================================== ! INJECTION LINE ================================================================================== !==================================================================================================== ! Here are the places we'd like to compute scattering/energy-loss. MARK_CRYO_US: marker ! upstream inflector cryo window MARK_INFLECTOR_US: marker , tracking_method = custom ! upstream inflector end MARK_INFLECTOR_DS: marker , tracking_method = custom ! downstream inflector end MARK_CRYO_DS: marker ! downstream inflector cryo window !********************************************* ! ELECTRIC QUADRUPOLES GEOMETRICAL PARAMETERS !********************************************* ! The following come from the E821 Quad NIM ! paper and the E821 Design Report, pp. 227. !================================== ! ELECTRODE SPANNING ANGLES !================================== dThetaQShort = 13.0*pi/180. dThetaQGap = 4.0*pi/180. dThetaQLong = 26.0*pi/180. !================================== ! ELECTRODE START ANGLES !================================== !ThetaQ1Start = 21.900*pi/180. ! design report (old) ThetaQ1Start = 22.075*pi/180. ! geometry -- no overlap with kickers ThetaQ2Start = ThetaQ1Start + pi/2. ThetaQ3Start = ThetaQ1Start + pi ThetaQ4Start = ThetaQ2Start + pi !================================== ! ELECTRODE END ANGLES !================================== ThetaQ1End = ThetaQ1Start + dThetaQShort + dThetaQGap + dThetaQLong ThetaQ2End = ThetaQ1End + pi/2. ThetaQ3End = ThetaQ1End + pi ThetaQ4End = ThetaQ2End + pi width2 = 0.045*0.045 !********************************************* ! KICKER GEOMETRICAL PARAMETERS !********************************************* kickerArrayCenterline = pi/2. !================================== ! KICKER SPANNING ANGLES !================================== dThetaK1 = 1.27/7.112 ! 1.76e0/7.112 dThetaGapK12 = (0.10 + 1.76-1.27)/7.112 dThetaK2 = 1.27/7.112 !1.76e0/7.112 dThetaGapK23 = (0.10+1.76-1.27)/7.112 dThetaK3 = 1.27/7.112 !1.76e0/7.112 !================================== ! KICKER START ANGLES !================================== ThetaK1Start = kickerArrayCenterline - dThetaK2/2. - dThetaGapK12 - dThetaK1 ThetaK2Start = kickerArrayCenterline - dThetaK2/2. ThetaK3Start = kickerArrayCenterline + dThetaK2/2. + dThetaGapK23 !================================== ! KICKER END ANGLES !================================== ThetaK1End = kickerArrayCenterline - dThetaK2/2. - dThetaGapK12 ThetaK2End = kickerArrayCenterline + dThetaK2/2. ThetaK3End = kickerArrayCenterline + dThetaK2/2. + dThetaGapK23 + dThetaK3 !********************************************* ! LATTICE ELEMENTS !********************************************* !defines full ring for 'drifts' when using multipole quads !FULLRING: sbend, rho = 7.112, field_calc = custom, tracking_method = runge_kutta, num_steps = 100 , mat6_calc_method = tracking, ds_step=0.01 !, angle = twopi ! this is the dipole to inherit for custom quads or custom kickers FULLRINGA: sbend, rho = 7.112, field_calc = custom, tracking_method = runge_kutta, num_steps = 1000, mat6_calc_method = tracking, ds_step=0.001 !, angle = twopi !this is the dipole to inherit with multipole quads FULLRING_B: sbend, rho = 7.112, tracking_method = runge_kutta, num_steps = 1000, mat6_calc_method = tracking, ds_step=0.001 !, angle = twopi !radial_field = 1.45*20.e-6 radial_field=0. ! dipole.bmad defines FULLRING as grid - this is what to inherit with grid quads call,file=quads/dipole.bmad !dipole field grid !call, file = quads/Quad_multipoles.bmad ! These elements are the "gaps" between the various quads/kickers AFREE: FULLRING, angle = ThetaQ1Start, aperture_type=elliptical ! Gap from injection point to first electric quadrupole BFREE: FULLRING, angle = ThetaK1Start - ThetaQ1End, aperture_type = elliptical CFREE: FULLRING, angle = ThetaQ2Start - ThetaK3End, aperture_type = elliptical DFREE: FULLRING, angle = ThetaQ3Start - ThetaQ2End, aperture_type = elliptical EFREE: FULLRING, angle = ThetaQ4Start - ThetaQ3End, aperture_type = elliptical EFREE_HALF: FULLRING, angle = (ThetaQ4Start - ThetaQ3End)/2, aperture_type = elliptical FFREE: FULLRING, angle = twopi - ThetaQ4End-0.001 ! This element is the small gap between the "short" and "long" sections of each "single" electric quadrupole QFREE: FULLRING, angle = dThetaQGap QFREE_half: FULLRING, angle = dThetaQGap/2 ! quad grids kV32=3.44086 !ratio = 22.7/32. ratio = 1. ! quad field map grids quad1_inner = kV32 quad1_bottom = kV32 * ratio quad1_outer = kV32 quad1_top = kV32 quad2_inner = kV32 * ratio quad2_bottom = kV32 * ratio quad2_outer = kV32 quad2_top = kV32 quad3_inner = kV32 quad3_bottom = kV32 * ratio quad3_outer = kV32 quad3_top = kV32 quad4_inner = kV32 quad4_bottom = kV32 * ratio quad4_outer = kV32 * ratio quad4_top = kV32 call, file=quads/quad1_short_combined.bmad call, file=quads/quad1_long_combined.bmad call, file=quads/quad2_short_combined.bmad call, file=quads/quad2_long_combined.bmad call, file=quads/quad3_short_combined.bmad call, file=quads/quad4_short_combined.bmad call, file=quads/quad3_long_combined.bmad call, file=quads/quad4_long_combined.bmad quad1_long[quad_voltage]:= KV32 quad2_long[quad_voltage]:= KV32 quad3_long[quad_voltage]:= kV32 quad4_long[quad_voltage]:= kV32 quad1_short[quad_voltage]:= KV32 quad2_short[quad_voltage]:= KV32 quad3_short[quad_voltage]:= kV32 quad4_short[quad_voltage]:= kV32 !QUAD1_LONG: FULLRINGA, angle = dThetaQLong, field_index=0.185, wall = {superimpose = .true., thickness = 0.0005, & ! section={type=wall_start, s = 0, v(1) = {0.07,-0.025}, v(2) = {0.07,0.025}}, & ! section={type=wall_end, s = dThetaQLong*radius, v(1) = {0.07,-0.025}, v(2) = {0.07,0.025}}} !QUAD1_SHORT: FULLRINGA, angle = dThetaQShort, field_index=0.185, wall = { superimpose = .true., thickness = 0.0005, & ! section = { type = wall_start, s = 0., v(1)={0.05025,-0.0235}, v(2)={0.05025, 0.0235} }, & ! section = { type = wall_end, s = dThetaQShort*radius, v(1)={0.05025,-0.0235}, v(2)={0.05025, 0.0235} }} !QUAD1: LINE = (QUAD1_SHORT, QFREE, QUAD1_LONG) ! Kickers KICKER1: FULLRINGA, angle = dThetaK1, descrip = "KICKER_E989_NoRolledEdges.dat", & kick_width = 100.e-9 GAPK12: FULLRINGA, angle = dThetaGapK12 KICKER2A: FULLRINGA, angle = dThetaK2/2, descrip = "KICKER_E989_NoRolledEdges.dat", kick_width = 100.e-9 MARK_CENTERLINE: MARKER! FULLRING, angle = 0 KICKER2B: FULLRINGA, angle = dThetaK2/2, descrip = "KICKER_E989_NoRolledEdges.dat", kick_width = 100.e-9 GAPK23: FULLRINGA, angle = dThetaGapK23 KICKER3: FULLRINGA, angle = dThetaK3,descrip = "KICKER_E989_NoRolledEdges.dat", kick_width = 100.e-9 KICKERS: LINE = (KICKER1, GAPK12, KICKER2A, MARK_CENTERLINE, KICKER2B, GAPK23, KICKER3) !********************************************* ! APERTURE LIMITS !********************************************* ! Elements just downstream of the injection point should NOT have storage-region aperture limits! afree[x_limit] := 0.25 afree[y_limit] := 0.1 QUAD1_SHORT[x_limit] := 0.102 QUAD1_SHORT[y_limit] := 0.05 QUAD1_SHORT[aperture_at] = continuous QUAD1_LONG[x_limit] := 0.102 QUAD1_LONG[y_limit] := 0.050 QUAD1_LONG[aperture_at] = continuous QUAD2_SHORT[x_limit] := 0.07 QUAD2_SHORT[y_limit] := 0.05 QUAD2_SHORT[aperture_at] = continuous QUAD2_LONG[x_limit] := 0.07 QUAD2_LONG[y_limit] := 0.050 QUAD2_LONG[aperture_at] = continuous QUAD3_SHORT[x_limit] := 0.05 QUAD3_SHORT[y_limit] := 0.05 QUAD3_SHORT[aperture_at] = continuous QUAD3_LONG[x_limit] := 0.05 QUAD3_LONG[y_limit] := 0.050 QUAD3_LONG[aperture_at] = continuous QUAD4_SHORT[x_limit] := 0.05 QUAD4_SHORT[y_limit] := 0.05 QUAD4_SHORT[aperture_at] = continuous QUAD4_LONG[x_limit] := 0.05 QUAD4_LONG[y_limit] := 0.050 QUAD4_LONG[aperture_at] = continuous KICKER1[x_limit] := 0.05 !0.102 ! vac chmbr. better? KICKER1[y_limit] := 0.056 KICKER1[aperture_at] = continuous KICKER2A[x_limit] := 0.102 KICKER2A[y_limit] := 0.056 KICKER2A[aperture_at] = continuous KICKER2B[x_limit] := 0.102 KICKER2B[y_limit] := 0.056 KICKER2B[aperture_at] = continuous KICKER3[x_limit] := 0.102 KICKER3[y_limit] := 0.056 KICKER3[aperture_at] = continuous freelimit=0.05 !bfree[x_limit] := freelimit !bfree[y_limit] := freelimit !afree[x_limit] := freelimit !afree[y_limit] := freelimit cfree[x_limit] := freelimit cfree[y_limit] := freelimit dfree[x_limit] := freelimit dfree[y_limit] := freelimit efree[x_limit] := freelimit efree[y_limit] := freelimit ffree[x_limit] := freelimit ffree[y_limit] := freelimit inflector_width = 0.009 inf_x_ap = inflector_width inf_y_ap = 0.028 ! !MARK_CRYO_US[x1_limit] := inf_x_ap-(inflector_width-0.009) + 0.00635*1.7 !adds an extrac few mm to account for all possible inflector tilts !MARK_CRYO_US[x2_limit] := inf_x_ap+(inflector_width-0.009) + 0.00635*1.7 !adds an extrac few mm to account for all possible inflector tilts !MARK_CRYO_US[y_limit] := inf_y_ap MARK_INFLECTOR_US[x1_limit]:=inf_x_ap-(inflector_width-0.009) + 0.00635*1.7 !adds an extrac few mm to account for all possible inflector tilts MARK_INFLECTOR_US[x2_limit]:=inf_x_ap+(inflector_width-0.009) + 0.00635*1.7 !adds an extrac few mm to account for all possible inflector tilts MARK_INFLECTOR_US[y_limit]:=inf_y_ap MARK_INFLECTOR_DS[x1_limit]:=inf_x_ap+(inflector_width-0.009) !-inf_x_ap-(inflector_width-0.009) MARK_INFLECTOR_DS[x2_limit]:=inf_x_ap+(inflector_width-0.009) MARK_INFLECTOR_DS[y_limit]:=inf_y_ap !call, file = x_injection.lat dr: drift, l=0.00001 backleg_start: marker backhole_x_ap = 0.12 backhole_y_ap = 0.12 backleg_start[x_limit]:= backhole_x_ap backleg_start[y_limit]:= backhole_y_ap backleg: em_field, descrip = 'injec_fld.dat', field_calc = custom, l=2.480114, & tracking_method = runge_kutta, num_steps = 100 , mat6_calc_method = tracking, ds_step=0.0001 cryo_us: em_field, descrip = 'injec_fld.dat', field_calc = custom, l=0.119886, & tracking_method = runge_kutta, num_steps = 100 , mat6_calc_method = tracking, ds_step=0.0001 inf: em_field, descrip = 'injec_fld.dat', field_calc = custom, l=1.7000, & tracking_method = runge_kutta, num_steps = 1000 , mat6_calc_method = tracking, ds_step=0.001 infa: em_field, descrip = 'injec_fld.dat', field_calc = custom, l=1.5000, & tracking_method = runge_kutta, num_steps = 1000 , mat6_calc_method = tracking, ds_step=0.001 infb: em_field, descrip = 'injec_fld.dat', field_calc = custom, l=0.200, & tracking_method = runge_kutta, num_steps = 1000 , mat6_calc_method = tracking, ds_step=0.001 inf_exit: em_field, descrip = 'injec_fld.dat', field_calc = custom, l=0.095, & tracking_method = runge_kutta, num_steps = 1000 , mat6_calc_method = tracking, ds_step=0.001 inject: line=(backleg_start,backleg, mark_cryo_us, cryo_us, mark_inflector_us, infa,infb,mark_inflector_ds) !********************************************* ! g-2 STORAGE RING !********************************************* collimator4: ecollimator, l=0.00001, x_limit=0.045, y_limit=0.045, x_offset=0.0, y_offset = 0.0 collimator5: ecollimator, l=0.00001, x_limit=0.045, y_limit=0.045, x_offset = 0.0, y_offset = 0.0 collimator6: ecollimator, l=0.00001, x_limit=0.045, y_limit=0.045, x_offset = 0.0, y_offset = 0.0 collimator7: ecollimator, l=0.00001, x_limit=0.045, y_limit=0.045, x_offset = 0.0, y_offset = 0.0 collimator8: ecollimator, l=0.00001, x_limit=0.045, y_limit=0.045, x_offset = 0.0, y_offset = 0.0 QUAD1_SHORT[x_offset]:= 0.0 QUAD1_LONG[x_offset]:= 0.0 QUAD2_SHORT[y_offset]:= 0.0 QUAD2_LONG[y_offset]:= 0.0 QUAD3_SHORT[y_offset]:= 0.0 QUAD3_LONG[y_offset]:= 0.0 QUAD4_SHORT[x_offset]:= 0.0 QUAD4_LONG[x_offset]:= 0.0 RING: LINE = (afree, QUAD1_SHORT, qfree, QUAD1_LONG, bfree, KICKERS, cfree, & QUAD2_SHORT, qfree_half,collimator4,qfree_half, QUAD2_LONG,collimator5, dfree, QUAD3_SHORT, qfree, QUAD3_LONG, collimator6, efree_half,& efree_half, QUAD4_SHORT, qfree_half,collimator7,qfree_half, QUAD4_LONG,collimator8, ffree) inflector: drift, l=0.017 !l=1.7 !inj: line =(inflector, inj_to_ring, ring_br) !inj: line =(injinf, inj_to_ring, ring_br) inj: line = (inject, inj_to_ring, ring_br) inj_to_ring: patch, x_offset=-0.077 ring_br: fork, to_line = ring !use, RING use, inj