java.lang.Object
simpa.acc.api.create.VacuumChamber
Represents a vacuum chamber for one or more accelerator elements in the
global frame.
- Author:
- lbojtar
-
Constructor Summary
ConstructorsConstructorDescriptionVacuumChamber
(ExtrudedSurface localSurface, org.apache.commons.math3.geometry.euclidean.threed.Rotation rot, org.apache.commons.math3.geometry.euclidean.threed.Vector3D translation, String elementName) Creates a translated and rotated instance of the given surface (defined in a local frame by the surface object) in the global frame. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.math3.geometry.euclidean.threed.Vector3D
void
Writes all profiles into a file.
-
Constructor Details
-
VacuumChamber
public VacuumChamber(ExtrudedSurface localSurface, org.apache.commons.math3.geometry.euclidean.threed.Rotation rot, org.apache.commons.math3.geometry.euclidean.threed.Vector3D translation, String elementName) Creates a translated and rotated instance of the given surface (defined in a local frame by the surface object) in the global frame.- Parameters:
localSurface
- A surface describing the vacuum chamber in the local frame.rot
- Rotation to be applied.translation
- Translation to be applied.elementName
- The name of element this chamber belongs to.
-
-
Method Details
-
getElementName
- Returns:
- The name of the accelerator element this chamber belongs to.
-
getCenter
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getCenter()- Returns:
- Center point in the global frame.
-
getOrientedProfiles
- Returns:
- The oriented profiles this chamber is presented by in the global frame.
-
toFile
Writes all profiles into a file.- Parameters:
f
- A file name.
-