...
calculate relative to design values using a dimensionless "LEM error", i.e. the ratio of the live momentum profile to the design profile
Latex \[ BDES_{LEM} = \left \frac{E_{live}(s)}{E_{design}(s)} \right BDES_{design}
- calculate relative to design values using design multipole coefficients (lcls style)
- get design multipole coefficients (k0_des, k1_des for bends/quads), and (effective) magnet lengths l_eff from the model
calculate the live magnetic rigidity & required field strength (where E_live is in GeV)
Latex \[ B\rho(s) = \frac{E_{live}(s)}{299.792458*10^4} \[ BDES_{LEM} = B\rho * k_{design} * l_{eff}
calculate relative to extant settings
Latex \[ BDES_{LEM} = \left \frac{E_{live}(s)}{E_{old}(s)} \right * BDES_{extant}
- note: requires a previously implemented BLEM → if LEM is bootstrapping (i.e. run for the first time without reference to a previous trim) just skip the matching quads
- matching quads should always scale from extant values
...