29 unsigned int idetA =
static_cast<unsigned int>(ida.subdetId());
30 unsigned int idetB =
static_cast<unsigned int>(idb.subdetId());
49 if (!same_det)
return (idetA < idetB);
72 throw Genexception(
"SortHitsByGlobalPosition: arguments are not Ok");
90 unsigned int idetA =
static_cast<unsigned int>(ida.subdetId());
91 unsigned int idetB =
static_cast<unsigned int>(idb.subdetId());
110 if (!same_det)
return (idetA < idetB);
133 throw Genexception(
"SortHitPointersByGlobalPosition: arguments are not Ok");
147 const std::pair<TransientTrackingRecHit::ConstRecHitPointer, TrajectoryMeasurement*>& HitTM2 )
const
151 DetId ida(HitTM1.first->det()->geographicalId());
152 DetId idb(HitTM2.first->det()->geographicalId());
155 LogDebug(
"RoadSearch")<<
" Comparing (r/phi/z) Hit 1 on DetID "
156 << ida.rawId() <<
" : "
157 << HitTM1.first->globalPosition().perp() <<
" / "
158 << HitTM1.first->globalPosition().phi() <<
" / "
159 << HitTM1.first->globalPosition().z()
160 <<
" and Hit 2 on DetID "
161 << idb.rawId() <<
" : "
162 << HitTM2.first->globalPosition().perp() <<
" / "
163 << HitTM2.first->globalPosition().phi() <<
" / "
164 << HitTM2.first->globalPosition().z() ;
169 return static_cast<unsigned int>(HitTM1.first->globalPosition().perp() * 1E7) < static_cast<unsigned int>(HitTM2.first->globalPosition().perp() * 1E7);
174 return static_cast<unsigned int>(
std::abs(HitTM1.first->globalPosition().z()) * 1E7) <
static_cast<unsigned int>(
std::abs(HitTM2.first->globalPosition().z()) * 1E7);
183 LogDebug(
"RoadSearch") <<
"*** How did this happen ?!?!? ***" ;
185 LogDebug(
"RoadSearch") <<
"*** How did this happen ?!?!? ***" ;
189 throw Genexception(
"SortHitTrajectoryPairsByGlobalPosition: arguments are not Ok");
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
const TrackingGeometry * geometry
bool barrelForwardLess(const TrackingRecHit *a, const TrackingRecHit *b) const
bool insideOutLess(const TrackingRecHit *a, const TrackingRecHit *b) const
bool InsideOutCompare(const std::pair< TransientTrackingRecHit::ConstRecHitPointer, TrajectoryMeasurement * > &HitTM1, const std::pair< TransientTrackingRecHit::ConstRecHitPointer, TrajectoryMeasurement * > &HitTM2) const
const TrackingGeometry * geometry
bool insideOutLess(const TrackingRecHit &a, const TrackingRecHit &b) const
virtual const GeomDet * idToDet(DetId) const =0
T perp() const
Magnitude of transverse component.
const BoundPlane & surface() const
The nominal surface of the GeomDet.
DetId geographicalId() const
virtual LocalPoint localPosition() const =0
bool barrelForwardLess(const TrackingRecHit &a, const TrackingRecHit &b) const