test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GeomDetLess.h
Go to the documentation of this file.
1 #ifndef TrackerGeometryBuilder_GeomDetLess_H
2 #define TrackerGeometryBuilder_GeomDetLess_H
3 
6 #include <functional>
7 
12 class GeomDetLess {
13 public:
14 
16  theDir(dir) {}
17 
18  bool operator()( const GeomDet* a, const GeomDet* b) const {
19  if (theDir == alongMomentum) return insideOutLess( a, b);
20  else return insideOutLess( b, a);
21  }
22 
23  private:
24 
26 
27  bool insideOutLess( const GeomDet*,const GeomDet*) const;
28 
29  bool barrelForwardLess( const GeomDet* blb,
30  const GeomDet* fla) const;
31 
32 };
33 
34 #endif
bool barrelForwardLess(const GeomDet *blb, const GeomDet *fla) const
Definition: GeomDetLess.cc:38
bool insideOutLess(const GeomDet *, const GeomDet *) const
Definition: GeomDetLess.cc:6
PropagationDirection
bool operator()(const GeomDet *a, const GeomDet *b) const
Definition: GeomDetLess.h:18
GeomDetLess(PropagationDirection dir=alongMomentum)
Definition: GeomDetLess.h:15
PropagationDirection theDir
Definition: GeomDetLess.h:25
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
dbl *** dir
Definition: mlp_gen.cc:35