cnuphys.swim
Class SwimTrajectory

java.lang.Object
  extended by cnuphys.swim.SwimTrajectory

public class SwimTrajectory
extends java.lang.Object

Extends a generated particle record with a path (trajectory).

Author:
heddle

Constructor Summary
SwimTrajectory(GeneratedParticleRecord genPartRec, java.util.Vector<double[]> path)
           
SwimTrajectory(LundId lundId, double xo, double yo, double zo, double momentum, double theta, double phi, java.util.Vector<double[]> path)
           
 
Method Summary
 GeneratedParticleRecord getGeneratedParticleRecord()
          Get the underlying generated particle record
 java.util.Vector<double[]> getPath()
           
 int size()
          Get the number of stored points
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 generated
xo - the x vertex position in cm
yo - the y vertex position in cm
zo - the z vertex position in cm
momentum - initial momentum in GeV/c
theta - initial polar angle in degrees
phi - initial azimuthal angle in degrees
path - the trajectory that was computed by a swimmer

SwimTrajectory

public SwimTrajectory(GeneratedParticleRecord genPartRec,
                      java.util.Vector<double[]> path)
Parameters:
genPartRec - the generated particle record
path - the trajectory that was computed by a swimmer
Method Detail

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