Skip to content

Commit cc5d227

Browse files
committed
Merge pull request cms-sw#2586 from rovere/fix-projectedrechit-construction
Reco updates -- Fix bug when reading ProjectedRecHits from disk with Coarse option
2 parents 9c40f48 + 53fbf45 commit cc5d227

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

RecoTracker/TransientTrackingRecHit/src/ProjectedRecHit2D.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ ProjectedRecHit2D::ProjectedRecHit2D( const GeomDet * geom, const GeomDet* origi
7575
if(!originalHit().cluster().isNull()){
7676
const SiStripCluster& clust = *(originalHit().cluster());
7777

78-
StripClusterParameterEstimator::LocalValues lv =
79-
theCPE->localParameters( clust, *detUnit());
78+
StripClusterParameterEstimator::LocalValues lv =
79+
theCPE->localParameters( clust, *reinterpret_cast<const GeomDetUnit *>(theOriginalDet));
8080

8181
RecHitPointer updatedOriginalHit =
8282
TSiStripRecHit2DLocalPos::build( lv.first, lv.second, theOriginalDet,
@@ -87,8 +87,8 @@ ProjectedRecHit2D::ProjectedRecHit2D( const GeomDet * geom, const GeomDet* origi
8787
}else{
8888
const SiStripCluster& clust = *(originalHit().cluster_regional());
8989

90-
StripClusterParameterEstimator::LocalValues lv =
91-
theCPE->localParameters( clust, *detUnit());
90+
StripClusterParameterEstimator::LocalValues lv =
91+
theCPE->localParameters( clust, *reinterpret_cast<const GeomDetUnit *>(theOriginalDet));
9292

9393
RecHitPointer updatedOriginalHit =
9494
TSiStripRecHit2DLocalPos::build( lv.first, lv.second, theOriginalDet,

0 commit comments

Comments
 (0)