Electron Identification With The Cms Detector And Applications For Higgs And W Boson Searches