Mass detector