Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects

Opal maps

Merged snuverink_j requested to merge OPAL-maps into master
4 files
+ 35
27
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -129,6 +129,22 @@ Hamiltonian::series_t Hamiltonian::quadrupole(const double& gamma0,
}
Hamiltonian::series_t Hamiltonian::fringeField(const double& phi,
const double& k0)
{
if ( truncOrder_m > 1 ) {
//TODO higher order thin lens approximation
}
// else
double angle = phi;
if ( k0 < 0.0 )
angle = -phi;
return -0.5 * (x * x - y * y) * k0 * std::tan(angle);
}
double Hamiltonian::getBeta_m(const double& gamma) {
return std::sqrt(1.0 - 1.0 / (gamma * gamma) );
}
Loading