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())
24  return true;
25  return false;
26  }
27 
28  bool operator()(const ForwardDetLayer* l1, const ForwardDetLayer* l2) const {
29  if (fabs(l1->surface().position().z()) < fabs(l2->surface().position().z()))
30  return true;
31  return false;
32  }
33 };
34 
35 // FIXME: these names are too generic...
36 typedef std::map<const BarrelDetLayer*, MTDEtaRange, MTDDetLayerComp> MapB;
37 typedef std::map<const ForwardDetLayer*, MTDEtaRange, MTDDetLayerComp> MapE;
38 typedef MapB::const_iterator MapBI;
39 typedef MapE::const_iterator MapEI;
40 
41 #endif
MTDDetLayerComp
Definition: MTDDetLayerMap.h:21
ForwardDetLayer::surface
const BoundSurface & surface() const final
The surface of the GeometricSearchDet.
Definition: ForwardDetLayer.h:29
MapBI
MapB::const_iterator MapBI
Definition: MTDDetLayerMap.h:38
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
MapEI
MapE::const_iterator MapEI
Definition: MTDDetLayerMap.h:39
MapB
std::map< const BarrelDetLayer *, MTDEtaRange, MTDDetLayerComp > MapB
Definition: MTDDetLayerMap.h:36
BarrelDetLayer.h
BarrelDetLayer
Definition: BarrelDetLayer.h:22
GloballyPositioned::position
const PositionType & position() const
Definition: GloballyPositioned.h:36
MTDEtaRange.h
ForwardDetLayer
Definition: ForwardDetLayer.h:22
MapE
std::map< const ForwardDetLayer *, MTDEtaRange, MTDDetLayerComp > MapE
Definition: MTDDetLayerMap.h:37
ForwardDetLayer.h
MTDDetLayerComp::operator()
bool operator()(const BarrelDetLayer *l1, const BarrelDetLayer *l2) const
Definition: MTDDetLayerMap.h:22
MTDDetLayerComp::operator()
bool operator()(const ForwardDetLayer *l1, const ForwardDetLayer *l2) const
Definition: MTDDetLayerMap.h:28
BarrelDetLayer::specificSurface
virtual const BoundCylinder & specificSurface() const final
Extension of the interface.
Definition: BarrelDetLayer.h:39