Skip to content

CPAlgorithm: protect against missing MET terms

Baptiste Ravina requested to merge ravinab/athena:met_protection into main

Various algorithms just attempt to retrieve a MET term that may not be there (especially if running at truth-level), which would return a null pointer and lead to an uninformative crash when calling e.g. met->pt().

This MR checks for the existence of the MET term first, and prints an informative error message if it's missing.

Merge request reports

Loading