Skip to content

PTC_TWISS puttwisstable

Piotr edited this page Aug 20, 2018 · 1 revision

Subroutine puttwisstable, additionally to trivial pushing of the values calculated by equaltwiss, does a few extra things.

  • If the user asked for rmatrix and depending on the flag doTMtrack, it can be fetched from the buffered values in transfermapSaved or from transfermap tracked along side A_
  • Call of trackOrbitExtremaAndRms (name self explanatory)
  • Converting between PTC and MAD conventions. However some conversions are not done because they are not practical.
  • Some parameters needs to be scaled with energy increase deltaE (adiabatic damping). deltaE is sum of
    • Reference momentum change from the first element to the current one (linacs, implemented in subroutine getdeltae)
    • beam momentum, i.e. zero order coefficient of the 5th coordinate. In other words deltap.
  • Calculation of Edwards-Teng parameters. It was already in the code when I came. Comment says "Lebedev formula", I never investigated that.

Clone this wiki locally