Skip to content

Commit ede8bb1

Browse files
nburmasosawenzel
authored andcommitted
Add an exception throw if a bachelor track index not found
1 parent 11d6128 commit ede8bb1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Detectors/AOD/src/AODProducerWorkflowSpec.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,8 @@ void AODProducerWorkflowDPL::run(ProcessingContext& pc)
836836
auto item = mGIDToTableID.find(bachelorID);
837837
if (item != mGIDToTableID.end()) {
838838
bachTableIdx = item->second;
839+
} else {
840+
LOG(FATAL) << "Could not find a bachelor track index";
839841
}
840842
cascadesCursor(0, cascade.getV0ID(), bachTableIdx);
841843
}

0 commit comments

Comments
 (0)