We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6b75c9 commit 5a4eb4fCopy full SHA for 5a4eb4f
DQM/SiPixelMonitorRawData/src/SiPixelRawDataErrorSource.cc
@@ -196,8 +196,10 @@ void SiPixelRawDataErrorSource::buildStructure(const edm::EventSetup &iSetup) {
196
for (TrackerGeometry::DetContainer::const_iterator it = pDD->detsPXB().begin(); it != pDD->detsPXB().end(); it++) {
197
const GeomDetUnit *geoUnit = dynamic_cast<const GeomDetUnit *>(*it);
198
// check if it is a detUnit
199
- if (geoUnit == nullptr)
+ if (geoUnit == nullptr) {
200
LogError("PixelDQM") << "Pixel GeomDet is not a GeomDetUnit!" << std::endl;
201
+ continue;
202
+ }
203
const PixelGeomDetUnit *pixDet = dynamic_cast<const PixelGeomDetUnit *>(geoUnit);
204
int nrows = (pixDet->specificTopology()).nrows();
205
int ncols = (pixDet->specificTopology()).ncolumns();
0 commit comments