40 result[0] = localPosition().x();
70 std::unique_ptr<reco::Track>
ret;
95 float valPt = 1.f / invPt;
98 charge = (chargeTmp > 0) ? -1 : 1;
105 initMom *= 10000. / initMom.
perp();
118 float zErr = vertexErr.
czz();
119 float transverseErr = vertexErr.
cxx();
120 C[3][3] = transverseErr;
121 C[4][4] = zErr * sin2th + transverseErr * (1 - sin2th);
131 DetId outerDetId = 0;
133 for (
unsigned int iHit = 0; iHit <
hits.size(); iHit++) {
137 outerDetId =
hit->geographicalId();
139 if (!
state.isValid())
149 DetId innerDetId = 0;
151 for (
int iHit = 2; iHit >= 0; --iHit) {
153 innerDetId =
hit->geographicalId();
155 if (!
state.isValid())
166 if (!impactPointState.isValid())
176 impactPointState =
updator.update(impactPointState, bsrh);
179 if (!impactPointState.isValid())
184 GlobalPoint vv = impactPointState.globalPosition();
190 ret = std::make_unique<reco::Track>(
191 chi2,
ndof,
pos, mom, impactPointState.charge(), impactPointState.curvilinearError());
void rescaleError(double factor)
const Propagator * theOPropagator
LocalPoint localPosition_
const Propagator * thePropagator
Point3DBase< Scalar, LocalTag > LocalPoint
AlgebraicSymMatrix parametersError() const override
ret
prodAgent to be discontinued
const TrackerGeometry * theTracker
std::unique_ptr< reco::Track > run(const std::vector< const TrackingRecHit *> &hits, const TrackingRegion ®ion) const override
Sin< T >::type sin(const T &t)
T y() const
Cartesian y coordinate.
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
const MagneticField * theField
static PlanePointer build(Args &&... args)
AlgebraicMatrix projectionMatrix() const override
CLHEP::HepMatrix AlgebraicMatrix
virtual RecHitPointer build(const TrackingRecHit *p) const =0
build a tracking rechit from an existing rechit
Cos< T >::type cos(const T &t)
MyBeamSpotHit(const reco::BeamSpot &beamSpot, const GeomDet *geom)
Tan< T >::type tan(const T &t)
T inversePt(T curvature, const MagneticField &field)
AlgebraicVector parameters() const override
const TrackerGeomDet * idToDet(DetId) const override
std::shared_ptr< TrackingRecHit const > RecHitPointer
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
const reco::BeamSpot * theBeamSpot
KFBasedPixelFitter(const Propagator *propagator, const Propagator *opropagator, const TransientTrackingRecHitBuilder *ttrhBuilder, const TrackerGeometry *tracker, const MagneticField *field, const reco::BeamSpot *beamSpot)
const TransientTrackingRecHitBuilder * theTTRHBuilder
CLHEP::HepVector AlgebraicVector
const Plane & surface() const
The nominal surface of the GeomDet.
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
CLHEP::HepSymMatrix AlgebraicSymMatrix
Geom::Theta< T > theta() const
T x() const
Cartesian x coordinate.
Global3DVector GlobalVector
Geom::Theta< T > theta() const