#include <RecoTracker/SingleTrackPattern/interface/CRackTrajectoryBuilder.h>
Public Member Functions | |
CompareDetY_minus (const TrackerGeometry &tracker) | |
bool | operator() (const TrackingRecHit *rh1, const TrackingRecHit *rh2) |
Private Attributes | |
const TrackerGeometry & | _tracker |
Definition at line 70 of file CRackTrajectoryBuilder.h.
CompareDetY_minus::CompareDetY_minus | ( | const TrackerGeometry & | tracker | ) | [inline] |
bool CompareDetY_minus::operator() | ( | const TrackingRecHit * | rh1, | |
const TrackingRecHit * | rh2 | |||
) | [inline] |
Definition at line 73 of file CRackTrajectoryBuilder.h.
References _tracker, TrackingRecHit::geographicalId(), gp1, TrackerGeometry::idToDet(), GeomDet::position(), and PV3DBase< T, PVType, FrameType >::y().
00075 { 00076 const GeomDet* detPos1 = _tracker.idToDet(rh1->geographicalId()); 00077 const GeomDet* detPos2 = _tracker.idToDet(rh2->geographicalId()); 00078 00079 GlobalPoint gp1 = detPos1->position(); 00080 GlobalPoint gp2 = detPos2->position(); 00081 00082 if (gp1.y()<gp2.y()) 00083 return true; 00084 if (gp1.y()>gp2.y()) 00085 return false; 00086 // if (gp1.y()== gp2.y()) 00087 // 00088 return (rh1->geographicalId() < rh2->geographicalId()); 00089 };
const TrackerGeometry& CompareDetY_minus::_tracker [private] |