Beamline Name Searching for Split Elements
Issue #319
new
Elements such as dipoles (sbends, rbends) are split into multiple sections to get the geometry right. With commands such as /bds/beamline/goto dipole1
in the visualiser, we look up the BDSAcceleratorComponent by name. The user will use the name they defined the one object with in the input GMAD files. However, it is built as many components and none of them have that exact name (e.g. “sb1” → “sb1_1”, “sb1_2”,…) so it isn’t found.
We should include a mechanism in BDSBeamline to register an alternative name for a component when added so we can look it up correctly. For dipoles, this should be approximately the middle of the element. This information may need to be therefore included in BDSAcceleratorComponent.