diff --git a/PhysicsAnalysis/AnalysisCommon/ThinningUtils/src/ThinNegativeEnergyCaloClustersAlg.cxx b/PhysicsAnalysis/AnalysisCommon/ThinningUtils/src/ThinNegativeEnergyCaloClustersAlg.cxx index 5ad00f5b072048c6020fa23289fdae1598e91453..6809449c90ea9d2e6baee46defceff2d83e80e78 100644 --- a/PhysicsAnalysis/AnalysisCommon/ThinningUtils/src/ThinNegativeEnergyCaloClustersAlg.cxx +++ b/PhysicsAnalysis/AnalysisCommon/ThinningUtils/src/ThinNegativeEnergyCaloClustersAlg.cxx @@ -100,7 +100,7 @@ StatusCode ThinNegativeEnergyCaloClustersAlg::execute() // Increase the event counter ++m_nEventsProcessed; - // Is truth thinning required? + // Is thinning required? if (!m_doThinning) { return StatusCode::SUCCESS; } @@ -110,8 +110,9 @@ StatusCode ThinNegativeEnergyCaloClustersAlg::execute() if (evtStore()->contains<xAOD::CaloClusterContainer>(m_caloClustersKey)) { CHECK( evtStore()->retrieve( caloClusters , m_caloClustersKey ) ); } else { - ATH_MSG_FATAL("No CaloClusterContainer with key "+m_caloClustersKey+" found."); - return StatusCode::FAILURE; + ATH_MSG_INFO("No CaloClusterContainer with key "+m_caloClustersKey+" found. Thinning cannot be applied for this container"); + m_doThinning = false; + return StatusCode::SUCCESS; } // Set up masks diff --git a/PhysicsAnalysis/AnalysisCommon/ThinningUtils/src/ThinNegativeEnergyNeutralPFOsAlg.cxx b/PhysicsAnalysis/AnalysisCommon/ThinningUtils/src/ThinNegativeEnergyNeutralPFOsAlg.cxx index c09f4f53973165db18b9f252f70d43294c975af4..22ea608308e14c141f8d3c933be3cc459c54d10d 100644 --- a/PhysicsAnalysis/AnalysisCommon/ThinningUtils/src/ThinNegativeEnergyNeutralPFOsAlg.cxx +++ b/PhysicsAnalysis/AnalysisCommon/ThinningUtils/src/ThinNegativeEnergyNeutralPFOsAlg.cxx @@ -111,8 +111,9 @@ StatusCode ThinNegativeEnergyNeutralPFOsAlg::execute() if (evtStore()->contains<xAOD::PFOContainer>(m_neutralPFOsKey)) { CHECK( evtStore()->retrieve( neutralPFOs , m_neutralPFOsKey ) ); } else { - ATH_MSG_FATAL("No PFOContainer with key "+m_neutralPFOsKey+" found."); - return StatusCode::FAILURE; + ATH_MSG_INFO("No PFOContainer with key "+m_neutralPFOsKey+" found. Thinning cannot be applied to this container"); + m_doThinning = false; + return StatusCode::SUCCESS; } // Set up masks