added safety against electron ecalEnergy = 0
added flag to decide what electron isolation corrections to use