Files
x06da/script/rocknroll.py
2015-11-26 16:04:47 +01:00

15 lines
316 B
Python

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")