A typical ED spectrometer is diagrammed in Figure 3. Here the entire polychromatic spectrum from the sample is incident upon a detector that is capable of registering the energy of each photon that strikes it. The detector electronics and data system then build the X-ray spectrum as a histogram, with number of counts versus energy.