CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 29 of file SETFilter.cc.

Constructor & Destructor Documentation

sorter::sorter ( )
inline

Definition at line 31 of file SETFilter.cc.

31 {}

Member Function Documentation

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

Definition at line 32 of file SETFilter.cc.

References GeomDetEnumerators::CSC.

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