CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MuonDetLayerMap.h
Go to the documentation of this file.
1 #ifndef MuonDetLayerMap_h
2 #define MuonDetLayerMap_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*, MuonEtaRange, MuonDetLayerComp> MapB;
37 typedef std::map<const ForwardDetLayer*, MuonEtaRange, MuonDetLayerComp> MapE;
38 typedef MapB::const_iterator MapBI;
39 typedef MapE::const_iterator MapEI;
40 
41 #endif
const BoundSurface & surface() const final
The surface of the GeometricSearchDet.
MapB::const_iterator MapBI
std::map< const BarrelDetLayer *, MuonEtaRange, MuonDetLayerComp > MapB
MapE::const_iterator MapEI
T z() const
Definition: PV3DBase.h:61
std::map< const ForwardDetLayer *, MuonEtaRange, MuonDetLayerComp > MapE
virtual const BoundCylinder & specificSurface() const final
Extension of the interface.
bool operator()(const BarrelDetLayer *l1, const BarrelDetLayer *l2) const
bool operator()(const ForwardDetLayer *l1, const ForwardDetLayer *l2) const
const PositionType & position() const