Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getStartTime()
- setStartTime(double)
- createNeutral(double, double, double, double, double, double)
- createNeutral(double, double, double)
- createNeutral(DetectorResponse)
- createNeutral(DetectorResponse, Vector3)
- getTrackTrajectory()
- clear()
- addResponse(DetectorResponse, boolean)
- countResponses(DetectorType, int)
- countResponses(DetectorType)
- getPhysicsParticle(int)
- compare(Vector3)
- compare(double, double, double)
- getTrackIndex()
- getCovMatrix()
- getCovMatrix(int, int)
- setScore(int)
- setChi2(double)
- getScore()
- isTriggerParticle()
- setTriggerParticle(boolean)
- getSector(DetectorType, int)
- getSector(DetectorType)
- getSector()
- getChi2()
- addResponse(DetectorResponse)
- hasHit(DetectorType)
- hasHit(DetectorType, int)
- getDetectorResponses()
- getDetectorResponses(DetectorType)
- getHit(DetectorType)
- getHit(DetectorType, int)
- getResponse(DetectorType, int)
- getTrack()
- getBeta()
- getNDF()
- getTrackChi2()
- getTrackDetector()
- getTrackSector()
- getTrackDetectorID()
- getTrackStatus()
- getFirstCross()
- getLastCross()
- getStatus()
- getMass()
- getPid()
- getPidQuality()
- setPidQuality(double)
- vector()
- vertex()
- getPathLength()
- getCharge()
- getPathLength(Vector3D)
- getPathLength(double, double, double)
- getTime(DetectorType)
- getEnergyFraction(DetectorType)
- getEnergy(DetectorType)
- getEnergy(DetectorType, int)
- getPathLength(DetectorType, int)
- getBeta(DetectorType, int, double)
- setStatus(double, double)
- setBeta(double)
- setMass(double)
- setPid(int)
- setCharge(int)
- getDetectorHit(List, DetectorType, int, double)
- getDetectorHitQuality(List, int, Vector3D)
- getDistance(DetectorResponse)
- getTheoryBeta(int)
- getNphe(DetectorType)
- getVertexTime(DetectorType, int)
- getVertexTime(DetectorType, int, int)
- getCherenkovSignal(List, DetectorType)
- getTime(DetectorType, int)
- getNeutralBeta(DetectorType, List, double)
- setDedx()
- compareTo(Object)
- toString()
Class DetectorParticle
java.lang.Object
org.jlab.clas.detector.DetectorParticle
- All Implemented Interfaces:
Comparable
- Direct Known Subclasses:
DetectorParticlePOCA
,DetectorParticleTraj
- Author:
- gavalian, baltzell
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Double
protected DetectorTrack
protected final List
<DetectorResponse> protected final org.jlab.detector.base.DetectorType[]
-
Constructor Summary
ConstructorsConstructorDescriptionDetectorParticle
(int charge, double px, double py, double pz) DetectorParticle
(int charge, double px, double py, double pz, double vx, double vy, double vz) DetectorParticle
(DetectorTrack track) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add detector response to the particlevoid
addResponse
(DetectorResponse res, boolean match) void
clear()
double
compare
(double x, double y, double z) double
compare
(org.jlab.clas.physics.Vector3 vec) int
int
countResponses
(org.jlab.detector.base.DetectorType type) int
countResponses
(org.jlab.detector.base.DetectorType type, int layer) static DetectorParticle
createNeutral
(double x, double y, double z) static DetectorParticle
createNeutral
(double x, double y, double z, double vx, double vy, double vz) static DetectorParticle
static DetectorParticle
createNeutral
(DetectorResponse resp, org.jlab.clas.physics.Vector3 vertex) double
getBeta()
double
getBeta
(org.jlab.detector.base.DetectorType type, int layer, double startTime) int
int
getCherenkovSignal
(List<DetectorResponse> responses, org.jlab.detector.base.DetectorType type) double
getChi2()
returns chi2 of score.float[][]
float
getCovMatrix
(int ii, int jj) int
getDetectorHit
(List<DetectorResponse> hitList, org.jlab.detector.base.DetectorType type, int detectorLayer, double distanceThreshold) double
getDetectorHitQuality
(List<DetectorResponse> hitList, int index, org.jlab.geom.prim.Vector3D hitRes) getDetectorResponses
(org.jlab.detector.base.DetectorType type) org.jlab.geom.prim.Line3D
getDistance
(DetectorResponse response) double
getEnergy
(org.jlab.detector.base.DetectorType type) double
getEnergy
(org.jlab.detector.base.DetectorType type, int layer) double
getEnergyFraction
(org.jlab.detector.base.DetectorType type) org.jlab.geom.prim.Line3D
getHit
(org.jlab.detector.base.DetectorType type) getHit
(org.jlab.detector.base.DetectorType type, int layer) org.jlab.geom.prim.Line3D
double
getMass()
double
getNDF()
double
getNeutralBeta
(org.jlab.detector.base.DetectorType type, List<Integer> layers, double startTime) Calculate beta for given detector type/layer, prioritized by layer:double
getNphe
(org.jlab.detector.base.DetectorType type) double
double
getPathLength
(double x, double y, double z) double
getPathLength
(org.jlab.detector.base.DetectorType type, int layer) double
getPathLength
(org.jlab.geom.prim.Vector3D vec) org.jlab.clas.physics.Particle
getPhysicsParticle
(int pid) int
getPid()
double
getResponse
(org.jlab.detector.base.DetectorType type, int layer) Deprecated.Just for backward compatibility for any external usageint
getScore()
returns particle score.int
Deprecated.Just for backward compatibility for any external usageint
getSector
(org.jlab.detector.base.DetectorType type) int
getSector
(org.jlab.detector.base.DetectorType type, int layer) double
double
getTheoryBeta
(int id) double
getTime
(org.jlab.detector.base.DetectorType type) double
getTime
(org.jlab.detector.base.DetectorType type, int layer) getTrack()
double
int
int
int
int
int
double
getVertexTime
(org.jlab.detector.base.DetectorType type, int layer) double
getVertexTime
(org.jlab.detector.base.DetectorType type, int layer, int pid) boolean
hasHit
(org.jlab.detector.base.DetectorType type) boolean
hasHit
(org.jlab.detector.base.DetectorType type, int layer) boolean
returns whether this is the trigger particle.void
setBeta
(double beta) void
setCharge
(int charge) void
setChi2
(double chi2) Chi square of score determination.void
setDedx()
For charged particles with scintillator responses, use dx from its track's trajectory to calculate dedx.void
setMass
(double mass) void
setPid
(int pid) void
setPidQuality
(double q) void
setScore
(int score) Particle score combined number that represents which detectors were hit HTCC - 1000, FTOF - 100, EC - 10 SCORE = HTCC + FTOF + ECvoid
setStartTime
(double time) void
setStatus
(double minNpheHtcc, double minNpheLtcc) void
setTriggerParticle
(boolean val) set this as the trigger particle.toString()
org.jlab.clas.physics.Vector3
vector()
org.jlab.clas.physics.Vector3
vertex()
-
Field Details
-
Constructor Details
-
Method Details
-
getStartTime
public double getStartTime() -
setStartTime
public void setStartTime(double time) -
createNeutral
public static DetectorParticle createNeutral(double x, double y, double z, double vx, double vy, double vz) -
createNeutral
-
createNeutral
-
createNeutral
public static DetectorParticle createNeutral(DetectorResponse resp, org.jlab.clas.physics.Vector3 vertex) -
getTrackTrajectory
-
clear
public void clear() -
addResponse
-
countResponses
public int countResponses(org.jlab.detector.base.DetectorType type, int layer) -
countResponses
public int countResponses(org.jlab.detector.base.DetectorType type) -
getPhysicsParticle
public org.jlab.clas.physics.Particle getPhysicsParticle(int pid) -
compare
public double compare(org.jlab.clas.physics.Vector3 vec) -
compare
public double compare(double x, double y, double z) -
getTrackIndex
public int getTrackIndex() -
getCovMatrix
public float[][] getCovMatrix() -
getCovMatrix
public float getCovMatrix(int ii, int jj) -
setScore
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
public void setChi2(double chi2) Chi square of score determination.- Parameters:
chi2
-
-
getScore
public int getScore()returns particle score.- Returns:
-
isTriggerParticle
public boolean isTriggerParticle()returns whether this is the trigger particle. -
setTriggerParticle
public void setTriggerParticle(boolean val) set this as the trigger particle. -
getSector
public int getSector(org.jlab.detector.base.DetectorType type, int layer) -
getSector
public int getSector(org.jlab.detector.base.DetectorType type) -
getSector
public int getSector()Deprecated.Just for backward compatibility for any external usage -
getChi2
public double getChi2()returns chi2 of score.- Returns:
-
addResponse
add detector response to the particle- Parameters:
res
-
-
hasHit
public boolean hasHit(org.jlab.detector.base.DetectorType type) -
hasHit
public boolean hasHit(org.jlab.detector.base.DetectorType type, int layer) -
getDetectorResponses
-
getDetectorResponses
-
getHit
-
getHit
-
getResponse
Deprecated.Just for backward compatibility for any external usage -
getTrack
-
getBeta
public double getBeta() -
getNDF
public double getNDF() -
getTrackChi2
public double getTrackChi2() -
getTrackDetector
public int getTrackDetector() -
getTrackSector
public int getTrackSector() -
getTrackDetectorID
public int getTrackDetectorID() -
getTrackStatus
public int getTrackStatus() -
getFirstCross
public org.jlab.geom.prim.Line3D getFirstCross() -
getLastCross
public org.jlab.geom.prim.Line3D getLastCross() -
getStatus
-
getMass
public double getMass() -
getPid
public int getPid() -
getPidQuality
public double getPidQuality() -
setPidQuality
public void setPidQuality(double q) -
vector
public org.jlab.clas.physics.Vector3 vector() -
vertex
public org.jlab.clas.physics.Vector3 vertex() -
getPathLength
public double getPathLength() -
getCharge
public int getCharge() -
getPathLength
public double getPathLength(org.jlab.geom.prim.Vector3D vec) -
getPathLength
public double getPathLength(double x, double y, double z) -
getTime
public double getTime(org.jlab.detector.base.DetectorType type) -
getEnergyFraction
public double getEnergyFraction(org.jlab.detector.base.DetectorType type) -
getEnergy
public double getEnergy(org.jlab.detector.base.DetectorType type) -
getEnergy
public double getEnergy(org.jlab.detector.base.DetectorType type, int layer) -
getPathLength
public double getPathLength(org.jlab.detector.base.DetectorType type, int layer) -
getBeta
public double getBeta(org.jlab.detector.base.DetectorType type, int layer, double startTime) -
setStatus
public void setStatus(double minNpheHtcc, double minNpheLtcc) -
setBeta
public void setBeta(double beta) -
setMass
public void setMass(double mass) -
setPid
public void setPid(int pid) -
setCharge
public void setCharge(int charge) -
getDetectorHit
public int getDetectorHit(List<DetectorResponse> hitList, org.jlab.detector.base.DetectorType type, int detectorLayer, double distanceThreshold) -
getDetectorHitQuality
public double getDetectorHitQuality(List<DetectorResponse> hitList, int index, org.jlab.geom.prim.Vector3D hitRes) -
getDistance
-
getTheoryBeta
public double getTheoryBeta(int id) -
getNphe
public double getNphe(org.jlab.detector.base.DetectorType type) -
getVertexTime
public double getVertexTime(org.jlab.detector.base.DetectorType type, int layer) -
getVertexTime
public double getVertexTime(org.jlab.detector.base.DetectorType type, int layer, int pid) -
getCherenkovSignal
public int getCherenkovSignal(List<DetectorResponse> responses, org.jlab.detector.base.DetectorType type) -
getTime
public double getTime(org.jlab.detector.base.DetectorType type, int layer) -
getNeutralBeta
-
setDedx
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
- Specified by:
compareTo
in interfaceComparable
-
toString
-