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

◆ operator()()

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

Definition at line 15 of file PixelHitMatcher.cc.

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 }

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

Member Data Documentation

◆ thePhiMax

float PixelHitMatcher::ForwardMeasurementEstimator::thePhiMax

Definition at line 86 of file PixelHitMatcher.h.

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

◆ thePhiMin

float PixelHitMatcher::ForwardMeasurementEstimator::thePhiMin

Definition at line 85 of file PixelHitMatcher.h.

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

◆ theRMax

float PixelHitMatcher::ForwardMeasurementEstimator::theRMax

Definition at line 88 of file PixelHitMatcher.h.

Referenced by PixelHitMatcher::set1stLayerZRange().

◆ theRMaxI

const float PixelHitMatcher::ForwardMeasurementEstimator::theRMaxI

Definition at line 90 of file PixelHitMatcher.h.

◆ theRMin

float PixelHitMatcher::ForwardMeasurementEstimator::theRMin

Definition at line 87 of file PixelHitMatcher.h.

Referenced by PixelHitMatcher::set1stLayerZRange().

◆ theRMinI

const float PixelHitMatcher::ForwardMeasurementEstimator::theRMinI

Definition at line 89 of file PixelHitMatcher.h.

Vector3DBase
Definition: Vector3DBase.h:8
photonAnalyzer_cfi.rMax
rMax
Definition: photonAnalyzer_cfi.py:91
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
GlobalTrajectoryParameters::position
GlobalPoint position() const
Definition: GlobalTrajectoryParameters.h:60
PixelHitMatcher::ForwardMeasurementEstimator::thePhiMax
float thePhiMax
Definition: PixelHitMatcher.h:86
PixelHitMatcher::ForwardMeasurementEstimator::theRMin
float theRMin
Definition: PixelHitMatcher.h:87
PixelHitMatcher::ForwardMeasurementEstimator::theRMinI
const float theRMinI
Definition: PixelHitMatcher.h:89
normalizedPhi
constexpr T normalizedPhi(T phi)
Definition: normalizedPhi.h:8
runTauDisplay.gp
gp
Definition: runTauDisplay.py:431
PV3DBase::barePhi
T barePhi() const
Definition: PV3DBase.h:65
PixelHitMatcher::ForwardMeasurementEstimator::thePhiMin
float thePhiMin
Definition: PixelHitMatcher.h:85
PixelHitMatcher::ForwardMeasurementEstimator::theRMax
float theRMax
Definition: PixelHitMatcher.h:88
photonAnalyzer_cfi.rMin
rMin
Definition: photonAnalyzer_cfi.py:90
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
TrajectoryStateOnSurface::globalParameters
const GlobalTrajectoryParameters & globalParameters() const
Definition: TrajectoryStateOnSurface.h:64
PV3DBase::perp
T perp() const
Definition: PV3DBase.h:69
PixelHitMatcher::ForwardMeasurementEstimator::theRMaxI
const float theRMaxI
Definition: PixelHitMatcher.h:90