CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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>
16 public:
17 
19  geometry(geometry_), theDir(dir){ }
20 
21 
22  bool operator()( const TrackingRecHit& a, const TrackingRecHit& b) const {
23  if (theDir == alongMomentum) return insideOutLess( a, b);
24  else return insideOutLess( b, a);
25  }
26 
27  private:
28 
29  bool insideOutLess( const TrackingRecHit& a, const TrackingRecHit& b) const;
30 
31  bool barrelForwardLess( const TrackingRecHit& a, const TrackingRecHit& b) const;
32 
33 
36 };
37 #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:120
bool operator()(const TrackingRecHit &a, const TrackingRecHit &b) const
double a
Definition: hdecay.h:121
dbl *** dir
Definition: mlp_gen.cc:35