Bug fix and updated expected behaviour for EGammaVariableCorrection tool
In ATLASDPD-1572, unexpected behaviour of the EGammaVariableCorrection tool was found: The tool failed when encountering photons with a pT smaller than 0. The following changes to the behaviour of the tool are made:
- When retrieving the EGamma object pT, it is checked it it is non-negative. If not, a warning is printed and the object is processed as if it had a pT of 0.
- The check for negative pT and eta values in
ElectronPhotonVariableCorrectionBase::findBin
has been updated to use the correction value in the leftmost respective bin instead of failing. This is also a necessary change w.r.t. the recently merged changes to this tool in !40857 (merged).
Notifying @brendlin, @jdevivi, @jmaurer, @jpoveda for awareness.
Edited by Nils Gillwald