CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
PixelHitMatcher::ForwardMeasurementEstimator Struct Reference

Public Member Functions

bool operator() (const GlobalPoint &vprim, const TrajectoryStateOnSurface &ts, const GlobalPoint &gp) const
 

Public Attributes

float thePhiMax
 
float thePhiMin
 
float theRMax
 
const float theRMaxI
 
float theRMin
 
const float theRMinI
 

Detailed Description

Definition at line 82 of file PixelHitMatcher.h.

Member Function Documentation

bool PixelHitMatcher::ForwardMeasurementEstimator::operator() ( const GlobalPoint vprim,
const TrajectoryStateOnSurface ts,
const GlobalPoint gp 
) const

Definition at line 15 of file PixelHitMatcher.cc.

References funct::abs(), PV3DBase< T, PVType, FrameType >::barePhi(), f, TrajectoryStateOnSurface::globalParameters(), runTauDisplay::gp, normalizedPhi(), PV3DBase< T, PVType, FrameType >::perp(), GlobalTrajectoryParameters::position(), photonAnalyzer_cfi::rMax, photonAnalyzer_cfi::rMin, and PV3DBase< T, PVType, FrameType >::z().

17  {
18  GlobalVector ts = absolute_ts.globalParameters().position() - vprim;
19  GlobalVector gp = absolute_gp - vprim;
20 
21  float rDiff = gp.perp() - ts.perp();
22  float rMin = theRMin;
23  float rMax = theRMax;
24  float myZ = gp.z();
25  if ((std::abs(myZ) > 70.f) & (std::abs(myZ) < 170.f)) {
26  rMin = theRMinI;
27  rMax = theRMaxI;
28  }
29 
30  if ((rDiff >= rMax) | (rDiff <= rMin))
31  return false;
32 
33  float phiDiff = normalizedPhi(gp.barePhi() - ts.barePhi());
34 
35  return (phiDiff < thePhiMax) & (phiDiff > thePhiMin);
36 }
T perp() const
Definition: PV3DBase.h:69
constexpr T normalizedPhi(T phi)
Definition: normalizedPhi.h:8
T barePhi() const
Definition: PV3DBase.h:65
T z() const
Definition: PV3DBase.h:61
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double f[11][100]
const GlobalTrajectoryParameters & globalParameters() const

Member Data Documentation

float PixelHitMatcher::ForwardMeasurementEstimator::thePhiMax

Definition at line 86 of file PixelHitMatcher.h.

Referenced by PixelHitMatcher::set1stLayer(), and PixelHitMatcher::set2ndLayer().

float PixelHitMatcher::ForwardMeasurementEstimator::thePhiMin

Definition at line 85 of file PixelHitMatcher.h.

Referenced by PixelHitMatcher::set1stLayer(), and PixelHitMatcher::set2ndLayer().

float PixelHitMatcher::ForwardMeasurementEstimator::theRMax

Definition at line 88 of file PixelHitMatcher.h.

Referenced by PixelHitMatcher::set1stLayerZRange().

const float PixelHitMatcher::ForwardMeasurementEstimator::theRMaxI

Definition at line 90 of file PixelHitMatcher.h.

float PixelHitMatcher::ForwardMeasurementEstimator::theRMin

Definition at line 87 of file PixelHitMatcher.h.

Referenced by PixelHitMatcher::set1stLayerZRange().

const float PixelHitMatcher::ForwardMeasurementEstimator::theRMinI

Definition at line 89 of file PixelHitMatcher.h.