#include <RoadSearchHitSorting.h>
Public Member Functions | |
bool | operator() (const TrackingRecHit &rh1, const TrackingRecHit &rh2) const |
SortHitsByY (const TrackerGeometry &tracker) | |
Private Attributes | |
const TrackerGeometry & | _tracker |
Definition at line 96 of file RoadSearchHitSorting.h.
SortHitsByY::SortHitsByY | ( | const TrackerGeometry & | tracker | ) | [inline] |
Definition at line 98 of file RoadSearchHitSorting.h.
: _tracker(tracker) {}
bool SortHitsByY::operator() | ( | const TrackingRecHit & | rh1, |
const TrackingRecHit & | rh2 | ||
) | const [inline] |
Definition at line 99 of file RoadSearchHitSorting.h.
References _tracker, abs, TrackingRecHit::geographicalId(), TrackerGeometry::idToDet(), TrackingRecHit::localPosition(), query::result, GeomDet::toGlobal(), and detailsBasic3DVector::y.
{ bool result = static_cast<unsigned int>(std::abs(_tracker.idToDet(rh1.geographicalId())->surface().toGlobal(rh1.localPosition()).y()) * 1E7) < static_cast<unsigned int>(std::abs(_tracker.idToDet(rh2.geographicalId())->surface().toGlobal(rh2.localPosition()).y()) * 1E7) ; return result; };
const TrackerGeometry& SortHitsByY::_tracker [private] |
Definition at line 106 of file RoadSearchHitSorting.h.
Referenced by operator()().