Skip to content

Commit

Permalink
Update TestAssociator.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider authored Jan 31, 2025
1 parent 992d2ed commit 27dff1a
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 (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 27dff1a

Please sign in to comment.