Error Model for Mass Spectrometry