Skip to content

Commit 27dff1a

Browse files
authored
Update TestAssociator.cc
1 parent 992d2ed commit 27dff1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SimTracker/TrackerHitAssociation/test/TestAssociator.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ void TestAssociator::printRechitSimhit(const edm::Handle<edmNew::DetSetVector<re
109109
edm::LogVerbatim("TrackAssociator")
110110
<< " simtrack ID = " << m.trackId() << " Simhit Pos = " << m.localPosition();
111111
// Seek the smallest residual
112-
if (dynamic_cast<const SiPixelRecHit*>(&rechit)) {
112+
auto ptr = dynamic_cast<const SiPixelRecHit*>(&rechit));
113+
if (nullptr != ptr) {
113114
isPixel = true;
114115
dist = (rechit.localPosition() - m.localPosition()).mag(); // pixels measure 2 dimensions
115116
} else {

0 commit comments

Comments
 (0)