java.lang.Object
simpa.core.api.track.BeamLossObserver
- All Implemented Interfaces:
TrackingObserver
-
Nested Class Summary
Nested classes/interfaces inherited from interface simpa.core.api.track.TrackingObserver
TrackingObserver.ObserverBehaviour -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFinishes the tracking of the given particle.intvoidObserve the particle using this observer.voidsetLossCount(int lossCount) voidwriteToFile(String fileName) Writes the lost particles to a file.
-
Constructor Details
-
BeamLossObserver
public BeamLossObserver()
-
-
Method Details
-
observe
Description copied from interface:TrackingObserverObserve the particle using this observer.- Specified by:
observein interfaceTrackingObserver- Parameters:
p- - Particle to observe
-
finish
Description copied from interface:TrackingObserverFinishes the tracking of the given particle.- Specified by:
finishin interfaceTrackingObserver- Parameters:
p- the particle to stop tracking
-
getLossCount
public int getLossCount() -
setLossCount
public void setLossCount(int lossCount) -
getLostParticles
-
writeToFile
Writes the lost particles to a file.- Parameters:
fileName- The name of the file.
-