Skip to content

egammaEvent: Avoid UB in double->unsigned conversion.

Scott Snyder requested to merge ssnyder/athena:conv.egammaEvent-20220406 into master

Converting a double to an unsigned is undefined if the value is negative. This was happening in egPID::set_egammaID. Resolve by first converting to a long, then to unsigned.

Fixes failure seen in the aarch64 build in egammaAthenaPool.

Merge request reports