Contents
Class TrajectoryRowData
java.lang.Object
cnuphys.lund.TrajectoryRowData
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTrajectoryRowData
(int trackId, LundId lundId, double xo, double yo, double zo, double p, double theta, double phi, int status, String source) Create a data row for display in the table. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the charge in units of e.int
getId()
Get the lund (pdg) is for the particledouble
Get the kinetic energy in MeVGet the lund iddouble
getMass()
The mass in MeVdouble
Get the momentum in MeVgetName()
Get the name of the particledouble
getPhi()
Get the azimuthal angleGet the source, probably a bank nameint
Get the statusdouble
getTheta()
Get the polar angledouble
The total energy in MeVint
Get the track iddouble
getXo()
Get the vertex x coordinatedouble
getYo()
Get the vertex y coordinatedouble
getZo()
Get the vertex z coordinate
-
Field Details
-
Constructor Details
-
TrajectoryRowData
public TrajectoryRowData(int trackId, LundId lundId, double xo, double yo, double zo, double p, double theta, double phi, int status, String source) Create a data row for display in the table.- Parameters:
lundId
- the full lundId objectxo
- the vertex x (cm)yo
- the vertex y (cm)zo
- the vertex z (cm)p
- the initial momentum (MeV/c)theta
- the initial polar angle (degrees)phi
- the initial azimuthal angle (degrees)
-
-
Method Details
-
getTrackId
public int getTrackId()Get the track id- Returns:
- the track id
-
getCharge
public int getCharge()Get the charge in units of e.- Returns:
- the charge. -99 on failure.
-
getSource
-
getStatus
public int getStatus()Get the status- Returns:
- the status
-
getMass
public double getMass()The mass in MeV- Returns:
- the mass in MeV
-
getName
-
getTotalEnergy
public double getTotalEnergy()The total energy in MeV- Returns:
- the total energy in MeV
-
getTheta
public double getTheta()Get the polar angle- Returns:
- the polar angle in degrees.
-
getPhi
public double getPhi()Get the azimuthal angle- Returns:
- the azimuthal angle in degrees.
-
getXo
public double getXo()Get the vertex x coordinate- Returns:
- the vertex x coordinate in cm
-
getYo
public double getYo()Get the vertex y coordinate- Returns:
- the vertex y coordinate in cm
-
getZo
public double getZo()Get the vertex z coordinate- Returns:
- the vertex z coordinate in cm
-
getId
public int getId()Get the lund (pdg) is for the particle- Returns:
- the lund (pdg) is for the particle
-
getLundId
-
getMomentum
public double getMomentum()Get the momentum in MeV- Returns:
- the momentum in MeV
-
getKineticEnergy
public double getKineticEnergy()Get the kinetic energy in MeV- Returns:
- the kinetic energy in MeV
-