Electron and Photon Energy Measurement up to 4 BeV