Add alternative weight file to HIJetClusterSubtractorTool
In case a weight retrieved from the weight file (cluster.geo....root
) is zero, a message is now printed and division by zero is prevented. Previously, not-a-numbers started to propagate throughout HIEventShape
objects. This was caused by different geometry in Run2 and Run3. The weight file assumed cluster positions as in Run2, but ATLAS-R3S-2021-03-01-00
provided positions as in Run3. In some unlucky cases, these positions did not exist in Run2 and the obtained weight was zero.
Added configuration to python to pick the correct file corresponding to the chosen geometry.
Also added ExtractCaloGeoConstants
class and HICaloGeoExtract.py
macro to extract the weights from a geometry tag in the future. This class is based on https://gitlab.cern.ch/atlas-physics/hi/jets/HICaloGeo with small changes to run under component accumulator.
Resolves ATLHI-472
Also resolves OVERFLOWs
and INVALIDs
from ATLHI-469