Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- setSharing(boolean)
- getSharing()
- getDeltaPhi(double, double)
- getDeltaPhi(Point3D, Point3D)
- firstMatch(DetectorParticle, List, DetectorType, int)
- firstMatch(DetectorParticle, List, DetectorType)
- bestMatch(DetectorParticle, List, DetectorType, int)
- bestMatch(DetectorParticle, List, DetectorType)
- compare(Pair, Pair)
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal int
bestMatch
(DetectorParticle p, List<DetectorResponse> r, org.jlab.detector.base.DetectorType t) Find the best matching response in the given list for the given particle.final int
bestMatch
(DetectorParticle p, List<DetectorResponse> r, org.jlab.detector.base.DetectorType t, int l) Find the best matching response in the given list for the given particle.int
compare
(javafx.util.Pair<DetectorParticle, DetectorResponse> a, javafx.util.Pair<DetectorParticle, DetectorResponse> b) Compare the quality of two particle-response pairs.final int
firstMatch
(DetectorParticle p, List<DetectorResponse> r, org.jlab.detector.base.DetectorType t) Find the first matching response in the given list for the given particle.final int
firstMatch
(DetectorParticle p, List<DetectorResponse> r, org.jlab.detector.base.DetectorType t, int l) Find the first matching response in the given list for the given particle.static double
getDeltaPhi
(double phi1, double phi2) static double
getDeltaPhi
(org.jlab.geom.prim.Point3D p1, org.jlab.geom.prim.Point3D p2) final boolean
final void
setSharing
(boolean sharing) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
Method Details
-
setSharing
public final void setSharing(boolean sharing) -
getSharing
public final boolean getSharing() -
getDeltaPhi
public static double getDeltaPhi(double phi1, double phi2) -
getDeltaPhi
public static double getDeltaPhi(org.jlab.geom.prim.Point3D p1, org.jlab.geom.prim.Point3D p2) -
firstMatch
public final int firstMatch(DetectorParticle p, List<DetectorResponse> r, org.jlab.detector.base.DetectorType t, int l) Find the first matching response in the given list for the given particle.- Specified by:
firstMatch
in interfaceIMatch
- Parameters:
p
- the particler
- the list of responsest
- the requested detector type to considerl
- the requested detector layer to consider- Returns:
- the index of the resulting match, else negative
-
firstMatch
public final int firstMatch(DetectorParticle p, List<DetectorResponse> r, org.jlab.detector.base.DetectorType t) Find the first matching response in the given list for the given particle.- Specified by:
firstMatch
in interfaceIMatch
- Parameters:
p
- the particler
- the list of responsest
- the requested detector type to consider- Returns:
- the index of the resulting match, else negative
-
bestMatch
public final int bestMatch(DetectorParticle p, List<DetectorResponse> r, org.jlab.detector.base.DetectorType t, int l) Find the best matching response in the given list for the given particle. -
bestMatch
public final int bestMatch(DetectorParticle p, List<DetectorResponse> r, org.jlab.detector.base.DetectorType t) Find the best matching response in the given list for the given particle. -
compare
public int compare(javafx.util.Pair<DetectorParticle, DetectorResponse> a, javafx.util.Pair<DetectorParticle, DetectorResponse> b) Compare the quality of two particle-response pairs.- Specified by:
compare
in interfaceComparator<javafx.util.Pair<DetectorParticle, DetectorResponse>>
- Parameters:
a
-b
-- Returns:
-