#include <CosmicTrajectoryBuilder.h>
Public Member Functions | |
CompareHitY (const TrackerGeometry &tracker) | |
CompareHitY (const TrackerGeometry &tracker) | |
bool | operator() (const TrackingRecHit *rh1, const TrackingRecHit *rh2) |
bool | operator() (const TrackingRecHit *rh1, const TrackingRecHit *rh2) |
Private Attributes | |
const TrackerGeometry & | _tracker |
Definition at line 43 of file CosmicTrajectoryBuilder.h.
CompareHitY::CompareHitY | ( | const TrackerGeometry & | tracker | ) | [inline] |
Definition at line 45 of file CosmicTrajectoryBuilder.h.
:_tracker(tracker){}
CompareHitY::CompareHitY | ( | const TrackerGeometry & | tracker | ) | [inline] |
Definition at line 100 of file CRackTrajectoryBuilder.h.
:_tracker(tracker){}
bool CompareHitY::operator() | ( | const TrackingRecHit * | rh1, |
const TrackingRecHit * | rh2 | ||
) | [inline] |
Definition at line 46 of file CosmicTrajectoryBuilder.h.
References _tracker, TrackingRecHit::geographicalId(), TrackerGeometry::idToDet(), TrackingRecHit::localPosition(), and GeomDet::toGlobal().
{ GlobalPoint gp1=_tracker.idToDet(rh1->geographicalId())->surface().toGlobal(rh1->localPosition()); GlobalPoint gp2=_tracker.idToDet(rh2->geographicalId())->surface().toGlobal(rh2->localPosition()); return gp1.y()<gp2.y();};
bool CompareHitY::operator() | ( | const TrackingRecHit * | rh1, |
const TrackingRecHit * | rh2 | ||
) | [inline] |
Definition at line 101 of file CRackTrajectoryBuilder.h.
References _tracker, TrackingRecHit::geographicalId(), TrackerGeometry::idToDet(), TrackingRecHit::localPosition(), GeomDet::toGlobal(), and PV3DBase< T, PVType, FrameType >::y().
{ GlobalPoint gp1=_tracker.idToDet(rh1->geographicalId())->surface().toGlobal(rh1->localPosition()); GlobalPoint gp2=_tracker.idToDet(rh2->geographicalId())->surface().toGlobal(rh2->localPosition()); return gp1.y()<gp2.y();};
const TrackerGeometry & CompareHitY::_tracker [private] |
Definition at line 51 of file CosmicTrajectoryBuilder.h.
Referenced by operator()().