CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
MuonDetLayerComp Class Reference

#include <MuonDetLayerMap.h>

Public Member Functions

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

Detailed Description

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

Date:
2006/10/13 15:06:01
Revision:
1.1
Author
: Stefano Lacaprara, Nicola Amapane

Definition at line 23 of file MuonDetLayerMap.h.

Member Function Documentation

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

Definition at line 24 of file MuonDetLayerMap.h.

References Cylinder::radius(), and BarrelDetLayer::specificSurface().

24  {
25  if ( l1->specificSurface().radius() < l2->specificSurface().radius() ) return true;
26  return false;
27  }
Scalar radius() const
Radius of the cylinder.
Definition: Cylinder.h:55
virtual const BoundCylinder & specificSurface() const
Extension of the interface.
bool MuonDetLayerComp::operator() ( ForwardDetLayer l1,
ForwardDetLayer l2 
) const
inline

Definition at line 29 of file MuonDetLayerMap.h.

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

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