CMS 3D CMS Logo

TrackingRecHitLessFromGlobalPosition.h
Go to the documentation of this file.
1 #ifndef DataFormats_TrackerRecHit2D_TrackingRecHitLessFromGlobalPosition_H
2 #define DataFormats_TrackerRecHit2D_TrackingRecHitLessFromGlobalPosition_H
3 
6 #include <functional>
14 public:
16  : geometry(geometry_), theDir(dir) {}
17 
18  bool operator()(const TrackingRecHit& a, const TrackingRecHit& b) const {
19  if (theDir == alongMomentum)
20  return insideOutLess(a, b);
21  else
22  return insideOutLess(b, a);
23  }
24 
25 private:
26  bool insideOutLess(const TrackingRecHit& a, const TrackingRecHit& b) const;
27 
28  bool barrelForwardLess(const TrackingRecHit& a, const TrackingRecHit& b) const;
29 
32 };
33 #endif
TrackingRecHitLessFromGlobalPosition(const TrackingGeometry *geometry_, PropagationDirection dir=alongMomentum)
PropagationDirection
bool operator()(const TrackingRecHit &a, const TrackingRecHit &b) const
bool insideOutLess(const TrackingRecHit &a, const TrackingRecHit &b) const
bool barrelForwardLess(const TrackingRecHit &a, const TrackingRecHit &b) const
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119