cnuphys.swim
Class SwimTrajectory
java.lang.Object
cnuphys.swim.SwimTrajectory
public class SwimTrajectory
- extends java.lang.Object
Extends a generated particle record with a path (trajectory).
- Author:
- heddle
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwimTrajectory
public SwimTrajectory(LundId lundId,
double xo,
double yo,
double zo,
double momentum,
double theta,
double phi,
java.util.Vector<double[]> path)
- Parameters:
lundId - the particle being generatedxo - 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 degreespath - the trajectory that was computed by a swimmer
SwimTrajectory
public SwimTrajectory(GeneratedParticleRecord genPartRec,
java.util.Vector<double[]> path)
- Parameters:
genPartRec - the generated particle recordpath - the trajectory that was computed by a swimmer
getGeneratedParticleRecord
public GeneratedParticleRecord getGeneratedParticleRecord()
- Get the underlying generated particle record
- Returns:
- the underlying generated particle record
size
public int size()
- Get the number of stored points
- Returns:
- the number of stored points
getPath
public java.util.Vector<double[]> getPath()
- Returns:
- the path