ingpass!(RING, beam, nturns) for multi-turn tracking
println(beam.r) </code></pre><h2 id="Optics-calculation"><a class="docs-heading-anchor" href="#Optics-calculation">Optics calculation</a><a id="Optics-calculation-1"></a><a class="docs-heading-anchor-permalink" href="#Optics-calculation" title="Permalink"></a></h2><p>Obtain periodic Twiss parameters of a ring accelerator</p><pre><code class="nohighlight hljs">twi = twissring(RING, 0.0, 1)</code></pre><h2 id="Automatic-differentiation"><a class="docs-headi