Probably not essential in this place, but deltaPhi and deltaEta computation is not done twice here and a few lines below.
This is a bit of a waste of CPU on expensive ops