We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 992d2ed commit 27dff1aCopy full SHA for 27dff1a
SimTracker/TrackerHitAssociation/test/TestAssociator.cc
@@ -109,7 +109,8 @@ void TestAssociator::printRechitSimhit(const edm::Handle<edmNew::DetSetVector<re
109
edm::LogVerbatim("TrackAssociator")
110
<< " simtrack ID = " << m.trackId() << " Simhit Pos = " << m.localPosition();
111
// Seek the smallest residual
112
- if (dynamic_cast<const SiPixelRecHit*>(&rechit)) {
+ auto ptr = dynamic_cast<const SiPixelRecHit*>(&rechit));
113
+ if (nullptr != ptr) {
114
isPixel = true;
115
dist = (rechit.localPosition() - m.localPosition()).mag(); // pixels measure 2 dimensions
116
} else {
0 commit comments