Detector for measuring the π + →e + ν e branching fraction