CMS 3D CMS Logo

MTDDetLayerMap.h
Go to the documentation of this file.
1 #ifndef MTDDetLayerMap_h
2 #define MTDDetLayerMap_h
3 
7 
8 #include <map>
9 #include <functional>
10 
22  bool operator()(const BarrelDetLayer* l1, const BarrelDetLayer* l2) const {
23  if ( l1->specificSurface().radius() < l2->specificSurface().radius() ) return true;
24  return false;
25  }
26 
27  bool operator()(const ForwardDetLayer* l1, const ForwardDetLayer* l2) const {
28  if ( fabs(l1->surface().position().z()) < fabs(l2->surface().position().z()) ) return true;
29  return false;
30  }
31 };
32 
33 
34 // FIXME: these names are too generic...
35 typedef std::map<const BarrelDetLayer*, MTDEtaRange, MTDDetLayerComp> MapB;
36 typedef std::map<const ForwardDetLayer*, MTDEtaRange, MTDDetLayerComp> MapE;
37 typedef MapB::const_iterator MapBI;
38 typedef MapE::const_iterator MapEI;
39 
40 #endif
41 
MapB::const_iterator MapBI
bool operator()(const ForwardDetLayer *l1, const ForwardDetLayer *l2) const
std::map< const BarrelDetLayer *, MTDEtaRange, MTDDetLayerComp > MapB
virtual const BoundCylinder & specificSurface() const final
Extension of the interface.
bool operator()(const BarrelDetLayer *l1, const BarrelDetLayer *l2) const
T z() const
Definition: PV3DBase.h:64
const BoundSurface & surface() const final
The surface of the GeometricSearchDet.
MapE::const_iterator MapEI
const PositionType & position() const
std::map< const ForwardDetLayer *, MTDEtaRange, MTDDetLayerComp > MapE