|
|
Go to the documentation of this file.
54 return (
dir > 0) ? -1 : 1;
63 inline float phi(
float xC,
float yC,
int charge) {
return (
charge > 0) ? std::atan2(xC, -yC) :
std::atan2(-xC, yC); }
73 constexpr
float o24 = 1.f / 24.f;
74 float rho2 = curv * curv;
75 float r1s = (pinner - pca).
perp2();
76 double phi1 =
std::sqrt(r1s) * (curv * 0.5f) * (1.
f + r1s * (rho2 * o24));
77 float r2s = (pouter - pca).
perp2();
78 double phi2 =
std::sqrt(r2s) * (curv * 0.5f) * (1.
f + r2s * (rho2 * o24));
79 double z1 = pinner.
z();
80 double z2 = pouter.
z();
82 if (fabs(curv) > 1.
e-5)
83 return z1 - phi1 / (phi1 - phi2) * (z1 -
z2);
105 std::unique_ptr<reco::Track>
ret;
125 float valPhi, valTip, valPt;
132 valPt = (invPt > 1.e-4
f) ? 1.
f / invPt : 1.e4f;
135 valPhi =
phi(center.
x(), center.
y(), iCharge);
144 float valEta = std::asinh(valCotTheta);
152 float errFactor = 1.;
158 float errValPt = errFactor * param.
errPt();
159 float errValCot = errFactor * param.
errCot();
160 float errValTip = errFactor * param.
errTip();
161 float errValPhi = errFactor * param.
errPhi();
162 float errValZip = errFactor * param.
errZip();
ret
prodAgent to be discontinued
PixelFitterByHelixProjections(const edm::EventSetup *es, const MagneticField *field, bool scaleErrorsForBPix1, float scaleFactor)
T const * product() const
float fieldInInvGev(const edm::EventSetup &iSetup)
constexpr float fhalfPi()
const MagneticField * theField
T inversePt(T curvature, const edm::EventSetup &iSetup)
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
T curvature(T InversePt, const edm::EventSetup &iSetup)
unsigned int pxbLayer(const DetId &id) const
Sin< T >::type sin(const T &t)
Cos< T >::type cos(const T &t)
T y() const
Cartesian y coordinate.
#define declareDynArray(T, n, x)
T x() const
Cartesian x coordinate.
Global3DPoint GlobalPoint
T perp2() const
Squared magnitude of transverse component.
const TrackerTopology * theTopo
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)
reco::Track * build(const Measurement1D &pt, const Measurement1D &phi, const Measurement1D &cotTheta, const Measurement1D &tip, const Measurement1D &zip, float chi2, int charge, const std::vector< const TrackingRecHit * > &hits, const MagneticField *mf, const GlobalPoint &reference=GlobalPoint(0, 0, 0)) const
std::unique_ptr< reco::Track > run(const std::vector< const TrackingRecHit * > &hits, const TrackingRegion ®ion, const edm::EventSetup &setup) const override
const bool thescaleErrorsForBPix1
Abs< T >::type abs(const T &t)
const float thescaleFactor
static constexpr float d0