-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathmain.mask
160 lines (121 loc) · 5.3 KB
/
main.mask
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
!*************************!
! Prepare environment !
!*************************!
! Check documentation at http://lhcmaskdoc.web.cern.ch/mainmask/
system, "ln -fns /afs/cern.ch/eng/tracking-tools tracking_tools";
! Mask code folder
system, "ln -fns tracking_tools/modules modules";
! Machine folder
system, "ln -fns tracking_tools/machines machines";
! Toolkit folder
system, "ln -fns tracking_tools/tools tools";
! Beam-beam macros folder
system, "ln -fns tracking_tools/beambeam_macros beambeam_macros";
! Errors folder
system, "ln -fns tracking_tools/errors errors";
! Execute user-defined customization script if present
system, "bash customization.bash";
!*************************!
! General configuration !
!*************************!
! Choose build machine script (sequence, makethin, optics, optics toolkit, cycle)
system, "ln -fns machines/sequences/hl14_thin.madx make_sequence.madx";
! Choose optics (magnet strengths)
system, "ln -fns machines/optics/hl14_collision.madx optics.madx";
par_verbose = 1;
mylhcbeam = 1; ! LHC beam 1 (clockwise), LHC beam 2 (clockwise), LHC beam 2 (counterclockwise)
! Beam parameters
par_beam_norm_emit = %EMIT_BEAM; ! [um]
par_beam_sigt = 0.076; ! [m]
par_beam_sige = 1.1e-4; ! [-]
par_beam_npart = %NPART; ! [-]
par_beam_energy_tot = 7000; ! [GeV]
! Settings
par_oct_current = -235; ! [A]
par_chromaticity = 5; ! [-] (Q'=5 for colliding bunches, Q'=15 for non-colliding bunches)
par_vrf_total = 16.; ! [MV]
! Tunes
par_qx0 = 62.31;
par_qy0 = 60.32;
!IP specific orbit settings
par_x1 = %XING; ! [urad]
par_sep1 = 0; ! [mm]
par_x2 = -170; ! [urad]
par_sep2 = 0.138; ! [mm]
par_x5 = par_x1; ! [urad]
par_sep5 = 0; ! [mm]
par_x8 = -250; ! [urad]
par_sep8 = -0.043; ! [mm]
par_a1 = 0; ! [urad]
par_o1 = 0; ! [mm]
par_a2 = 0; ! [urad]
par_o2 = 0; ! [mm]
par_a5 = 0; ! [urad]
par_o5 = 0; ! [mm]
par_a8 = 0; ! [urad]
par_o8 = 0; ! [mm]
par_crab1 = -190; ! [urad]
par_crab5 = par_crab1; ! [urad]
! Dispersion correction knob
par_on_disp = 1;
! Magnets of the experiments
par_on_alice = 1;
par_on_lhcb = 1;
par_on_sol_atlas = 0;
par_on_sol_cms = 0;
par_on_sol_alice = 0;
!*************************!
! Beam-beam configuration !
!*************************!
par_on_bb_switch = 1;
par_match_with_bb = 0; ! should be off at collision
par_b_t_dist = 25.; ! bunch separation [ns]
par_n_inside_D1 = 5; ! default value for the number of additionnal parasitic encounters inside D1
par_nho_IR1 = 11; ! number of slices for head-on in IR1 (between 0 and 201)
par_nho_IR2 = 11; ! number of slices for head-on in IR2 (between 0 and 201)
par_nho_IR5 = 11; ! number of slices for head-on in IR5 (between 0 and 201)
par_nho_IR8 = 11; ! number of slices for head-on in IR8 (between 0 and 201)
!*************************!
! Leveling in IP8 !
!*************************!
! This variables set the leveled luminosity in IP8 (considered if par_on_collision=1)
par_lumi_ip8 = 2e33; ![Hz/cm2]
! These variables define the number of Head-On collisions in the 4 IPs
par_nco_IP1 = 2748;
par_nco_IP2 = 2494;
par_nco_IP5 = par_nco_IP1;
par_nco_IP8 = 2572;
!*************************!
! Errors and corrections !
!*************************!
! Select seed for errors
par_myseed = %SEEDRAN;
! Set this flag to correct the errors of D2 in the NLC (warning: for now only correcting b3 of D2, still in development)
par_correct_for_D2 = 0;
! Set this flag to correct the errors of MCBXF in the NLC (warning: this might be less reproducable in reality, use with care)
par_correct_for_MCBX = 0;
par_on_errors_LHC = 1;
par_on_errors_MBH = 1;
par_on_errors_Q5 = 1;
par_on_errors_Q4 = 1;
par_on_errors_D2 = 1;
par_on_errors_D1 = 1;
par_on_errors_IT = 1;
par_on_errors_MCBRD = 0;
par_on_errors_MCBXF = 0;
!*************************!
! RUN !
!*************************!
! Build machine and optics
! (the user can intruduce in this section additional custom code
! to edit machine and/or optics)
call, file="make_sequence.madx";
call, file="optics.madx";
! Call mask modules
call, file="modules/module_01_orbit.madx";
call, file="modules/module_02_lumilevel.madx";
call, file="modules/module_03_beambeam.madx";
call, file="modules/module_04_1_finalizeseq_storerefs.madx";
call, file="modules/module_04_errors.madx";
call, file="modules/module_05_tuning.madx";
call, file="modules/module_06_generate.madx";