Class DetectorParticle

java.lang.Object
org.jlab.clas.detector.DetectorParticle
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
DetectorParticlePOCA, DetectorParticleTraj

public class DetectorParticle extends Object implements Comparable
Author:
gavalian, baltzell
  • Field Details Link icon

    • DEFAULTQUALITY Link icon

      public static final Double DEFAULTQUALITY
    • sharedDetectors Link icon

      protected final org.jlab.detector.base.DetectorType[] sharedDetectors
    • responseStore Link icon

      protected final List<DetectorResponse> responseStore
    • detectorTrack Link icon

      protected DetectorTrack detectorTrack
  • Constructor Details Link icon

    • DetectorParticle Link icon

      public DetectorParticle()
    • DetectorParticle Link icon

      public DetectorParticle(DetectorTrack track)
    • DetectorParticle Link icon

      public DetectorParticle(int charge, double px, double py, double pz)
    • DetectorParticle Link icon

      public DetectorParticle(int charge, double px, double py, double pz, double vx, double vy, double vz)
  • Method Details Link icon

    • getStartTime Link icon

      public double getStartTime()
    • setStartTime Link icon

      public void setStartTime(double time)
    • createNeutral Link icon

      public static DetectorParticle createNeutral(double x, double y, double z, double vx, double vy, double vz)
    • createNeutral Link icon

      public static DetectorParticle createNeutral(double x, double y, double z)
    • createNeutral Link icon

      public static DetectorParticle createNeutral(DetectorResponse resp)
    • createNeutral Link icon

      public static DetectorParticle createNeutral(DetectorResponse resp, org.jlab.clas.physics.Vector3 vertex)
    • getTrackTrajectory Link icon

      public DetectorTrack.Trajectory getTrackTrajectory()
    • clear Link icon

      public void clear()
    • addResponse Link icon

      public void addResponse(DetectorResponse res, boolean match)
    • countResponses Link icon

      public int countResponses(org.jlab.detector.base.DetectorType type, int layer)
    • countResponses Link icon

      public int countResponses(org.jlab.detector.base.DetectorType type)
    • getPhysicsParticle Link icon

      public org.jlab.clas.physics.Particle getPhysicsParticle(int pid)
    • compare Link icon

      public double compare(org.jlab.clas.physics.Vector3 vec)
    • compare Link icon

      public double compare(double x, double y, double z)
    • getTrackIndex Link icon

      public int getTrackIndex()
    • getCovMatrix Link icon

      public float[][] getCovMatrix()
    • getCovMatrix Link icon

      public float getCovMatrix(int ii, int jj)
    • setScore Link icon

      public void setScore(int score)
      Particle score combined number that represents which detectors were hit HTCC - 1000, FTOF - 100, EC - 10 SCORE = HTCC + FTOF + EC
      Parameters:
      score -
    • setChi2 Link icon

      public void setChi2(double chi2)
      Chi square of score determination.
      Parameters:
      chi2 -
    • getScore Link icon

      public int getScore()
      returns particle score.
      Returns:
    • isTriggerParticle Link icon

      public boolean isTriggerParticle()
      returns whether this is the trigger particle.
    • setTriggerParticle Link icon

      public void setTriggerParticle(boolean val)
      set this as the trigger particle.
    • getSector Link icon

      public int getSector(org.jlab.detector.base.DetectorType type, int layer)
    • getSector Link icon

      public int getSector(org.jlab.detector.base.DetectorType type)
    • getSector Link icon

      public int getSector()
      Deprecated.
      Just for backward compatibility for any external usage
    • getChi2 Link icon

      public double getChi2()
      returns chi2 of score.
      Returns:
    • addResponse Link icon

      public void addResponse(DetectorResponse res)
      add detector response to the particle
      Parameters:
      res -
    • hasHit Link icon

      public boolean hasHit(org.jlab.detector.base.DetectorType type)
    • hasHit Link icon

      public boolean hasHit(org.jlab.detector.base.DetectorType type, int layer)
    • getDetectorResponses Link icon

      public List<DetectorResponse> getDetectorResponses()
    • getDetectorResponses Link icon

      public List<DetectorResponse> getDetectorResponses(org.jlab.detector.base.DetectorType type)
    • getHit Link icon

      public DetectorResponse getHit(org.jlab.detector.base.DetectorType type)
    • getHit Link icon

      public DetectorResponse getHit(org.jlab.detector.base.DetectorType type, int layer)
    • getResponse Link icon

      public DetectorResponse getResponse(org.jlab.detector.base.DetectorType type, int layer)
      Deprecated.
      Just for backward compatibility for any external usage
    • getTrack Link icon

      public DetectorTrack getTrack()
    • getBeta Link icon

      public double getBeta()
    • getNDF Link icon

      public double getNDF()
    • getTrackChi2 Link icon

      public double getTrackChi2()
    • getTrackDetector Link icon

      public int getTrackDetector()
    • getTrackSector Link icon

      public int getTrackSector()
    • getTrackDetectorID Link icon

      public int getTrackDetectorID()
    • getTrackStatus Link icon

      public int getTrackStatus()
    • getFirstCross Link icon

      public org.jlab.geom.prim.Line3D getFirstCross()
    • getLastCross Link icon

      public org.jlab.geom.prim.Line3D getLastCross()
    • getStatus Link icon

      public DetectorParticleStatus getStatus()
    • getMass Link icon

      public double getMass()
    • getPid Link icon

      public int getPid()
    • getPidQuality Link icon

      public double getPidQuality()
    • setPidQuality Link icon

      public void setPidQuality(double q)
    • vector Link icon

      public org.jlab.clas.physics.Vector3 vector()
    • vertex Link icon

      public org.jlab.clas.physics.Vector3 vertex()
    • getPathLength Link icon

      public double getPathLength()
    • getCharge Link icon

      public int getCharge()
    • getPathLength Link icon

      public double getPathLength(org.jlab.geom.prim.Vector3D vec)
    • getPathLength Link icon

      public double getPathLength(double x, double y, double z)
    • getTime Link icon

      public double getTime(org.jlab.detector.base.DetectorType type)
    • getEnergyFraction Link icon

      public double getEnergyFraction(org.jlab.detector.base.DetectorType type)
    • getEnergy Link icon

      public double getEnergy(org.jlab.detector.base.DetectorType type)
    • getEnergy Link icon

      public double getEnergy(org.jlab.detector.base.DetectorType type, int layer)
    • getPathLength Link icon

      public double getPathLength(org.jlab.detector.base.DetectorType type, int layer)
    • getBeta Link icon

      public double getBeta(org.jlab.detector.base.DetectorType type, int layer, double startTime)
    • setStatus Link icon

      public void setStatus(double minNpheHtcc, double minNpheLtcc)
    • setBeta Link icon

      public void setBeta(double beta)
    • setMass Link icon

      public void setMass(double mass)
    • setPid Link icon

      public void setPid(int pid)
    • setCharge Link icon

      public void setCharge(int charge)
    • getDetectorHit Link icon

      public int getDetectorHit(List<DetectorResponse> hitList, org.jlab.detector.base.DetectorType type, int detectorLayer, double distanceThreshold)
    • getDetectorHitQuality Link icon

      public double getDetectorHitQuality(List<DetectorResponse> hitList, int index, org.jlab.geom.prim.Vector3D hitRes)
    • getDistance Link icon

      public org.jlab.geom.prim.Line3D getDistance(DetectorResponse response)
    • getTheoryBeta Link icon

      public double getTheoryBeta(int id)
    • getNphe Link icon

      public double getNphe(org.jlab.detector.base.DetectorType type)
    • getVertexTime Link icon

      public double getVertexTime(org.jlab.detector.base.DetectorType type, int layer)
    • getVertexTime Link icon

      public double getVertexTime(org.jlab.detector.base.DetectorType type, int layer, int pid)
    • getCherenkovSignal Link icon

      public int getCherenkovSignal(List<DetectorResponse> responses, org.jlab.detector.base.DetectorType type)
    • getTime Link icon

      public double getTime(org.jlab.detector.base.DetectorType type, int layer)
    • getNeutralBeta Link icon

      public double getNeutralBeta(org.jlab.detector.base.DetectorType type, List<Integer> layers, double startTime)
      Calculate beta for given detector type/layer, prioritized by layer:
    • setDedx Link icon

      public void setDedx()
      For charged particles with scintillator responses, use dx from its track's trajectory to calculate dedx. This overrides the dx provided from the scintillator services.
    • compareTo Link icon

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object