#include <CosmicTrajectoryBuilder.h>
Public Member Functions | |
CompareHitY_plus (const TrackerGeometry &tracker) | |
CompareHitY_plus (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 57 of file CosmicTrajectoryBuilder.h.
CompareHitY_plus::CompareHitY_plus | ( | const TrackerGeometry & | tracker | ) | [inline] |
Definition at line 59 of file CosmicTrajectoryBuilder.h.
:_tracker(tracker){}
CompareHitY_plus::CompareHitY_plus | ( | const TrackerGeometry & | tracker | ) | [inline] |
Definition at line 114 of file CRackTrajectoryBuilder.h.
:_tracker(tracker){}
bool CompareHitY_plus::operator() | ( | const TrackingRecHit * | rh1, |
const TrackingRecHit * | rh2 | ||
) | [inline] |
Definition at line 60 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_plus::operator() | ( | const TrackingRecHit * | rh1, |
const TrackingRecHit * | rh2 | ||
) | [inline] |
Definition at line 115 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_plus::_tracker [private] |
Definition at line 65 of file CosmicTrajectoryBuilder.h.
Referenced by operator()().