java.lang.Object
simpa.acc.api.track.PhaseSpaceObserver
simpa.acc.api.track.TLPhaseSpaceObserver
- All Implemented Interfaces:
TrackingObserver
A phase space observer which extends the
PhaseSpaceObserver class.
This class is used to register the phase space coordinates of particles in a
beam hitting this observer. It is used by the TLBeamTracker class.
The phase space coordinates are written to a file when the tracking is
finished. This is done by @TLBeamTracker} class.-
Nested Class Summary
Nested classes/interfaces inherited from interface simpa.core.api.track.TrackingObserver
TrackingObserver.ObserverBehaviour -
Constructor Summary
ConstructorsConstructorDescriptionTLPhaseSpaceObserver(double longiPos, double radius, ReferenceOrbit orbit, double nominalMomentum, boolean backward) Constructor for a phase space observer in a transfer line. -
Method Summary
Modifier and TypeMethodDescriptionvoidFinishes the tracking of the given particle.getMap()voidObserves the location and angle of the particle as it passes through the disk.voidwriteToFile(String file) Write the phase space coordinates of the particle in a beam hitting this observer to a file.Methods inherited from class simpa.acc.api.track.PhaseSpaceObserver
getDisk, getFlushPerTurns, getLongitudinalPosition, getOutDirectory, getPhaseSpaceCoordinates, setFlushPerTurns, setOutDirectory
-
Constructor Details
-
TLPhaseSpaceObserver
public TLPhaseSpaceObserver(double longiPos, double radius, ReferenceOrbit orbit, double nominalMomentum, boolean backward) Constructor for a phase space observer in a transfer line.- Parameters:
longiPos- Longitudinal position from the beginning of the line [m].radius- Radius of the disk. Should be big enough to cover the aperture.orbit- The reference orbitnominalMomentum- The nominal momentum [GeV/c]
-
-
Method Details
-
observe
Description copied from class:PhaseSpaceObserverObserves the location and angle of the particle as it passes through the disk.- Specified by:
observein interfaceTrackingObserver- Overrides:
observein classPhaseSpaceObserver- Parameters:
p- Particle to observe
-
finish
Description copied from interface:TrackingObserverFinishes the tracking of the given particle.- Specified by:
finishin interfaceTrackingObserver- Overrides:
finishin classPhaseSpaceObserver- Parameters:
p- the particle to stop tracking
-
writeToFile
Write the phase space coordinates of the particle in a beam hitting this observer to a file.- Parameters:
file- The file to write to.
-
getMap
-