15 lines
317 B
Python
15 lines
317 B
Python
ei = get_energy()
|
|
if ei < 6.0:
|
|
print "No rocking optimization for lower energy for 3rd harmonics rejection'
|
|
rock(th1)
|
|
|
|
#check beam position at EBOX and fbm if needed
|
|
time.sleep(2.0)
|
|
|
|
by = es_beam_posv.read()
|
|
if (abs(by) > 0.005):
|
|
print by
|
|
print 'Beam is not aligned at E-BOX BPM: do fbm.'
|
|
run("fbm")
|
|
|