-
Notifications
You must be signed in to change notification settings - Fork 16
/
submodule_04c_errortables.madx
107 lines (102 loc) · 13.9 KB
/
submodule_04c_errortables.madx
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
print, text="";
print, text="";
print, text=" --- Submodule 4c: errortables";
print, text=" -----------------------------";
print, text="";
print, text="";
if (on_errors_LHC==1){
readtable, file="errors/LHC/rotations_Q2_integral.tab";
};
if (ver_hllhc_optics > 0 && on_errors_IT==1){
call, file="errors/HL-LHC/ITbody_errortable_v5"; ! target error table for the new IT
call, file="errors/HL-LHC/ITnc_errortable_v5"; ! target error table for the new IT
call, file="errors/HL-LHC/ITcs_errortable_v5"; ! target error table for the new IT
};
if (ver_hllhc_optics > 0 && on_errors_D1==1){
call, file="errors/HL-LHC/D1_errortable_v1"; ! target error table for the new D1
};
if (ver_hllhc_optics > 0 && on_errors_D2==1){
call, file="errors/HL-LHC/D2_errortable_v5"; ! target error table for the new D2
if (correct_for_D2==1){
call, file="errors/HL-LHC/D2_empty_errortable"; ! We are only correcting the b3 errors, put the other errors to zero
};
};
if (ver_hllhc_optics > 0 && on_errors_MCBXF==1){
call, file="errors/HL-LHC/MCBXFAB_errortable_v1";
};
if (ver_hllhc_optics > 0 && on_errors_MBH==1){
call, file="errors/HL-LHC/MBH_errortable_v3";
};
if (ver_hllhc_optics > 0 && on_errors_MCBRD==1){
call, file="errors/HL-LHC/MCBRD_errortable_v1";
};
if (ver_hllhc_optics > 0 && on_errors_NLC==1){
call,file="errors/HL-LHC/NLC_errortable_v1";
}
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! Define the seed number (for statistical error assignment in the new IT/D1)
! and call the corresponding measured error table for nominal LHC magnets
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
if (on_errors_LHC==1){
LHCerrortableseed=myseed-60*FLOOR((myseed-1)/60);
if (LHCerrortableseed==1) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-1.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-1.tfs" ;}; };
if (LHCerrortableseed==2) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-2.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-2.tfs" ;}; };
if (LHCerrortableseed==3) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-3.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-3.tfs" ;}; };
if (LHCerrortableseed==4) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-4.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-4.tfs" ;}; };
if (LHCerrortableseed==5) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-5.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-5.tfs" ;}; };
if (LHCerrortableseed==6) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-6.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-6.tfs" ;}; };
if (LHCerrortableseed==7) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-7.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-7.tfs" ;}; };
if (LHCerrortableseed==8) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-8.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-8.tfs" ;}; };
if (LHCerrortableseed==9) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-9.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-9.tfs" ;}; };
if (LHCerrortableseed==10) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-10.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-10.tfs" ;}; };
if (LHCerrortableseed==11) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-11.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-11.tfs" ;}; };
if (LHCerrortableseed==12) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-12.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-12.tfs" ;}; };
if (LHCerrortableseed==13) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-13.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-13.tfs" ;}; };
if (LHCerrortableseed==14) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-14.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-14.tfs" ;}; };
if (LHCerrortableseed==15) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-15.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-15.tfs" ;}; };
if (LHCerrortableseed==16) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-16.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-16.tfs" ;}; };
if (LHCerrortableseed==17) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-17.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-17.tfs" ;}; };
if (LHCerrortableseed==18) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-18.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-18.tfs" ;}; };
if (LHCerrortableseed==19) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-19.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-19.tfs" ;}; };
if (LHCerrortableseed==20) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-20.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-20.tfs" ;}; };
if (LHCerrortableseed==21) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-21.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-21.tfs" ;}; };
if (LHCerrortableseed==22) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-22.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-22.tfs" ;}; };
if (LHCerrortableseed==23) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-23.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-23.tfs" ;}; };
if (LHCerrortableseed==24) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-24.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-24.tfs" ;}; };
if (LHCerrortableseed==25) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-25.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-25.tfs" ;}; };
if (LHCerrortableseed==26) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-26.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-26.tfs" ;}; };
if (LHCerrortableseed==27) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-27.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-27.tfs" ;}; };
if (LHCerrortableseed==28) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-28.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-28.tfs" ;}; };
if (LHCerrortableseed==29) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-29.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-29.tfs" ;}; };
if (LHCerrortableseed==30) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-30.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-30.tfs" ;}; };
if (LHCerrortableseed==31) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-31.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-31.tfs" ;}; };
if (LHCerrortableseed==32) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-32.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-32.tfs" ;}; };
if (LHCerrortableseed==33) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-33.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-33.tfs" ;}; };
if (LHCerrortableseed==34) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-34.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-34.tfs" ;}; };
if (LHCerrortableseed==35) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-35.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-35.tfs" ;}; };
if (LHCerrortableseed==36) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-36.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-36.tfs" ;}; };
if (LHCerrortableseed==37) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-37.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-37.tfs" ;}; };
if (LHCerrortableseed==38) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-38.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-38.tfs" ;}; };
if (LHCerrortableseed==39) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-39.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-39.tfs" ;}; };
if (LHCerrortableseed==40) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-40.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-40.tfs" ;}; };
if (LHCerrortableseed==41) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-41.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-41.tfs" ;}; };
if (LHCerrortableseed==42) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-42.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-42.tfs" ;}; };
if (LHCerrortableseed==43) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-43.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-43.tfs" ;}; };
if (LHCerrortableseed==44) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-44.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-44.tfs" ;}; };
if (LHCerrortableseed==45) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-45.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-45.tfs" ;}; };
if (LHCerrortableseed==46) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-46.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-46.tfs" ;}; };
if (LHCerrortableseed==47) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-47.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-47.tfs" ;}; };
if (LHCerrortableseed==48) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-48.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-48.tfs" ;}; };
if (LHCerrortableseed==49) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-49.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-49.tfs" ;}; };
if (LHCerrortableseed==50) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-50.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-50.tfs" ;}; };
if (LHCerrortableseed==51) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-51.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-51.tfs" ;}; };
if (LHCerrortableseed==52) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-52.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-52.tfs" ;}; };
if (LHCerrortableseed==53) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-53.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-53.tfs" ;}; };
if (LHCerrortableseed==54) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-54.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-54.tfs" ;}; };
if (LHCerrortableseed==55) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-55.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-55.tfs" ;}; };
if (LHCerrortableseed==56) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-56.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-56.tfs" ;}; };
if (LHCerrortableseed==57) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-57.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-57.tfs" ;}; };
if (LHCerrortableseed==58) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-58.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-58.tfs" ;}; };
if (LHCerrortableseed==59) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-59.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-59.tfs" ;}; };
if (LHCerrortableseed==60) {if (NRJ<4999.999) {readtable, file="errors/LHC/wise/injection_errors-emfqcs-60.tfs" ;}; if (NRJ>5000.000) {readtable, file="errors/LHC/wise/collision_errors-emfqcs-60.tfs" ;}; };
};