RawDataFile dataFile = bestPeak.getDataFile();
Map<DataPoint, String> msmsAnnotations = null;
int msmsScanNumber = bestPeak.getMostIntenseFragmentScanNumber();
if ((checkMSMS) && (msmsScanNumber > 0)) {
Scan msmsScan = dataFile.getScan(msmsScanNumber);
String massListName = msmsParameters.getParameter(
MSMSScoreParameters.massList).getValue();
MassList ms2MassList = msmsScan.getMassList(massListName);
if (ms2MassList == null) {
setStatus(TaskStatus.ERROR);
this.errorMessage = "The MS/MS scan #" + msmsScanNumber
+ " in file " + dataFile.getName()
+ " does not have a mass list called '" + massListName