#include <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_ |
Defines order of layers in the Tracker as seen by straight tracks coming from the interaction region.
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.
: g_(geometry_){ less_ = new GeomDetLess(dir); }
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_.
{ return less_->operator()( g_->idToDet(a.geographicalId()), g_->idToDet(b.geographicalId())); }
const TrackingGeometry* TrackingRecHitLess::g_ [private] |
Definition at line 34 of file TrackingRecHitLess.h.
Referenced by operator()().
GeomDetLess* TrackingRecHitLess::less_ [private] |
Definition at line 35 of file TrackingRecHitLess.h.
Referenced by operator()(), and TrackingRecHitLess().