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>
15 public:
16 
18  geometry(geometry_), theDir(dir){ }
19 
20 
21  bool operator()( const TrackingRecHit& a, const TrackingRecHit& b) const {
22  if (theDir == alongMomentum) return insideOutLess( a, b);
23  else return insideOutLess( b, a);
24  }
25 
26  private:
27 
28  bool insideOutLess( const TrackingRecHit& a, const TrackingRecHit& b) const;
29 
30  bool barrelForwardLess( const TrackingRecHit& a, const TrackingRecHit& b) const;
31 
32 
35 };
36 #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