CMS 3D CMS Logo

Functions
PixelRecoUtilities Namespace Reference

Functions

template<typename T >
T bendingRadius (T pt, const MagneticField &field)
 
template<typename T >
T curvature (T InversePt, const MagneticField &field)
 
template<typename T >
T inversePt (T curvature, const MagneticField &field)
 
double longitudinalBendingCorrection (double radius, double pt, const MagneticField &field)
 

Detailed Description

Small utility funcions used during seed generation

Function Documentation

◆ bendingRadius()

template<typename T >
T PixelRecoUtilities::bendingRadius ( T  pt,
const MagneticField field 
)

gives bending radius in magnetic field, pT in GeV, magnetic field taken at (0,0,0)

Definition at line 15 of file PixelRecoUtilities.h.

References MagneticField::inverseBzAtOriginInGeV(), and DiDispStaMuonMonitor_cfi::pt.

Referenced by HitPairGeneratorFromLayerPairForPhotonConversion::getPhiRange(), InnerDeltaPhi::InnerDeltaPhi(), and longitudinalBendingCorrection().

15  {
16  return pt * field.inverseBzAtOriginInGeV();
17  }
float inverseBzAtOriginInGeV() const
The inverse of field z component for this map in GeV.
Definition: MagneticField.h:52

◆ curvature()

template<typename T >
T PixelRecoUtilities::curvature ( T  InversePt,
const MagneticField field 
)

gives transverse curvature (=1/radius of curvature) in magnetic field, pT in GeV, magnetic field taken at (0,0,0)

Definition at line 23 of file PixelRecoUtilities.h.

References MagneticField::inverseBzAtOriginInGeV().

Referenced by Phase2L1GMT::TrackConverter::convert(), VectorHitBuilderAlgorithm::curvatureANDphi(), CAHitTripletGenerator::QuantityDependsPt::evaluator(), CAHitQuadrupletGenerator::QuantityDependsPt::evaluator(), ClusterShapeTrackFilter::getGlobalDirs(), CAHitTripletGenerator::hitNtuplets(), CAHitQuadrupletGenerator::hitNtuplets(), MultiHitGeneratorFromChi2::hitSets(), PixelTripletNoTipGenerator::hitTriplets(), PixelTripletHLTGenerator::hitTriplets(), PixelTripletLargeTipGenerator::hitTriplets(), inversePt(), ThirdHitPredictionFromInvParabola::ipFromCurvature(), ThirdHitPrediction::isCompatibleWithMultipleScattering(), OutInConversionSeedFinder::makeTrackState(), MatchedHitRZCorrectionFromBending::operator()(), PathToPlane2Order::operator()(), RectangularEtaPhiTrackingRegion::phiWindow(), Phase2L1GMT::TrackMuonMatchAlgorithm::propagate(), pTFrom2Stubs::rInvFrom2(), PixelFitterByHelixProjections::run(), TrackFitter::run(), L1MuonPixelTrackFitter::run(), GflashTrajectory::setCurvature(), MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup(), L1MuonPixelTrackFitter::valTip(), CAHitTripletGenerator::QuantityDependsPtEval::value(), and CAHitQuadrupletGenerator::QuantityDependsPtEval::value().

23  {
24  return InversePt / field.inverseBzAtOriginInGeV();
25  }
float inverseBzAtOriginInGeV() const
The inverse of field z component for this map in GeV.
Definition: MagneticField.h:52

◆ inversePt()

template<typename T >
T PixelRecoUtilities::inversePt ( T  curvature,
const MagneticField field 
)

inverse pt from curvature

Definition at line 29 of file PixelRecoUtilities.h.

References curvature(), and MagneticField::inverseBzAtOriginInGeV().

Referenced by CAHitTripletGenerator::hitNtuplets(), CAHitQuadrupletGenerator::hitNtuplets(), PixelTripletNoTipGenerator::hitTriplets(), PixelFitterByHelixProjections::run(), PixelFitterByConformalMappingAndLine::run(), TrackFitter::run(), and KFBasedPixelFitter::run().

29  {
30  return curvature * field.inverseBzAtOriginInGeV();
31  }
T curvature(T InversePt, const MagneticField &field)
float inverseBzAtOriginInGeV() const
The inverse of field z component for this map in GeV.
Definition: MagneticField.h:52

◆ longitudinalBendingCorrection()

double PixelRecoUtilities::longitudinalBendingCorrection ( double  radius,
double  pt,
const MagneticField field 
)
inline

distance between stright line propagation and helix r_stright_line = radius+longitudinalBendingCorrection(radius,pt)

Definition at line 36 of file PixelRecoUtilities.h.

References bendingRadius(), DiDispStaMuonMonitor_cfi::pt, and CosmicsPD_Skims::radius.

Referenced by RectangularEtaPhiTrackingRegion::estimator().

36  {
37  double invCurv = bendingRadius(pt, field);
38  if (invCurv == 0.)
39  return 0.;
40  return radius / 6. * radius * radius / (2. * invCurv * 2. * invCurv);
41  }
T bendingRadius(T pt, const MagneticField &field)