egammaEvent: Avoid UB in double->unsigned conversion.
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.