1 #ifndef TrackingRecHitProjector_H
2 #define TrackingRecHitProjector_H
7 template <
class ResultingHit>
44 double delta = gluedPlane.localZ( hitPlane.position());
47 LocalPoint projectedHitPos = lhitPos - ldir * delta/ldir.
z();
51 if (gluedPlane.normalVector().dot( hitPlane.normalVector()) < 0) {
RecHitPointer project(const TransientTrackingRecHit &hit, const GeomDet &det) const
TransientTrackingRecHit::RecHitPointer RecHitPointer
Global3DPoint GlobalPoint
virtual const GeomDet * det() const =0
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
const Plane & surface() const
The nominal surface of the GeomDet.
RecHitPointer project(const TransientTrackingRecHit &hit, const GeomDet &det, const TrajectoryStateOnSurface &ts) const
virtual GlobalPoint globalPosition() const =0
GlobalVector momentum() const
RecHitPointer project(const TransientTrackingRecHit &hit, const GeomDet &det, const GlobalVector &gdir) const
const GlobalTrajectoryParameters & globalParameters() const
virtual LocalError localPositionError() const =0
LocalError rotate(float x, float y) const
Return a new LocalError, rotated by an angle defined by the direction (x,y)