You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The variable Energy refers to the total beam energy as it is obtained from the Energy parameter in AT, and used as such in AT expressions to calculate the energy loss per turn. See for example in atsummary line :
eloss=1.0e9*Cgamma/2/pi*smm.e0.^4*smm.integrals(2); % eV
It seems to me that the author of this line was expecting Energy to return something else. There is misleading warning commented on top claiming that the kinetic energy is used, however, this expression is still wrong even in that case as momentum and energy differ by a second order correction in a Taylor expansion of PC = E * sqrt(1 - (E0/E)^2), where here below the quotient E0/E expressed as x :
For a 3 GeV machine, the difference between Energy and momentum*speed_of_light for an electron is on the order of 10^-8, while, this expression introduces and error on the order of 10^-4, a non-negligible effect when considering precise magnetic fields.
Please, let me know if I have misunderstood something or if you find this to be an error as I think it is.
Best regards,
o
The text was updated successfully, but these errors were encountered:
Dear all,
there is an issue with the expression to calculate brho in
MML/mml/getbrho.m
Line 57 in 5d622d6
The variable Energy refers to the total beam energy as it is obtained from the Energy parameter in AT, and used as such in AT expressions to calculate the energy loss per turn. See for example in atsummary line :
https://github.com/atcollab/at/blob/66a7c92af28bed5900891b9c4fcbf6fae169e1a0/atmat/atphysics/ParameterSummaryFunctions/atsummary.m#L86
Therefore the expression should be :
It seems to me that the author of this line was expecting Energy to return something else. There is misleading warning commented on top claiming that the kinetic energy is used, however, this expression is still wrong even in that case as momentum and energy differ by a second order correction in a Taylor expansion of PC = E * sqrt(1 - (E0/E)^2), where here below the quotient E0/E expressed as x :
For a 3 GeV machine, the difference between Energy and momentum*speed_of_light for an electron is on the order of 10^-8, while, this expression introduces and error on the order of 10^-4, a non-negligible effect when considering precise magnetic fields.
Please, let me know if I have misunderstood something or if you find this to be an error as I think it is.
Best regards,
o
The text was updated successfully, but these errors were encountered: