Skip to content
Snippets Groups Projects
Commit b149f712 authored by Julien Maurer's avatar Julien Maurer Committed by Walter Lampl
Browse files

Merge branch '23.x-DFEGAM-fixIsoCorrections' into '23.0'

fix rare error from isolation correction when eta==2.5

See merge request !61779
parent 2567fde8
No related branches found
No related tags found
1 merge request!65893Collection of cherry-picks to fix ATLASRECTS-7711
......@@ -157,7 +157,11 @@ namespace CP{
TH1* histo = (isData ? m_hData : m_hMC);
if (!histo)
return 0;
return histo->Interpolate(eta, phi);
constexpr float epsilon=1e-5;
if (std::fabs(eta)==2.5)
return histo->Interpolate(eta*(1-epsilon), phi);
else
return histo->Interpolate(eta, phi);
}
float ShowerDepthTool::getEtaDirection(const float& zvertex,const float& R,const float& z)
......
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