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)
 
bool operator() (MuonTransientTrackingRecHit::MuonRecHitPointer hit_1, MuonTransientTrackingRecHit::MuonRecHitPointer hit_2)
 

Detailed Description

Definition at line 29 of file SETFilter.cc.

Member Function Documentation

Definition at line 31 of file SETFilter.cc.

References GeomDetEnumerators::CSC.

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

Definition at line 45 of file SETSeedFinder.cc.

46  {
47  return (hit_1->globalPosition().mag2()<hit_2->globalPosition().mag2());
48 
49  }