Skip to content

Commit

Permalink
Merge pull request #47199 from iarspider/patch-13
Browse files Browse the repository at this point in the history
Remove unused variable in TestAssociator.cc
  • Loading branch information
cmsbuild authored Feb 3, 2025
2 parents a62268d + f994524 commit a83766b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SimTracker/TrackerHitAssociation/test/TestAssociator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ void TestAssociator::printRechitSimhit(const edm::Handle<edmNew::DetSetVector<re
edm::LogVerbatim("TrackAssociator")
<< " simtrack ID = " << m.trackId() << " Simhit Pos = " << m.localPosition();
// Seek the smallest residual
if (const SiPixelRecHit* dummy = dynamic_cast<const SiPixelRecHit*>(&rechit)) {
auto ptr = dynamic_cast<const SiPixelRecHit*>(&rechit);
if (nullptr != ptr) {
isPixel = true;
dist = (rechit.localPosition() - m.localPosition()).mag(); // pixels measure 2 dimensions
} else {
Expand Down

0 comments on commit a83766b

Please sign in to comment.