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

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

Definition at line 38 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(), and PV3DBase< T, PVType, FrameType >::z().

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 }
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::BarrelMeasurementEstimator::thePhiMax

Definition at line 77 of file PixelHitMatcher.h.

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

float PixelHitMatcher::BarrelMeasurementEstimator::thePhiMin

Definition at line 76 of file PixelHitMatcher.h.

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

float PixelHitMatcher::BarrelMeasurementEstimator::theZMax

Definition at line 79 of file PixelHitMatcher.h.

Referenced by PixelHitMatcher::set1stLayerZRange().

float PixelHitMatcher::BarrelMeasurementEstimator::theZMin

Definition at line 78 of file PixelHitMatcher.h.

Referenced by PixelHitMatcher::set1stLayerZRange().