add function for pat electrons:it was already in CVS area. Just synchronized