|
|
Go to the documentation of this file.
30 float dphi = v32.
phi() - v21.
phi();
35 return (dphi > 0) ? -1 : 1;
44 std::unique_ptr<reco::Track>
ret;
55 for (
auto const& ih :
hits) {
56 auto recHit = theTTRecHitBuilder->build(ih);
71 float valPt = (invPt > 1.e-4) ? 1. / invPt : 1.
e4;
72 float errPt = 0.055 * valPt + 0.017 * valPt * valPt;
81 float valPhi = getPhi(center.
x(), center.
y(),
charge);
83 float valCotTheta = getCotThetaAndUpdateZip(
points[0],
points[1], 1 /
curvature, valPhi, valTip, valZip);
87 getErrTipAndErrZip(valPt,
points.back().eta(), errTip, errZip);
89 float errCotTheta = 0.002;
125 return (fabs(
dr) > 1.e-3) ?
dz /
dr : 0;
133 phiC = atan2(xC, -yC);
135 phiC = atan2(-xC, yC);
143 float rho3 = curv * curv * curv;
146 double phi1 =
r1 * curv / 2 +
inner.perp2() *
r1 * rho3 / 48.;
149 double phi2 =
r2 * curv / 2 +
outer.perp2() *
r2 * rho3 / 48.;
151 double z1 =
inner.z();
154 return z1 - phi1 / (phi1 - phi2) * (z1 -
z2);
159 float coshEta = cosh(
eta);
164 float s_ms2 = c_ms * c_ms / (
pt *
pt) * coshEta;
166 errTip =
sqrt(s_le * s_le + s_ms2);
173 errZip =
sqrt((s_le * s_le + c_ms * c_ms / (
pt *
pt)) * coshEta * coshEta * coshEta);
ret
prodAgent to be discontinued
std::unique_ptr< reco::Track > run(const std::vector< const TrackingRecHit * > &hits, const TrackingRegion ®ion, const edm::EventSetup &setup) const override
float getPhi(float xC, float yC, int charge) const
float getZip(float d0, float curv, const GlobalPoint &inner, const GlobalPoint &outer) const
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)
T perp() const
Magnitude of transverse component.
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
void getErrTipAndErrZip(float pt, float eta, float &errZip, float &errTip) const
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
float getCotThetaAndUpdateZip(const GlobalPoint &inner, const GlobalPoint &outer, float radius, float phi, float d0, float &zip) const
static constexpr float d0
Geom::Phi< T > phi() const