Skip to content

Commit

Permalink
make PixelRegionContainers throw on topology mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed Oct 19, 2023
1 parent eba763e commit 025dcac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CondCore/SiPixelPlugins/interface/PixelRegionContainers.h
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,8 @@ namespace PixelRegions {
if (m_theMap.find(myId) != m_theMap.end()) {
m_theMap[myId]->Fill(value);
} else {
edm::LogError("PixelRegionContainers")
<< detid << " :=> " << myId << " is not a recongnized PixelId enumerator! \n"
<< m_trackerTopo->print(detid);
throw cms::Exception("LogicError") << detid << " :=> " << myId << " is not a recongnized PixelId enumerator! \n"
<< m_trackerTopo->print(detid);
}
}

Expand Down

0 comments on commit 025dcac

Please sign in to comment.