Production of charmed particles at the CERN intersecting storage rings in events triggered by an electron