Skip to content
Snippets Groups Projects
Commit 1770171c 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
parent c4597d67
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