30 return std::unique_ptr<SiPixelRecHit>(
new SiPixelRecHit(std::get<0>(params), std::get<1>(params), std::get<2>(params), *hit.
det(), hit.
cluster()));
61 return std::make_shared<SiPixelRecHit>(std::get<0>(params), std::get<1>(params), std::get<2>(params), *hit.
det(), hit.
cluster());
70 return std::make_shared<SiStripRecHit2D>(lv.first, lv.second, *hit.
det(), hit.
omniCluster());
80 return std::make_shared<SiStripRecHit1D>(lv.first, le, *hit.
det(), hit.
omniCluster());
92 #undef RecoTracker_TransientTrackingRecHit_TSiStripMatchedRecHit_RefitProj 93 #undef RecoTracker_TransientTrackingRecHit_TSiStripMatchedRecHit_RefitLGL 94 #ifdef RecoTracker_TransientTrackingRecHit_TSiStripMatchedRecHit_RefitLGL 102 #elif defined(RecoTracker_TransientTrackingRecHit_TSiStripMatchedRecHit_RefitProj) 141 std::unique_ptr<SiStripMatchedRecHit2D>
temp =
theMatcher->
match(&monoHit,&stereoHit,gdet,tkDir,
false);
142 if(temp.get() ==
nullptr) {
143 temp = std::unique_ptr<SiStripMatchedRecHit2D>(hit.
clone());
171 auto delta = gluedPlane.localZ( hitPlane.position());
173 LocalPoint lhitPos = gluedPlane.toLocal( hitPlane.toGlobal(lv.first));
178 if (gluedPlane.normalVector().dot( hitPlane.normalVector()) < 0) {
210 auto delta = gluedPlane.localZ( hitPlane.position());
212 LocalPoint lhitPos = gluedPlane.toLocal( hitPlane.toGlobal(lv.first));
217 if (gluedPlane.normalVector().dot( hitPlane.normalVector()) < 0) {
222 return std::unique_ptr<ProjectedSiStripRecHit2D>{
virtual ReturnType getParameters(const SiPixelCluster &cl, const GeomDetUnit &det) const =0
TrackCharge charge() const
const GeomDetUnit * monoDet() const
const LocalTrajectoryParameters & localParameters() const
SiStripCluster const & monoCluster() const
LocalVector localDirection() const
OmniClusterRef const & stereoClusterRef() const
virtual void localParameters(AClusters const &clusters, ALocalValues &retValues, const GeomDetUnit &gd, const LocalTrajectoryParameters <p) const
Global3DPoint GlobalPoint
const PixelClusterParameterEstimator * pixelCPE
GlobalPoint globalPosition() const
std::pair< LocalPoint, LocalError > LocalValues
const Plane & surface() const
The nominal surface of the GeomDet.
virtual TrackingRecHit::ConstRecHitPointer makeShared(SiPixelRecHit const &hit, TrajectoryStateOnSurface const &tsos) const override
const Surface::PositionType & position() const
The position (origin of the R.F.)
const StripClusterParameterEstimator * stripCPE
virtual LocalValues localParameters(const T &, const GeomDetUnit &) const =0
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
const GeomDet * det() const
std::unique_ptr< SiStripMatchedRecHit2D > match(const SiStripRecHit2D *monoRH, const SiStripRecHit2D *stereoRH, const GluedGeomDet *gluedDet, LocalVector trackdirection, bool force) const
LocalPoint toLocal(const GlobalPoint &gp) const
GlobalVector momentum() const
OmniClusterRef const & omniCluster() const
LocalVector directionNotNormalized() const
Momentum vector unit in the local frame.
const GeomDetUnit * originalDet() const
OmniClusterRef const & monoClusterRef() const
const GeomDetUnit * detUnit() const
const ClusterParameterEstimator< Phase2TrackerCluster1D > * phase2TrackerCPE
const SiStripRecHitMatcher * theMatcher
const GlobalTrajectoryParameters & globalParameters() const
SiStripCluster const & stripCluster() const
ClusterRef cluster() const
std::unique_ptr< ProjectedSiStripRecHit2D > project(SiStripMatchedRecHit2D const &hit, bool mono, TrajectoryStateOnSurface const &tsos) const
SiStripCluster const & stereoCluster() const
Pixel cluster – collection of neighboring pixels above threshold.
LocalError rotate(float x, float y) const
Return a new LocalError, rotated by an angle defined by the direction (x,y)
Phase2TrackerCluster1D const & phase2OTCluster() const
virtual SiStripMatchedRecHit2D * clone() const
const GeomDetUnit * stereoDet() const
virtual std::unique_ptr< SiPixelRecHit > operator()(SiPixelRecHit const &hit, TrajectoryStateOnSurface const &tsos) const override