avoiding crash in cases when ecalEnergy=0
fixed definition of nBJetLoose40