accelmo.fitting.bpm_gains¶
BPM gains, shared by the closed-orbit (poco) and tracking fits.
A gain g scales what a BPM reports: reading = (1 + g) * position. Only
positions are read by a BPM; momenta are never scaled. Gains travel in the knob
dict next to the magnet knobs as bpmgain.<x|y>.<BPM>.
- accelmo.fitting.bpm_gains.bpm_gain_name(plane, bpm)[source]¶
Fit-parameter name of the gain of
bpminplane.- Return type:
str- Parameters:
plane (str)
bpm (str)
- accelmo.fitting.bpm_gains.bpm_gain_names(bpms)[source]¶
Every x gain, then every y gain, in
bpmsorder.- Return type:
list[str]- Parameters:
bpms (list[str] | tuple[str, ...])
- accelmo.fitting.bpm_gains.is_bpm_gain(name)[source]¶
True if
nameis a BPM gain parameter.- Return type:
bool- Parameters:
name (str)
- accelmo.fitting.bpm_gains.without_bpm_gains(knobs)[source]¶
knobswithout the BPM gains.- Return type:
dict[str,float]- Parameters:
knobs (dict[str, float])
- accelmo.fitting.bpm_gains.only_bpm_gains(knobs)[source]¶
Only the BPM gains of
knobs.- Return type:
dict[str,float]- Parameters:
knobs (dict[str, float])
- accelmo.fitting.bpm_gains.bpm_gains(knobs, plane, bpms)[source]¶
The
planegain of each ofbpmsfromknobs; 0 where a gain is absent.- Return type:
ndarray- Parameters:
knobs (dict[str, float])
plane (str)
bpms (list[str] | tuple[str, ...])