30 return std::unique_ptr<SiPixelRecHit>(
39 return std::unique_ptr<SiStripRecHit2D>{
new SiStripRecHit2D(lv.first, lv.second, *
hit.det(),
hit.omniCluster())};
48 return std::unique_ptr<SiStripRecHit1D>{
new SiStripRecHit1D(lv.first, le, *
hit.det(),
hit.omniCluster())};
56 return std::unique_ptr<Phase2TrackerRecHit1D>{
65 return std::make_shared<SiPixelRecHit>(
75 return std::make_shared<SiStripRecHit2D>(lv.first, lv.second, *
hit.det(),
hit.omniCluster());
85 return std::make_shared<SiStripRecHit1D>(lv.first, le, *
hit.det(),
hit.omniCluster());
93 return std::unique_ptr<Phase2TrackerRecHit1D>{
98 #undef RecoTracker_TransientTrackingRecHit_TSiStripMatchedRecHit_RefitProj
99 #undef RecoTracker_TransientTrackingRecHit_TSiStripMatchedRecHit_RefitLGL
100 #ifdef RecoTracker_TransientTrackingRecHit_TSiStripMatchedRecHit_RefitLGL
108 #elif defined(RecoTracker_TransientTrackingRecHit_TSiStripMatchedRecHit_RefitProj)
129 const GluedGeomDet* gdet = static_cast<const GluedGeomDet*>(det);
145 std::unique_ptr<SiStripMatchedRecHit2D>
temp =
theMatcher->
match(&monoHit, &stereoHit, gdet, tkDir,
false);
146 if (
temp.get() ==
nullptr) {
147 temp = std::unique_ptr<SiStripMatchedRecHit2D>(
hit.clone());
167 const GeomDetUnit* gdu = reinterpret_cast<const GeomDetUnit*>(
hit.originalDet());
178 auto delta = gluedPlane.localZ(hitPlane.position());
180 LocalPoint lhitPos = gluedPlane.toLocal(hitPlane.toGlobal(lv.first));
185 if (gluedPlane.normalVector().dot(hitPlane.normalVector()) < 0) {
190 return std::unique_ptr<ProjectedSiStripRecHit2D>{
198 const GluedGeomDet& gdet = static_cast<const GluedGeomDet&>(det);
216 auto delta = gluedPlane.localZ(hitPlane.position());
218 LocalPoint lhitPos = gluedPlane.toLocal(hitPlane.toGlobal(lv.first));
223 if (gluedPlane.normalVector().dot(hitPlane.normalVector()) < 0) {
229 projectedHitPos, rotatedError, det, *odet, mono ?
hit.monoClusterRef() :
hit.stereoClusterRef())};