private static double GetCollisionEnergy(IXRawfile5 rawFile, int scanNo, int msLevel) { double e = 0; rawFile.GetCollisionEnergyForScanNum(scanNo, msLevel - 1, ref e); return(e); }