#include <RecoTracker/SingleTrackPattern/interface/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 |
const TrackerGeometry & | _tracker |
Definition at line 43 of file CosmicTrajectoryBuilder.h.
CompareHitY::CompareHitY | ( | const TrackerGeometry & | tracker | ) | [inline] |
CompareHitY::CompareHitY | ( | const TrackerGeometry & | tracker | ) | [inline] |
bool CompareHitY::operator() | ( | const TrackingRecHit * | rh1, | |
const TrackingRecHit * | rh2 | |||
) | [inline] |
Definition at line 101 of file CRackTrajectoryBuilder.h.
References _tracker, TrackingRecHit::geographicalId(), gp1, TrackerGeometry::idToDet(), TrackingRecHit::localPosition(), and GeomDet::toGlobal().
00103 { 00104 GlobalPoint gp1=_tracker.idToDet(rh1->geographicalId())->surface().toGlobal(rh1->localPosition()); 00105 GlobalPoint gp2=_tracker.idToDet(rh2->geographicalId())->surface().toGlobal(rh2->localPosition()); 00106 return gp1.y()<gp2.y();};
bool CompareHitY::operator() | ( | const TrackingRecHit * | rh1, | |
const TrackingRecHit * | rh2 | |||
) | [inline] |
Definition at line 46 of file CosmicTrajectoryBuilder.h.
References _tracker, TrackingRecHit::geographicalId(), gp1, TrackerGeometry::idToDet(), TrackingRecHit::localPosition(), and GeomDet::toGlobal().
00048 { 00049 GlobalPoint gp1=_tracker.idToDet(rh1->geographicalId())->surface().toGlobal(rh1->localPosition()); 00050 GlobalPoint gp2=_tracker.idToDet(rh2->geographicalId())->surface().toGlobal(rh2->localPosition()); 00051 return gp1.y()<gp2.y();};
const TrackerGeometry& CompareHitY::_tracker [private] |
Definition at line 106 of file CRackTrajectoryBuilder.h.
const TrackerGeometry& CompareHitY::_tracker [private] |