diff --git a/PhysicsAnalysis/ElectronPhotonID/ElectronPhotonShowerShapeFudgeTool/Root/ElectronPhotonShowerShapeFudgeTool.cxx b/PhysicsAnalysis/ElectronPhotonID/ElectronPhotonShowerShapeFudgeTool/Root/ElectronPhotonShowerShapeFudgeTool.cxx index 8852e9f519e0c939cc193d77e6e60d1755f3b8c8..30677ca7c05b530fb4497fff21961a2796343133 100644 --- a/PhysicsAnalysis/ElectronPhotonID/ElectronPhotonShowerShapeFudgeTool/Root/ElectronPhotonShowerShapeFudgeTool.cxx +++ b/PhysicsAnalysis/ElectronPhotonID/ElectronPhotonShowerShapeFudgeTool/Root/ElectronPhotonShowerShapeFudgeTool.cxx @@ -321,15 +321,13 @@ const CP::CorrectionCode ElectronPhotonShowerShapeFudgeTool::applyCorrection( xA const CP::CorrectionCode ElectronPhotonShowerShapeFudgeTool::correctedCopy( const xAOD::Photon& ph, xAOD::Photon*& output ) const { output = new xAOD::Photon(ph); - applyCorrection(*output); - return CP::CorrectionCode::Ok; + return applyCorrection(*output); } const CP::CorrectionCode ElectronPhotonShowerShapeFudgeTool::correctedCopy( const xAOD::Electron& el, xAOD::Electron*& output ) const{ output = new xAOD::Electron(el); - applyCorrection(*output); - return CP::CorrectionCode::Ok; + return applyCorrection(*output); }