Convert HiggsWeightTool to AsgMetadataTool and access beam energy through metadata
For some DIDs (?), it seems like the weight name used to check if a sample is 13.6TeV doesn't work 100%. Instead, I've made the HiggsWeightTool
inherit from AsgMetadataTool
instead of AsgTool
and read the beam energy from the metadata. I hope this robustly handles problematic DIDs...
Tagging @sabidi @ademaria as experts who have recently modified this code