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 Doubleprotected DetectorTrackprotected final List<DetectorResponse> protected final 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 TypeMethodDescriptionvoidadd detector response to the particlevoidaddResponse(DetectorResponse res, boolean match) voidclear()doublecompare(double x, double y, double z) doubleintintcountResponses(DetectorType type) intcountResponses(DetectorType type, int layer) static DetectorParticlecreateNeutral(double x, double y, double z) static DetectorParticlecreateNeutral(double x, double y, double z, double vx, double vy, double vz) static DetectorParticlestatic DetectorParticlecreateNeutral(DetectorResponse resp, Vector3 vertex) doublegetBeta()doublegetBeta(DetectorType type, int layer, double startTime) intintgetCherenkovSignal(List<DetectorResponse> responses, DetectorType type) doublegetChi2()returns chi2 of score.float[][]floatgetCovMatrix(int ii, int jj) intgetDetectorHit(List<DetectorResponse> hitList, DetectorType type, int detectorLayer, double distanceThreshold) doublegetDetectorHitQuality(List<DetectorResponse> hitList, int index, Vector3D hitRes) getDistance(DetectorResponse response) doublegetEnergy(DetectorType type) doublegetEnergy(DetectorType type, int layer) doublegetHit(DetectorType type) getHit(DetectorType type, int layer) doublegetMass()doublegetNDF()doublegetNeutralBeta(DetectorType type, List<Integer> layers, double startTime) Calculate beta for given detector type/layer, prioritized by layer:doublegetNphe(DetectorType type) doubledoublegetPathLength(double x, double y, double z) doublegetPathLength(DetectorType type, int layer) doublegetPathLength(Vector3D vec) getPhysicsParticle(int pid) intgetPid()doublegetResponse(DetectorType type, int layer) Deprecated.Just for backward compatibility for any external usageintgetScore()returns particle score.intDeprecated.Just for backward compatibility for any external usageintgetSector(DetectorType type) intgetSector(DetectorType type, int layer) doubledoublegetTheoryBeta(int id) doublegetTime(DetectorType type) doublegetTime(DetectorType type, int layer) getTrack()doubleintintintintintdoublegetVertexTime(DetectorType type, int layer) doublegetVertexTime(DetectorType type, int layer, int pid) booleanhasHit(DetectorType type) booleanhasHit(DetectorType type, int layer) booleanreturns whether this is the trigger particle.voidsetBeta(double beta) voidsetCharge(int charge) voidsetChi2(double chi2) Chi square of score determination.voidsetDedx()For charged particles with scintillator responses, use dx from its track's trajectory to calculate dedx.voidsetMass(double mass) voidsetPid(int pid) voidsetPidQuality(double q) voidsetScore(int score) Particle score combined number that represents which detectors were hit HTCC - 1000, FTOF - 100, EC - 10 SCORE = HTCC + FTOF + ECvoidsetStartTime(double time) voidsetStatus(double minNpheHtcc, double minNpheLtcc) voidsetTriggerParticle(boolean val) set this as the trigger particle.toString()vector()vertex()
-
Field Details
-
DEFAULTQUALITY
-
responseStore
-
detectorTrack
-
-
Constructor Details
-
DetectorParticle
public DetectorParticle() -
DetectorParticle
-
DetectorParticle
public DetectorParticle(int charge, double px, double py, double pz) -
DetectorParticle
public DetectorParticle(int charge, double px, double py, double pz, double vx, double vy, double vz)
-
-
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
-
getTrackTrajectory
-
clear
public void clear() -
addResponse
-
countResponses
-
countResponses
-
getPhysicsParticle
-
compare
-
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
-
getSector
-
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
-
hasHit
-
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
-
getLastCross
-
getStatus
-
getMass
public double getMass() -
getPid
public int getPid() -
getPidQuality
public double getPidQuality() -
setPidQuality
public void setPidQuality(double q) -
vector
-
vertex
-
getPathLength
public double getPathLength() -
getCharge
public int getCharge() -
getPathLength
-
getPathLength
public double getPathLength(double x, double y, double z) -
getTime
-
getEnergyFraction
-
getEnergy
-
getEnergy
-
getPathLength
-
getBeta
-
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, DetectorType type, int detectorLayer, double distanceThreshold) -
getDetectorHitQuality
-
getDistance
-
getTheoryBeta
public double getTheoryBeta(int id) -
getNphe
-
getVertexTime
-
getVertexTime
-
getCherenkovSignal
-
getTime
-
getNeutralBeta
Calculate beta for given detector type/layer, prioritized by layer: -
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:
compareToin interfaceComparable
-
toString
-