From 4c43228668801810a01ca26a9e063a686ee0f27c Mon Sep 17 00:00:00 2001 From: Matthew Thomas Anthony <matthew.thomas.anthony@cern.ch> Date: Thu, 10 Dec 2020 12:28:26 +0000 Subject: [PATCH] add ATH_CHECK to status codes --- .../PFlowUtils/src/PFlowCalibPFODecoratorAlgorithm.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Reconstruction/PFlow/PFlowUtils/src/PFlowCalibPFODecoratorAlgorithm.cxx b/Reconstruction/PFlow/PFlowUtils/src/PFlowCalibPFODecoratorAlgorithm.cxx index 2d56bb9dea73..7f09d44dc0b2 100644 --- a/Reconstruction/PFlow/PFlowUtils/src/PFlowCalibPFODecoratorAlgorithm.cxx +++ b/Reconstruction/PFlow/PFlowUtils/src/PFlowCalibPFODecoratorAlgorithm.cxx @@ -80,18 +80,18 @@ StatusCode PFlowCalibPFODecoratorAlgorithm::execute(const EventContext& ctx) con // pfo linker alg SG::WriteDecorHandle<xAOD::PFOContainer, std::vector< std::pair<unsigned int, double> > > pfoWriteDecorHandleNLeadingTruthParticles(m_pfoWriteDecorHandleKeyNLeadingTruthParticles, ctx); - StatusCode sc=this->LinkCalibHitPFO( + ATH_CHECK(this->LinkCalibHitPFO( pfoWriteDecorHandleNLeadingTruthParticles, mapIdentifierToCalibHitsReadHandle, - mapTruthBarcodeToTruthParticleReadHandle); // end of check block + mapTruthBarcodeToTruthParticleReadHandle)); // end of check block bool doFlowElements=true; if(doFlowElements){ SG::WriteDecorHandle<xAOD::FlowElementContainer,std::vector<std::pair<unsigned int, double> > > feWriteDecorHandleNLeadingTruthParticles(m_feWriteDecorHandleKeyNLeadingTruthParticles,ctx); - StatusCode sc=this->LinkCalibHitPFO( + ATH_CHECK(this->LinkCalibHitPFO( feWriteDecorHandleNLeadingTruthParticles, mapIdentifierToCalibHitsReadHandle, - mapTruthBarcodeToTruthParticleReadHandle); // end of check block + mapTruthBarcodeToTruthParticleReadHandle)); // end of check block } return StatusCode::SUCCESS; -- GitLab