CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
CmsTrackerLevelBuilder::LessZ Struct Reference

#include <CmsTrackerLevelBuilder.h>

Public Member Functions

bool operator() (const GeometricDet *a, const GeometricDet *b) const
 

Detailed Description

Definition at line 42 of file CmsTrackerLevelBuilder.h.

Member Function Documentation

bool CmsTrackerLevelBuilder::LessZ::operator() ( const GeometricDet a,
const GeometricDet b 
) const
inline

Definition at line 43 of file CmsTrackerLevelBuilder.h.

References GeometricDet::translation().

44  {
45  // NP** change for Phase 2 Tracker
46  if (a->translation().z() == b->translation().z())
47  {return a->translation().rho() < b->translation().rho();}
48  else{
49  // Original version
50  return a->translation().z() < b->translation().z();}
51  }
DDTranslation const & translation() const
Definition: GeometricDet.h:123