This commit is contained in:
2015-11-26 16:04:47 +01:00
parent d545c77210
commit 01ea8fd7a9
2 changed files with 28 additions and 0 deletions

14
script/rocknroll.py Normal file
View File

@@ -0,0 +1,14 @@
ei = get_energy()
if ei < 6.0:
print "No rocking optimization for lower energy for 3rd harmonics rejection'
run("rock")
#check beam position at EBOX and fbm if needed
time.sleep(2.0)
by = bpm1.read()
if (math.abs(by) > 0.005):
print by
print 'Beam is not aligned at E-BOX BPM: do fbm.'
run("fbm")