#include <RecoTracker/TrackProducer/interface/TrackingRecHitLess.h>
Public Member Functions | |
bool | operator() (const TrackingRecHit &a, const TrackingRecHit &b) const |
TrackingRecHitLess (const TrackingGeometry *geometry_, PropagationDirection dir=alongMomentum) | |
Private Attributes | |
const TrackingGeometry * | g_ |
GeomDetLess * | less_ |
Definition at line 18 of file TrackingRecHitLess.h.
TrackingRecHitLess::TrackingRecHitLess | ( | const TrackingGeometry * | geometry_, | |
PropagationDirection | dir = alongMomentum | |||
) | [inline] |
Definition at line 21 of file TrackingRecHitLess.h.
00021 : 00022 g_(geometry_){ 00023 less_ = new GeomDetLess(dir); 00024 }
bool TrackingRecHitLess::operator() | ( | const TrackingRecHit & | a, | |
const TrackingRecHit & | b | |||
) | const [inline] |
Definition at line 27 of file TrackingRecHitLess.h.
References g_, TrackingRecHit::geographicalId(), TrackingGeometry::idToDet(), and less_.
00027 { 00028 00029 return less_->operator()( 00030 g_->idToDet(a.geographicalId()), g_->idToDet(b.geographicalId())); 00031 }
const TrackingGeometry* TrackingRecHitLess::g_ [private] |
GeomDetLess* TrackingRecHitLess::less_ [private] |
Definition at line 35 of file TrackingRecHitLess.h.
Referenced by operator()(), and TrackingRecHitLess().