}
if (qName.equals(RawDataElementName_2_5_FiehnlabFork.SCAN
.getElementName())) {
StorableScan scan = null;
if (isCorrectedSpectrum) {
scan = new CorrectedSpectrum(newRawDataFile, currentStorageID,
scanNumber, originalRetentionTime,
(int) retentionIndex, (int) uniqueMass,
dataPointsNumber, centroided);
} else {
scan = new StorableScan(newRawDataFile, currentStorageID,
dataPointsNumber, scanNumber, msLevel, retentionTime,
parentScan, precursorMZ, precursorCharge, fragmentScan,
centroided);
}
try {
newRawDataFile.addScan(scan);
} catch (IOException e) {
throw new SAXException(e);
}
for (StorableMassList newML : massLists) {
newML.setScan(scan);
scan.addMassList(newML);
}
massLists.clear();
}
if (qName.equals(RawDataElementName_2_5_FiehnlabFork.CORRECTED_SPECTRUM