Skip to content

Commit 11d6128

Browse files
nburmasosawenzel
authored andcommitted
Add an exception throw if positive or negative track index not found
1 parent a454ae8 commit 11d6128

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Detectors/AOD/src/AODProducerWorkflowSpec.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,10 +817,14 @@ void AODProducerWorkflowDPL::run(ProcessingContext& pc)
817817
auto item = mGIDToTableID.find(trPosID);
818818
if (item != mGIDToTableID.end()) {
819819
posTableIdx = item->second;
820+
} else {
821+
LOG(FATAL) << "Could not find a positive track index";
820822
}
821823
item = mGIDToTableID.find(trNegID);
822824
if (item != mGIDToTableID.end()) {
823825
negTableIdx = item->second;
826+
} else {
827+
LOG(FATAL) << "Could not find a negative track index";
824828
}
825829
v0sCursor(0, posTableIdx, negTableIdx);
826830
}

0 commit comments

Comments
 (0)