CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OuterHitCompatibility.cc
Go to the documentation of this file.
6 
11 
13 {
14  GlobalPoint hitPos = hit.globalPosition();
15  float hitR = hitPos.perp();
16  float hitPhi = hitPos.phi();
17 
18  if ( !checkPhi(hitPhi, hitR) ) return false;
19 
20  float hitZ = hitPos.z();
21  if ( !(*theRZCompatibility)(hitR,hitZ) ) return false;
22 
23  return true;
24 }
25 
T perp() const
Definition: PV3DBase.h:72
Geom::Phi< T > phi() const
Definition: PV3DBase.h:69
virtual GlobalPoint globalPosition() const
const HitRZCompatibility * theRZCompatibility
T z() const
Definition: PV3DBase.h:64
bool checkPhi(float phi, float r) const
bool operator()(const TrackingRecHit &hit) const