Class TrackProjector

java.lang.Object
org.jlab.rec.alert.projections.TrackProjector

public class TrackProjector extends Object
The TrackProjector class projects ahdc tracks to the inner surfaces of the bar and wedges of the atof

Uses ahdc track bank information (for now position, momentum) Creates a TrackProjection for each track.

TO DO: - replace hardcoded values with database values. - magnetic field ? use swimmer tools? - charge ?

Author:
pilleux
  • Constructor Details Link icon

    • TrackProjector Link icon

      public TrackProjector()
      Default constructor that initializes the list of projections as new empty list and the magnetic field to 5T.
  • Method Details Link icon

    • getProjections Link icon

      public ArrayList<TrackProjection> getProjections()
      Gets the list of track projections.
      Returns:
      a
      invalid reference
      List
      of TrackProjection objects representing the projections.
    • getB Link icon

      public Double getB()
      Gets the solenoid magnitude
      Returns:
      solenoid magnitude
    • setProjections Link icon

      public void setProjections(ArrayList<TrackProjection> Projections)
      Sets the list of track projections.
      Parameters:
      Projections - a
      invalid reference
      List
      of TrackProjection.
    • setB Link icon

      public void setB(Double B)
      Sets the solenoid magnitude.
      Parameters:
      B - a double.
    • projectTracks Link icon

      public void projectTracks(DataEvent event)
      Projects the ahdc tracks in the event onto the atof using a Helix model.
      Parameters:
      event - the DataEvent containing track data to be projected.
    • projectMCTracks Link icon

      public void projectMCTracks(DataEvent event)
      Projects the MC particles onto the atof using a Helix model.
      Parameters:
      event - the DataEvent containing track data to be projected.
    • main Link icon

      public static void main(String[] arg)