CMS 3D CMS Logo

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

Public Member Functions

bool operator() (TransientTrackingRecHit::ConstRecHitPointer hit_1, TransientTrackingRecHit::ConstRecHitPointer hit_2) const
 
 sorter ()
 

Detailed Description

Definition at line 31 of file SETFilter.cc.

Constructor & Destructor Documentation

sorter::sorter ( )
inline

Definition at line 33 of file SETFilter.cc.

33 {}

Member Function Documentation

bool sorter::operator() ( TransientTrackingRecHit::ConstRecHitPointer  hit_1,
TransientTrackingRecHit::ConstRecHitPointer  hit_2 
) const
inline

Definition at line 34 of file SETFilter.cc.

References GeomDetEnumerators::CSC.

35  {
36  if (hit_1->det()->subDetector() != GeomDetEnumerators::CSC ||
37  hit_2->det()->subDetector() != GeomDetEnumerators::CSC) {
38  // this is a piculiar "fix" for CSCs
39  return (hit_1->globalPosition().mag2() > hit_2->globalPosition().mag2());
40  } else {
41  return (fabs(hit_1->globalPosition().z()) > fabs(hit_2->globalPosition().z()));
42  }
43  }