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 TypeMethodDescriptionvoid
Finishes the tracking of the given particle.int
void
Observe the particle using this observer.void
setLossCount
(int lossCount) void
writeToFile
(String fileName) Writes the lost particles to a file.
-
Constructor Details
-
BeamLossObserver
public BeamLossObserver()
-
-
Method Details
-
observe
Description copied from interface:TrackingObserver
Observe the particle using this observer.- Specified by:
observe
in interfaceTrackingObserver
- Parameters:
p
- - Particle to observe
-
finish
Description copied from interface:TrackingObserver
Finishes the tracking of the given particle.- Specified by:
finish
in 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.
-