Class TrajectoryRowData

java.lang.Object
cnuphys.lund.TrajectoryRowData

public class TrajectoryRowData extends Object
  • Field Details Link icon

    • trackId Link icon

      protected int trackId
    • lundId Link icon

      protected LundId lundId
    • xo Link icon

      protected double xo
    • yo Link icon

      protected double yo
    • zo Link icon

      protected double zo
    • p Link icon

      protected double p
    • theta Link icon

      protected double theta
    • phi Link icon

      protected double phi
    • status Link icon

      protected int status
    • source Link icon

      protected String source
  • Constructor Details Link icon

    • TrajectoryRowData Link icon

      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 object
      xo - 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 Link icon

    • getTrackId Link icon

      public int getTrackId()
      Get the track id
      Returns:
      the track id
    • getCharge Link icon

      public int getCharge()
      Get the charge in units of e.
      Returns:
      the charge. -99 on failure.
    • getSource Link icon

      public String getSource()
      Get the source, probably a bank name
      Returns:
      the source
    • getStatus Link icon

      public int getStatus()
      Get the status
      Returns:
      the status
    • getMass Link icon

      public double getMass()
      The mass in MeV
      Returns:
      the mass in MeV
    • getName Link icon

      public String getName()
      Get the name of the particle
      Returns:
      the name of the particle
    • getTotalEnergy Link icon

      public double getTotalEnergy()
      The total energy in MeV
      Returns:
      the total energy in MeV
    • getTheta Link icon

      public double getTheta()
      Get the polar angle
      Returns:
      the polar angle in degrees.
    • getPhi Link icon

      public double getPhi()
      Get the azimuthal angle
      Returns:
      the azimuthal angle in degrees.
    • getXo Link icon

      public double getXo()
      Get the vertex x coordinate
      Returns:
      the vertex x coordinate in cm
    • getYo Link icon

      public double getYo()
      Get the vertex y coordinate
      Returns:
      the vertex y coordinate in cm
    • getZo Link icon

      public double getZo()
      Get the vertex z coordinate
      Returns:
      the vertex z coordinate in cm
    • getId Link icon

      public int getId()
      Get the lund (pdg) is for the particle
      Returns:
      the lund (pdg) is for the particle
    • getLundId Link icon

      public LundId getLundId()
      Get the lund id
      Returns:
      the lund id
    • getMomentum Link icon

      public double getMomentum()
      Get the momentum in MeV
      Returns:
      the momentum in MeV
    • getKineticEnergy Link icon

      public double getKineticEnergy()
      Get the kinetic energy in MeV
      Returns:
      the kinetic energy in MeV