cnuphys.lund
Interface ISwimmer
- All Known Implementing Classes:
- Swimmer
public interface ISwimmer
|
Method Summary |
boolean |
stopSwim(double t,
double[] y)
Given the current state of the integration, should we stop? This allows
the integration to stop, for example, if some distance from the origin
has been exceeded or if the independent variable passes some threshold. |
SwimTrajectory |
swim(LundId lundId,
double xo,
double yo,
double zo,
double momentum,
double theta,
double phi,
double rmax,
double pathmax)
Swims a Lund particle |
swim
SwimTrajectory swim(LundId lundId,
double xo,
double yo,
double zo,
double momentum,
double theta,
double phi,
double rmax,
double pathmax)
- Swims a Lund particle
- Parameters:
lundId - the particle to swimxo - the x vertex position in cmyo - the y vertex position in cmzo - the z vertex position in cmmomentum - initial momentum in GeV/ctheta - initial polar angle in degreesphi - initial azimuthal angle in degreesrmax - max radial coordinate (then integration stops) in meterspathmax - max pathlength (then integration stops) in meters
- Returns:
- the trajectory of the particle
stopSwim
boolean stopSwim(double t,
double[] y)
- Given the current state of the integration, should we stop? This allows
the integration to stop, for example, if some distance from the origin
has been exceeded or if the independent variable passes some threshold.
It won't be precise, because the check may not happen
on every step, but it should be close.
- Parameters:
t - the current value of the independent variable (typically time)y - the current state vector (typically [x, y, z, vx, vy, vz])
- Returns:
true if we should stop now.