CMS 3D CMS Logo

MuonDetLayerComp Class Reference

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

#include <RecoMuon/Navigation/interface/MuonDetLayerMap.h>

List of all members.

Public Member Functions

bool operator() (ForwardDetLayer *l1, ForwardDetLayer *l2) const
bool operator() (BarrelDetLayer *l1, BarrelDetLayer *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() ( ForwardDetLayer l1,
ForwardDetLayer l2 
) const [inline]

Definition at line 29 of file MuonDetLayerMap.h.

References GloballyPositioned< T >::position(), and ForwardDetLayer::surface().

00029                                                                     {
00030       if ( fabs(l1->surface().position().z()) < fabs(l2->surface().position().z()) ) return true;
00031       return false;
00032     }

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

Definition at line 24 of file MuonDetLayerMap.h.

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

00024                                                                   {
00025       if ( l1->specificSurface().radius() < l2->specificSurface().radius() ) return true;
00026       return false;
00027     }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:28:41 2009 for CMSSW by  doxygen 1.5.4