Mass spectrometer used for detect leakages