cnuphys.lund
Class GeneratedParticleRecord

java.lang.Object
  extended by cnuphys.lund.GeneratedParticleRecord

public class GeneratedParticleRecord
extends java.lang.Object

Holds the Lund ID, vertex, momentum, and the initial angles giving the direction of the particle's momentum.

Author:
heddle

Constructor Summary
GeneratedParticleRecord(LundId lundId, double xo, double yo, double zo, double momentum, double theta, double phi)
           
 
Method Summary
 double getKineticEnergy()
          Get the kinetic energy in GeV
 LundId getLundId()
          Get the Lund Id of the generated particle
 double getMass()
          Get the mass in GeV
 double getMomentum()
          Get the momentum in GeV
 double getPhi()
          Get the initial azimuthal angle in degrees.
 double getTheta()
          Get the initial polar angle in degrees.
 double getTotalEnergy()
          The total energy in GeV
 double getVertexX()
          Get the the X vertex position in cm
 double getVertexY()
          Get the the Y vertex position in cm
 double getVertexZ()
          Get the the Z vertex position in cm
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratedParticleRecord

public GeneratedParticleRecord(LundId lundId,
                               double xo,
                               double yo,
                               double zo,
                               double momentum,
                               double theta,
                               double phi)
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
Method Detail

getLundId

public LundId getLundId()
Get the Lund Id of the generated particle

Returns:
the lundId

getVertexX

public double getVertexX()
Get the the X vertex position in cm

Returns:
the X vertex position in cm

getVertexY

public double getVertexY()
Get the the Y vertex position in cm

Returns:
the Y vertex position in cm

getVertexZ

public double getVertexZ()
Get the the Z vertex position in cm

Returns:
the Z vertex position in cm

getMomentum

public double getMomentum()
Get the momentum in GeV

Returns:
the momentum in GeV

getTheta

public double getTheta()
Get the initial polar angle in degrees.

Returns:
the initial polar angle in degrees.

getPhi

public double getPhi()
Get the initial azimuthal angle in degrees.

Returns:
the initial azimuthal angle in degrees.

getMass

public double getMass()
Get the mass in GeV

Returns:
the mass in GeV

getTotalEnergy

public double getTotalEnergy()
The total energy in GeV

Returns:
the total energy in GeV

getKineticEnergy

public double getKineticEnergy()
Get the kinetic energy in GeV

Returns:
the kinetic energy in MeV