-
Notifications
You must be signed in to change notification settings - Fork 39
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 intransfermapSavedor fromtransfermaptracked 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.
- Reference momentum change from the first element to the current one (linacs, implemented in subroutine
- Calculation of Edwards-Teng parameters. It was already in the code when I came. Comment says "Lebedev formula", I never investigated that.