article tracking</a><a id="Particle-tracking-1"></a><a class="docs-heading-anchor-permalink" href="#Particle-tracking" title="Permalink"></a></h2><p>Particles&#39; coordinates are represented as a N * 6 matrix, saved in beam.r. An example of creating an eletron beam with 10 particles,</p><pre><code class="nohighlight hljs">particles = rand(10, 6) / 1000
beam = Beam(particles, energy=3.5e9)</code></pre><p>Track the beam through the beamline,</p><pre><code class="nohighlight hljs">linepass!(LINE, beam) # or r