diff --git a/Reconstruction/egamma/egammaUtils/Root/egPhotonWrtPoint.cxx b/Reconstruction/egamma/egammaUtils/Root/egPhotonWrtPoint.cxx index 22eb6c9668cb5e4bdc9286251b4e73be604439d3..856d554d37100d5ac6ca22298c0ed5169c0c828d 100644 --- a/Reconstruction/egamma/egammaUtils/Root/egPhotonWrtPoint.cxx +++ b/Reconstruction/egamma/egammaUtils/Root/egPhotonWrtPoint.cxx @@ -9,8 +9,9 @@ photonWrtPoint::PtEtaPhi photonWrtPoint::PtEtaPhiWrtZ(const xAOD::Egamma& ph, double z) { - std::pair<double, float> RZ1 = - CP::ShowerDepthTool::getRZ(ph.caloCluster()->etaBE(1), 1); + std::pair<double, float> RZ1 = {0., 0.}; + float etaBE1 = ph.caloCluster()->etaBE(1); + if(std::abs(etaBE1) < 10) RZ1 = CP::ShowerDepthTool::getRZ(etaBE1, 1); double rCalo = RZ1.first; double zCalo = RZ1.second;