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 &, const GlobalPoint &, int charge) const
 

Public Attributes

float thePhiMax
 
float thePhiMin
 
float theZMax
 
float theZMin
 

Detailed Description

Definition at line 70 of file PixelHitMatcher.h.

Member Function Documentation

◆ operator()()

bool PixelHitMatcher::BarrelMeasurementEstimator::operator() ( const GlobalPoint vprim,
const TrajectoryStateOnSurface absolute_ts,
const GlobalPoint absolute_gp,
int  charge 
) const

Definition at line 39 of file PixelHitMatcher.cc.

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

42  {
43  GlobalVector ts = absolute_ts.globalParameters().position() - vprim;
44  GlobalVector gp = absolute_gp - vprim;
45 
46  float myZ = gp.z();
47  float zDiff = myZ - ts.z();
48  float myZmax = theZMax;
49  float myZmin = theZMin;
50  if ((std::abs(myZ) < 30.f) & (gp.perp() > 8.f)) {
51  myZmax = 0.09f;
52  myZmin = -0.09f;
53  }
54 
55  if ((zDiff >= myZmax) | (zDiff <= myZmin))
56  return false;
57 
58  float phiDiff = -charge * normalizedPhi(gp.barePhi() - ts.barePhi());
59 
60  return (phiDiff < thePhiMax) & (phiDiff > thePhiMin);
61 }
T z() const
Definition: PV3DBase.h:61
constexpr T normalizedPhi(T phi)
Definition: normalizedPhi.h:8
const GlobalTrajectoryParameters & globalParameters() const
T barePhi() const
Definition: PV3DBase.h:65
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double f[11][100]

Member Data Documentation

◆ thePhiMax

float PixelHitMatcher::BarrelMeasurementEstimator::thePhiMax

Definition at line 74 of file PixelHitMatcher.h.

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

◆ thePhiMin

float PixelHitMatcher::BarrelMeasurementEstimator::thePhiMin

Definition at line 73 of file PixelHitMatcher.h.

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

◆ theZMax

float PixelHitMatcher::BarrelMeasurementEstimator::theZMax

Definition at line 76 of file PixelHitMatcher.h.

Referenced by PixelHitMatcher::set1stLayerZRange().

◆ theZMin

float PixelHitMatcher::BarrelMeasurementEstimator::theZMin

Definition at line 75 of file PixelHitMatcher.h.

Referenced by PixelHitMatcher::set1stLayerZRange().