CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

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
template<typename T >
T PixelRecoUtilities::curvature ( T  InversePt,
const MagneticField field 
)
template<typename T >
T PixelRecoUtilities::inversePt ( T  curvature,
const MagneticField field 
)

inverse pt from curvature

Definition at line 29 of file PixelRecoUtilities.h.

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

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)