Skip to content

JetCalibTools: Fix bad static_cast.

Scott Snyder requested to merge ssnyder/athena:cast.JetCalibTools-20230823 into main

EtaJESCorrection was retrieving histograms from a ROOT file and casting them to TH1D. However, they were actually TH1F. This gets a warning from the undefined behavior sanitizer. Clean up by instead casting to TH1. Also change to a dynamic_cast, so if there's a mismatch in the future, it will fail hard.

Merge request reports