Systems, methods, and computer programming for collecting data using a
mass spectrometer comprising a particle detector or other mass analyzer.
A data collection such as a tree or array structure which includes data
records for storing detected data is maintained in volatile or persistent
memory. Data is received from the mass analyzer. Whether the collection
contains data records corresponding to newly-acquired data signals is
determined. If the collection does not contain records corresponding to
the newly-received records, a new record is added. In either case, the
record corresponding to the received data record is updated to reflect
reception of the newly-acquired signal.