@@ -212,23 +212,23 @@ def make_is_accepted_within_n_sigma(epsn_rms, limit_n_rms, twiss_beta=1):
212212 space region limited by the action value limit_n_rms * epsn_rms.
213213
214214 Coordinate u and momentum up are assumed to be connected to the
215- action J via the twiss_beta value,
215+ amplitude J via the twiss_beta value,
216216 J = sqrt(u^2 + twiss_beta^2 up^2) .
217- The action is required to be below the limit value to be accepted,
217+ The amplitude is required to be below the limit to be accepted,
218218 J < limit_n_rms * epsn_rms.
219219 The usual use case will be generating u and up in normalised Floquet
220220 space (i.e. before the normalised phase space coordinates
221221 get matched to the optics or longitudinal eta and Qs).
222222 In this case, twiss_beta takes the default value 1 in normalised
223- Floquet space. Correspondingly , the 1 sigma RMS reference value
223+ Floquet space. Consequently , the 1 sigma RMS reference value
224224 epsn_rms corresponds to the normalised 1 sigma RMS emittance
225225 (i.e. amounting to beam.epsn_x() and beam.epsn_y() in the transverse
226226 plane, and beam.epsn_z()/4 in the longitudinal plane).
227227 '''
228- threshold_action_squared = (limit_n_rms * epsn_rms )** 2
228+ threshold_amplitude_squared = (limit_n_rms * epsn_rms )** 2
229229 def is_accepted (u , up ):
230230 Jsq = u ** 2 + (twiss_beta * up )** 2
231- return Jsq < threshold_action_squared
231+ return Jsq < threshold_amplitude_squared
232232 return is_accepted
233233
234234
0 commit comments