CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TkDetUtil.h
Go to the documentation of this file.
1 #ifndef TkDetLayers_TkDetUtil_h
2 #define TkDetLayers_TkDetUtil_h
3 
9 
10 #pragma GCC visibility push(hidden)
11 
12 class GeomDet;
13 class Plane;
15 
16 namespace tkDetUtil {
17 
18  inline
19  bool overlapInPhi( float phi, const GeomDet & det, float phiWindow) {
20  std::pair<float,float> phiRange(phi-phiWindow, phi+phiWindow);
21  return rangesIntersect( phiRange, det.surface().phiSpan(), PhiLess());
22  }
23 
24 
25  inline
26  bool overlapInPhi( GlobalPoint crossPoint,const GeomDet & det, float phiWindow) {
27  return overlapInPhi(crossPoint.barePhi(), det,phiWindow);
28  }
29 
30 
31 
32  float computeWindowSize( const GeomDet* det,
33  const TrajectoryStateOnSurface& tsos,
34  const MeasurementEstimator& est);
35 
36 
37  float
39  const TrajectoryStateOnSurface& ts,
40  const Plane& plane);
41 
42 
43 }
44 
45 #pragma GCC visibility pop
46 #endif // TkDetLayers_TkDetUtil_h
std::pair< float, float > const & phiSpan() const
Definition: Surface.h:131
bool overlapInPhi(float phi, const GeomDet &det, float phiWindow)
Definition: TkDetUtil.h:19
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:40
Definition: Plane.h:17
float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est)
Definition: TkDetUtil.cc:10
T barePhi() const
Definition: PV3DBase.h:68
bool rangesIntersect(const Range &a, const Range &b)
float calculatePhiWindow(const MeasurementEstimator::Local2DVector &maxDistance, const TrajectoryStateOnSurface &ts, const Plane &plane)
Definition: TkDetUtil.cc:22
Definition: DDAxes.h:10