diff --git a/Simulation/G4Utilities/MCTruthSimAlgs/src/MergeTruthJetsTool.cxx b/Simulation/G4Utilities/MCTruthSimAlgs/src/MergeTruthJetsTool.cxx index 686b05b6c2270461b4f7f9556093a2716191f0a3..b8d4acf88d109e16d4bba1d5c16a2f520a136ea6 100644 --- a/Simulation/G4Utilities/MCTruthSimAlgs/src/MergeTruthJetsTool.cxx +++ b/Simulation/G4Utilities/MCTruthSimAlgs/src/MergeTruthJetsTool.cxx @@ -48,7 +48,7 @@ StatusCode MergeTruthJetsTool::processBunchXing(int bunchXing, while (iEvt != eSubEvents) { const xAOD::JetContainer* inputJetContainer(nullptr); if (m_pMergeSvc->retrieveSingleSubEvtData(m_inputJetCollKey, inputJetContainer, - bunchXing, bSubEvents).isSuccess()) { + bunchXing, iEvt).isSuccess()) { ATH_MSG_VERBOSE("Found an xAOD::JetContainer in storeGate."); if ( !inputJetContainer ) { ATH_MSG_ERROR("Unable to retrieve input jet container: " << m_inputJetCollKey);