The authors describe the design, construction and performance of a high-resolution spectrometer used at CERN to study the production of high-mass muon pairs by intense hadron beams. The on- and off-line software used with this spectrometer is also discussed.