Package org.jlab.clas.detector
Class DetectorParticle
java.lang.Object
org.jlab.clas.detector.DetectorParticle
- All Implemented Interfaces:
- Comparable
- Direct Known Subclasses:
- DetectorParticlePOCA,- DetectorParticleTraj
- Author:
- gavalian, baltzell
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Doubleprotected DetectorTrackprotected final List<DetectorResponse>protected final DetectorType[]
- 
Constructor SummaryConstructorsConstructorDescriptionDetectorParticle(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 SummaryModifier 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- 
DetectorParticlepublic DetectorParticle()
- 
DetectorParticle
- 
DetectorParticlepublic DetectorParticle(int charge, double px, double py, double pz) 
- 
DetectorParticlepublic DetectorParticle(int charge, double px, double py, double pz, double vx, double vy, double vz) 
 
- 
- 
Method Details- 
getStartTimepublic double getStartTime()
- 
setStartTimepublic void setStartTime(double time) 
- 
createNeutralpublic static DetectorParticle createNeutral(double x, double y, double z, double vx, double vy, double vz) 
- 
createNeutral
- 
createNeutral
- 
createNeutral
- 
getTrackTrajectory
- 
clearpublic void clear()
- 
addResponse
- 
countResponses
- 
countResponses
- 
getPhysicsParticle
- 
compare
- 
comparepublic double compare(double x, double y, double z) 
- 
getTrackIndexpublic int getTrackIndex()
- 
getCovMatrixpublic float[][] getCovMatrix()
- 
getCovMatrixpublic float getCovMatrix(int ii, int jj) 
- 
setScorepublic 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-
 
- 
setChi2public void setChi2(double chi2) Chi square of score determination.- Parameters:
- chi2-
 
- 
getScorepublic int getScore()returns particle score.- Returns:
 
- 
isTriggerParticlepublic boolean isTriggerParticle()returns whether this is the trigger particle.
- 
setTriggerParticlepublic void setTriggerParticle(boolean val) set this as the trigger particle.
- 
getSector
- 
getSector
- 
getSectorpublic int getSector()Deprecated.Just for backward compatibility for any external usage
- 
getChi2public double getChi2()returns chi2 of score.- Returns:
 
- 
addResponseadd detector response to the particle- Parameters:
- res-
 
- 
hasHit
- 
hasHit
- 
getDetectorResponses
- 
getDetectorResponses
- 
getHit
- 
getHit
- 
getResponseDeprecated.Just for backward compatibility for any external usage
- 
getTrack
- 
getBetapublic double getBeta()
- 
getNDFpublic double getNDF()
- 
getTrackChi2public double getTrackChi2()
- 
getTrackDetectorpublic int getTrackDetector()
- 
getTrackSectorpublic int getTrackSector()
- 
getTrackDetectorIDpublic int getTrackDetectorID()
- 
getTrackStatuspublic int getTrackStatus()
- 
getFirstCross
- 
getLastCross
- 
getStatus
- 
getMasspublic double getMass()
- 
getPidpublic int getPid()
- 
getPidQualitypublic double getPidQuality()
- 
setPidQualitypublic void setPidQuality(double q) 
- 
vector
- 
vertex
- 
getPathLengthpublic double getPathLength()
- 
getChargepublic int getCharge()
- 
getPathLength
- 
getPathLengthpublic double getPathLength(double x, double y, double z) 
- 
getTime
- 
getEnergyFraction
- 
getEnergy
- 
getEnergy
- 
getPathLength
- 
getBeta
- 
setStatuspublic void setStatus(double minNpheHtcc, double minNpheLtcc) 
- 
setBetapublic void setBeta(double beta) 
- 
setMasspublic void setMass(double mass) 
- 
setPidpublic void setPid(int pid) 
- 
setChargepublic void setCharge(int charge) 
- 
getDetectorHitpublic int getDetectorHit(List<DetectorResponse> hitList, DetectorType type, int detectorLayer, double distanceThreshold) 
- 
getDetectorHitQuality
- 
getDistance
- 
getTheoryBetapublic double getTheoryBeta(int id) 
- 
getNphe
- 
getVertexTime
- 
getVertexTime
- 
getCherenkovSignal
- 
getTime
- 
getNeutralBetaCalculate beta for given detector type/layer, prioritized by layer:
- 
setDedxpublic 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 interface- Comparable
 
- 
toString
 
-