java.lang.Object
simpa.acc.api.utils.BeamSizeCalculator
This class calculates the beam sizes along the sequence.
-
Constructor Summary
ConstructorsConstructorDescriptionBeamSizeCalculator
(String trajectoryFile, ReferenceOrbit designOrbit, double maxAperture) Constructor with a given trajectory file and design orbit.BeamSizeCalculator
(Map<String, List<TrajectoryData>> trajMap, ReferenceOrbit designOrbit, double maxAperture) Constructor with a given trajectory map and design orbit.BeamSizeCalculator
(Optics opt, double horEmittance, double vertEmittance, double dpOp) Constructor with a given optics and emittances. -
Method Summary
Modifier and TypeMethodDescriptiongetVerticalBeamSize
(Optics opt, double vertEmittance, double dpOp) void
writeSigmas
(String outFile) This method writes the horizontal and vertical beam sizes to a file.
-
Constructor Details
-
BeamSizeCalculator
Constructor with a given optics and emittances. It calculates the beam sizes along the sequence from the Twiss parameters in the optics.- Parameters:
opt
- The optics data.horEmittance
- The horizontal emittance.[m.rad]vertEmittance
- The vertical emittance.[m.rad]dpOp
- Relative momentum spread.
-
BeamSizeCalculator
Constructor with a given trajectory file and design orbit. It calculates the beam sizes along the sequence from the trajectory file.- Parameters:
trajectoryFile
- The trajectory file.designOrbit
- The design orbit.maxAperture
- The maximum aperture. It is used for determine the observer disks radius This number is in meters.
-
BeamSizeCalculator
public BeamSizeCalculator(Map<String, List<TrajectoryData>> trajMap, ReferenceOrbit designOrbit, double maxAperture) Constructor with a given trajectory map and design orbit. It calculates the beam sizes along the sequence from the trajectory map.- Parameters:
trajMap
- The trajectory map. Keys are the particle names in the beam.designOrbit
- The design orbit.maxAperture
- The maximum aperture. It is used for determine the
-
-
Method Details
-
getHorizontalBeamSize
- Returns:
- The horizontal beam size.
-
getVerticalBeamSize
- Returns:
- The vertical beam size.
-
writeSigmas
This method writes the horizontal and vertical beam sizes to a file.- Parameters:
outFile
- The output file.optics
- The optics data.horEmittance
- The horizontal emittance.[m.rad]vertEmittance
- The vertical emittance.[m.rad]dpOp
- Relative momentum spread.
-