Skip to content

Commit 9c57448

Browse files
committed
skip pixel dets that are not associated to a geomDetUnit in PixelTopologyMap
1 parent 0829a4b commit 9c57448

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Geometry/TrackerGeometryBuilder/src/PixelTopologyMap.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ void PixelTopologyMap::buildTopologyMaps() {
2626
for (auto det : m_trackerGeom->detsPXB()) {
2727
const PixelGeomDetUnit* pixelDet = dynamic_cast<const PixelGeomDetUnit*>(det);
2828

29+
// discard dets that are not a geomDetUnit
30+
if (!pixelDet)
31+
continue;
32+
2933
const auto& layer = m_trackerTopo->pxbLayer(pixelDet->geographicalId());
3034
const auto& ladder = m_trackerTopo->pxbLadder(pixelDet->geographicalId());
3135
const auto& module = m_trackerTopo->pxbModule(pixelDet->geographicalId());
@@ -56,6 +60,10 @@ void PixelTopologyMap::buildTopologyMaps() {
5660
for (auto det : m_trackerGeom->detsPXF()) {
5761
const PixelGeomDetUnit* pixelDet = dynamic_cast<const PixelGeomDetUnit*>(det);
5862

63+
// discard dets that are not a geomDetUnit
64+
if (!pixelDet)
65+
continue;
66+
5967
const auto& disk = m_trackerTopo->pxfDisk(pixelDet->geographicalId());
6068
const auto& blade = m_trackerTopo->pxfBlade(pixelDet->geographicalId());
6169
const auto& pxf_module = m_trackerTopo->pxfModule(pixelDet->geographicalId());

0 commit comments

Comments
 (0)