Skip to content
Snippets Groups Projects
Commit bfb827c2 authored by Tim Martin's avatar Tim Martin Committed by Atlas Nightlybuild
Browse files

Merge branch '21.0-fix-AODThinning' into '21.0'

Make AOD CaloCluster and particle flow object thinning robust against missing containers

See merge request !2808

Former-commit-id: 1770171c
parent 5906b7fc
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment