CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
bool barrelForwardLess(const TrackingRecHit &a, const TrackingRecHit &b) const
TrackingRecHitLessFromGlobalPosition(const TrackingGeometry *geometry_, PropagationDirection dir=alongMomentum)
PropagationDirection
bool insideOutLess(const TrackingRecHit &a, const TrackingRecHit &b) const
double b
Definition: hdecay.h:118
bool operator()(const TrackingRecHit &a, const TrackingRecHit &b) const
double a
Definition: hdecay.h:119