CMS 3D CMS Logo

List of all members | Public Member Functions
MuonDetLayerComp Class Reference

#include <MuonDetLayerMap.h>

Public Member Functions

bool operator() (const BarrelDetLayer *l1, const BarrelDetLayer *l2) const
 
bool operator() (const ForwardDetLayer *l1, const ForwardDetLayer *l2) const
 

Detailed Description

Sort the of BarrelDetLayers by radius, ForwardDetLayer by |Z|.

Author
: Stefano Lacaprara, Nicola Amapane

Definition at line 21 of file MuonDetLayerMap.h.

Member Function Documentation

bool MuonDetLayerComp::operator() ( const BarrelDetLayer l1,
const BarrelDetLayer l2 
) const
inline

Definition at line 22 of file MuonDetLayerMap.h.

References BarrelDetLayer::specificSurface().

22  {
23  if ( l1->specificSurface().radius() < l2->specificSurface().radius() ) return true;
24  return false;
25  }
virtual const BoundCylinder & specificSurface() const final
Extension of the interface.
bool MuonDetLayerComp::operator() ( const ForwardDetLayer l1,
const ForwardDetLayer l2 
) const
inline

Definition at line 27 of file MuonDetLayerMap.h.

References GloballyPositioned< T >::position(), ForwardDetLayer::surface(), and PV3DBase< T, PVType, FrameType >::z().

27  {
28  if ( fabs(l1->surface().position().z()) < fabs(l2->surface().position().z()) ) return true;
29  return false;
30  }
T z() const
Definition: PV3DBase.h:64
const BoundSurface & surface() const final
The surface of the GeometricSearchDet.
const PositionType & position() const