forked from lhcopt/lhcerrors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SelectLHCMonCor_v1.madx
94 lines (78 loc) · 3.36 KB
/
SelectLHCMonCor_v1.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
! Select monitors and correctors required for LHC orbit correction
! to be used with THIN sequence of V6.500
! saved on 28/06/07 10:49:19 by T.Risselada
if ( ver_lhc_run==0) {
print, text="Fatal error: SelectLHCMonCor_v1 is only compatible with LHC.";
stop;
};
usemonitor, status=off;
! enable all monitors for required beam
if (mylhcbeam < 2) { usemonitor, status=on, pattern=^bpm.*b1$;}
if (mylhcbeam > 1) { usemonitor, status=on, pattern=^bpm.*b2$;}
usemonitor, status=off, class=bpmwa;
usemonitor, status=off, class=bpmwb;
usemonitor, status=off, class=bpmse;
usemonitor, status=off, class=bpmsd;
usekick, status=off;
usekick, status=on, class=mcbh ;
usekick, status=on, class=mcbch;
usekick, status=on, class=mcbwh;
usekick, status=on, class=mcbyh;
usekick, status=on, class=mcbv ;
usekick, status=on, class=mcbcv;
usekick, status=on, class=mcbwv;
usekick, status=on, class=mcbyv;
! disable correctors reserved for crossing schemes
if (mylhcbeam < 2) {
usekick, status=off, range=mcbch.5r2.b1;
usekick, status=off, range=mcbch.b5l8.b1;
usekick, status=off, range=mcbyh.4l2.b1;
usekick, status=off, range=mcbyh.4l8.b1;
usekick, status=off, range=mcbyh.4r1.b1;
usekick, status=off, range=mcbyh.4r5.b1;
usekick, status=off, range=mcbyh.5r8.b1;
usekick, status=off, range=mcbyh.a4l1.b1;
usekick, status=off, range=mcbyh.a4l5.b1;
usekick, status=off, range=mcbyh.a4r2.b1;
usekick, status=off, range=mcbyh.a4r8.b1;
usekick, status=off, range=mcbyh.b5l2.b1;
usekick, status=off, range=mcbcv.5l8.b1;
usekick, status=off, range=mcbcv.a5r2.b1;
usekick, status=off, range=mcbyv.4l1.b1;
usekick, status=off, range=mcbyv.4l5.b1;
usekick, status=off, range=mcbyv.4r2.b1;
usekick, status=off, range=mcbyv.4r8.b1;
usekick, status=off, range=mcbyv.5l2.b1;
usekick, status=off, range=mcbyv.a4l2.b1;
usekick, status=off, range=mcbyv.a4l8.b1;
usekick, status=off, range=mcbyv.a4r1.b1;
usekick, status=off, range=mcbyv.a4r5.b1;
usekick, status=off, range=mcbyv.b5r8.b1;
}
if (mylhcbeam > 1) {
usekick, status=off, range=mcbch.5l8.b2;
usekick, status=off, range=mcbch.a5r2.b2;
usekick, status=off, range=mcbyh.4l1.b2;
usekick, status=off, range=mcbyh.4l5.b2;
usekick, status=off, range=mcbyh.4r2.b2;
usekick, status=off, range=mcbyh.4r8.b2;
usekick, status=off, range=mcbyh.5l2.b2;
usekick, status=off, range=mcbyh.a4l2.b2;
usekick, status=off, range=mcbyh.a4l8.b2;
usekick, status=off, range=mcbyh.a4r1.b2;
usekick, status=off, range=mcbyh.a4r5.b2;
usekick, status=off, range=mcbyh.b5r8.b2;
usekick, status=off, range=mcbcv.5r2.b2;
usekick, status=off, range=mcbcv.b5l8.b2;
usekick, status=off, range=mcbyv.4l2.b2;
usekick, status=off, range=mcbyv.4l8.b2;
usekick, status=off, range=mcbyv.4r1.b2;
usekick, status=off, range=mcbyv.4r5.b2;
usekick, status=off, range=mcbyv.5r8.b2;
usekick, status=off, range=mcbyv.a4l1.b2;
usekick, status=off, range=mcbyv.a4l5.b2;
usekick, status=off, range=mcbyv.a4r2.b2;
usekick, status=off, range=mcbyv.a4r8.b2;
usekick, status=off, range=mcbyv.b5l2.b2;
}
return;