43 std::unique_ptr<reco::Track>
ret;
45 int nhits = hits.size();
54 for (
auto const& ih : hits) {
57 points[
i] = recHit->globalPosition();
58 errors[
i] = recHit->globalPositionError();
59 isBarrel[++
i] = recHit->detUnit()->type().isBarrel();
70 float valPt = (invPt > 1.e-4) ? 1. / invPt : 1.e4;
71 float errPt = 0.055 * valPt + 0.017 * valPt * valPt;
78 float valZip =
getZip(valTip, curvature, points[0], points[1]);
88 float errCotTheta = 0.002;
tuple ret
prodAgent to be discontinued
Global3DPoint GlobalPoint
void getErrTipAndErrZip(float pt, float eta, float &errZip, float &errTip) const
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
T curvature(T InversePt, const MagneticField &field)
float getZip(float d0, float curv, const GlobalPoint &inner, const GlobalPoint &outer) const
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)
virtual RecHitPointer build(const TrackingRecHit *p) const =0
build a tracking rechit from an existing rechit
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
T inversePt(T curvature, const MagneticField &field)
T y() const
Cartesian y coordinate.
#define declareDynArray(T, n, x)
float getPhi(float xC, float yC, int charge) const
const TransientTrackingRecHitBuilder * theTTRecHitBuilder
T x() const
Cartesian x coordinate.
const MagneticField * theField