public class SortLayers extends Object implements Comparator<SeedLayer>
Modifier and Type | Field and Description |
---|---|
private Map<SeedLayer,List<HelicalTrackHit>> |
_lyrmap |
Constructor and Description |
---|
SortLayers(Map<SeedLayer,List<HelicalTrackHit>> lyrmap)
SortLayers constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(SeedLayer a,
SeedLayer b)
Comparison method that returns 1 if layer b has fewer hits than layer a.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
private Map<SeedLayer,List<HelicalTrackHit>> _lyrmap
public SortLayers(Map<SeedLayer,List<HelicalTrackHit>> lyrmap)
lyrmap
- map that stores list of hits keyed by layerpublic int compare(SeedLayer a, SeedLayer b)
compare
in interface Comparator<SeedLayer>
a
- b
- Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.