98 std::unique_ptr<reco::Track>
ret;
100 int nhits = hits.size();
109 auto const& recHit = hits[
i];
111 errors[
i] = recHit->globalPositionError();
112 isBarrel[
i] = recHit->detUnit()->type().isBarrel();
118 float valPhi, valTip, valPt;
120 int iCharge =
charge(points);
125 valPt = (invPt > 1.e-4
f) ? 1.
f / invPt : 1.e4f;
128 valPhi =
phi(center.
x(), center.
y(), iCharge);
132 valPhi = direction.barePhi();
133 valTip = -points[0].x() *
sin(valPhi) + points[0].y() *
cos(valPhi);
136 float valCotTheta = cotTheta(points[0], points[1]);
137 float valEta = std::asinh(valCotTheta);
138 float valZip =
zip(valTip, valPhi, curvature, points[0], points[1]);
145 float errFactor = 1.;
151 float errValPt = errFactor * param.errPt();
152 float errValCot = errFactor * param.errCot();
153 float errValTip = errFactor * param.errTip();
154 float errValPhi = errFactor * param.errPhi();
155 float errValZip = errFactor * param.errZip();
160 chi2 = rzLine.chi2();
const MagneticField * theField
tuple ret
prodAgent to be discontinued
GlobalPoint const & origin() const
Sin< T >::type sin(const T &t)
Global3DPoint GlobalPoint
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
T curvature(T InversePt, const MagneticField &field)
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)
Cos< T >::type cos(const T &t)
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 inverseBzAtOriginInGeV() const
The inverse of field z component for this map in GeV.
T inversePt(T curvature, const MagneticField &field)
T y() const
Cartesian y coordinate.
unsigned int pxbLayer(const DetId &id) const
const TrackerTopology * theTopo
#define declareDynArray(T, n, x)
const bool thescaleErrorsForBPix1
const BasicVectorType & basicVector() const
T x() const
Cartesian x coordinate.
const float thescaleFactor