Code for calculation of fake rates of electrons faking photons