Skip to content

Commit 9eee7e6

Browse files
aphecetcheshahor02
authored andcommitted
MCH: bugfix in mapping optimization
1 parent 9ff6e10 commit 9eee7e6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Detectors/MUON/MCH/Mapping/Impl4/src/CathodeSegmentationImpl4.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ int CathodeSegmentation::findPadByFEE(int dualSampaId,
225225
int dualSampaChannel) const
226226
{
227227
auto it = mDualSampaId2CatPadIndices.find(dualSampaId);
228+
if (it == mDualSampaId2CatPadIndices.end()) {
229+
return InvalidCatPadIndex;
230+
}
228231
const auto& padIndices = it->second;
229232
for (const auto& catPadIndex : padIndices) {
230233
if (padGroupType(catPadIndex)

0 commit comments

Comments
 (0)