Skip to content
Snippets Groups Projects
Commit 3971e57c authored by Tim Martin's avatar Tim Martin
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: 4511b2b485334b5cfe4ba66093198381c9aba767
parents 34baabe0 781f3654
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,7 @@ StatusCode ThinNegativeEnergyCaloClustersAlg::execute() ...@@ -100,7 +100,7 @@ StatusCode ThinNegativeEnergyCaloClustersAlg::execute()
// Increase the event counter // Increase the event counter
++m_nEventsProcessed; ++m_nEventsProcessed;
// Is truth thinning required? // Is thinning required?
if (!m_doThinning) { if (!m_doThinning) {
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
} }
...@@ -110,8 +110,9 @@ StatusCode ThinNegativeEnergyCaloClustersAlg::execute() ...@@ -110,8 +110,9 @@ StatusCode ThinNegativeEnergyCaloClustersAlg::execute()
if (evtStore()->contains<xAOD::CaloClusterContainer>(m_caloClustersKey)) { if (evtStore()->contains<xAOD::CaloClusterContainer>(m_caloClustersKey)) {
CHECK( evtStore()->retrieve( caloClusters , m_caloClustersKey ) ); CHECK( evtStore()->retrieve( caloClusters , m_caloClustersKey ) );
} else { } else {
ATH_MSG_FATAL("No CaloClusterContainer with key "+m_caloClustersKey+" found."); ATH_MSG_INFO("No CaloClusterContainer with key "+m_caloClustersKey+" found. Thinning cannot be applied for this container");
return StatusCode::FAILURE; m_doThinning = false;
return StatusCode::SUCCESS;
} }
// Set up masks // Set up masks
......
...@@ -111,8 +111,9 @@ StatusCode ThinNegativeEnergyNeutralPFOsAlg::execute() ...@@ -111,8 +111,9 @@ StatusCode ThinNegativeEnergyNeutralPFOsAlg::execute()
if (evtStore()->contains<xAOD::PFOContainer>(m_neutralPFOsKey)) { if (evtStore()->contains<xAOD::PFOContainer>(m_neutralPFOsKey)) {
CHECK( evtStore()->retrieve( neutralPFOs , m_neutralPFOsKey ) ); CHECK( evtStore()->retrieve( neutralPFOs , m_neutralPFOsKey ) );
} else { } else {
ATH_MSG_FATAL("No PFOContainer with key "+m_neutralPFOsKey+" found."); ATH_MSG_INFO("No PFOContainer with key "+m_neutralPFOsKey+" found. Thinning cannot be applied to this container");
return StatusCode::FAILURE; m_doThinning = false;
return StatusCode::SUCCESS;
} }
// Set up masks // 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