Package org.jlab.clas.detector.matching
Class AMatch
java.lang.Object
org.jlab.clas.detector.matching.AMatch
- All Implemented Interfaces:
- Comparator<javafx.util.Pair<DetectorParticle,,- DetectorResponse>> - IMatch
- Direct Known Subclasses:
- MatchCND,- MatchDOCA,- MatchPOCA,- MatchThetaPhi,- MatchTrajDistance
- Author:
- baltzell
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal intFind the best matching response in the given list for the given particle.final intbestMatch(DetectorParticle p, List<DetectorResponse> r, DetectorType t, int l) Find the best matching response in the given list for the given particle.intcompare(javafx.util.Pair<DetectorParticle, DetectorResponse> a, javafx.util.Pair<DetectorParticle, DetectorResponse> b) Compare the quality of two particle-response pairs.final intFind the first matching response in the given list for the given particle.final intfirstMatch(DetectorParticle p, List<DetectorResponse> r, DetectorType t, int l) Find the first matching response in the given list for the given particle.static doublegetDeltaPhi(double phi1, double phi2) static doublegetDeltaPhi(Point3D p1, Point3D p2) final booleanfinal voidsetSharing(boolean sharing) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Constructor Details- 
AMatchpublic AMatch()
 
- 
- 
Method Details- 
setSharingpublic final void setSharing(boolean sharing) 
- 
getSharingpublic final boolean getSharing()
- 
getDeltaPhipublic static double getDeltaPhi(double phi1, double phi2) 
- 
getDeltaPhi
- 
firstMatchFind the first matching response in the given list for the given particle.- Specified by:
- firstMatchin interface- IMatch
- Parameters:
- p- the particle
- r- the list of responses
- t- the requested detector type to consider
- l- the requested detector layer to consider
- Returns:
- the index of the resulting match, else negative
 
- 
firstMatchFind the first matching response in the given list for the given particle.- Specified by:
- firstMatchin interface- IMatch
- Parameters:
- p- the particle
- r- the list of responses
- t- the requested detector type to consider
- Returns:
- the index of the resulting match, else negative
 
- 
bestMatchFind the best matching response in the given list for the given particle.
- 
bestMatchFind the best matching response in the given list for the given particle.
- 
comparepublic int compare(javafx.util.Pair<DetectorParticle, DetectorResponse> a, javafx.util.Pair<DetectorParticle, DetectorResponse> b) Compare the quality of two particle-response pairs.- Specified by:
- comparein interface- Comparator<javafx.util.Pair<DetectorParticle,- DetectorResponse>> 
- Parameters:
- a-
- b-
- Returns:
 
 
-