CMS 3D CMS Logo

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

Public Member Functions

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

Public Attributes

float thePhiMax
 
float thePhiMin
 
float theZMax
 
float theZMin
 

Detailed Description

Definition at line 73 of file PixelHitMatcher.h.

Member Function Documentation

◆ operator()()

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

Definition at line 38 of file PixelHitMatcher.cc.

40  {
41  GlobalVector ts = absolute_ts.globalParameters().position() - vprim;
42  GlobalVector gp = absolute_gp - vprim;
43 
44  float myZ = gp.z();
45  float zDiff = myZ - ts.z();
46  float myZmax = theZMax;
47  float myZmin = theZMin;
48  if ((std::abs(myZ) < 30.f) & (gp.perp() > 8.f)) {
49  myZmax = 0.09f;
50  myZmin = -0.09f;
51  }
52 
53  if ((zDiff >= myZmax) | (zDiff <= myZmin))
54  return false;
55 
56  float phiDiff = normalizedPhi(gp.barePhi() - ts.barePhi());
57 
58  return (phiDiff < thePhiMax) & (phiDiff > thePhiMin);
59 }

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

Member Data Documentation

◆ thePhiMax

float PixelHitMatcher::BarrelMeasurementEstimator::thePhiMax

Definition at line 77 of file PixelHitMatcher.h.

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

◆ thePhiMin

float PixelHitMatcher::BarrelMeasurementEstimator::thePhiMin

Definition at line 76 of file PixelHitMatcher.h.

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

◆ theZMax

float PixelHitMatcher::BarrelMeasurementEstimator::theZMax

Definition at line 79 of file PixelHitMatcher.h.

Referenced by PixelHitMatcher::set1stLayerZRange().

◆ theZMin

float PixelHitMatcher::BarrelMeasurementEstimator::theZMin

Definition at line 78 of file PixelHitMatcher.h.

Referenced by PixelHitMatcher::set1stLayerZRange().

Vector3DBase
Definition: Vector3DBase.h:8
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
GlobalTrajectoryParameters::position
GlobalPoint position() const
Definition: GlobalTrajectoryParameters.h:60
PixelHitMatcher::BarrelMeasurementEstimator::theZMin
float theZMin
Definition: PixelHitMatcher.h:78
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
normalizedPhi
constexpr T normalizedPhi(T phi)
Definition: normalizedPhi.h:8
PixelHitMatcher::BarrelMeasurementEstimator::theZMax
float theZMax
Definition: PixelHitMatcher.h:79
runTauDisplay.gp
gp
Definition: runTauDisplay.py:431
PixelHitMatcher::BarrelMeasurementEstimator::thePhiMax
float thePhiMax
Definition: PixelHitMatcher.h:77
PV3DBase::barePhi
T barePhi() const
Definition: PV3DBase.h:65
PixelHitMatcher::BarrelMeasurementEstimator::thePhiMin
float thePhiMin
Definition: PixelHitMatcher.h:76
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
TrajectoryStateOnSurface::globalParameters
const GlobalTrajectoryParameters & globalParameters() const
Definition: TrajectoryStateOnSurface.h:64