CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
24  bool operator()(BarrelDetLayer* l1, BarrelDetLayer* l2) const {
25  if ( l1->specificSurface().radius() < l2->specificSurface().radius() ) return true;
26  return false;
27  }
28 
30  if ( fabs(l1->surface().position().z()) < fabs(l2->surface().position().z()) ) return true;
31  return false;
32  }
33 };
34 
35 
36 // FIXME: these names are too generic...
37 typedef std::map<BarrelDetLayer*, MuonEtaRange, MuonDetLayerComp> MapB;
38 typedef std::map<ForwardDetLayer*, MuonEtaRange, MuonDetLayerComp> MapE;
39 typedef MapB::const_iterator MapBI;
40 typedef MapE::const_iterator MapEI;
41 
42 #endif
43 
std::map< ForwardDetLayer *, MuonEtaRange, MuonDetLayerComp > MapE
bool operator()(BarrelDetLayer *l1, BarrelDetLayer *l2) const
MapB::const_iterator MapBI
bool operator()(ForwardDetLayer *l1, ForwardDetLayer *l2) const
std::map< BarrelDetLayer *, MuonEtaRange, MuonDetLayerComp > MapB
MapE::const_iterator MapEI
virtual const BoundSurface & surface() const GCC11_FINAL
The surface of the GeometricSearchDet.
T z() const
Definition: PV3DBase.h:64
const PositionType & position() const
virtual const BoundCylinder & specificSurface() const GCC11_FINAL
Extension of the interface.