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.

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 }

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().

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().

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:75
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:76
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
runTauDisplay.gp
gp
Definition: runTauDisplay.py:431
PixelHitMatcher::BarrelMeasurementEstimator::thePhiMax
float thePhiMax
Definition: PixelHitMatcher.h:74
PV3DBase::barePhi
T barePhi() const
Definition: PV3DBase.h:65
PixelHitMatcher::BarrelMeasurementEstimator::thePhiMin
float thePhiMin
Definition: PixelHitMatcher.h:73
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
TrajectoryStateOnSurface::globalParameters
const GlobalTrajectoryParameters & globalParameters() const
Definition: TrajectoryStateOnSurface.h:64