private void InitMzXMLFile() { int scanCount = LastScanNum - FirstScanNum + 1; double startTime = 0, endTime = 0; _rawReader.GetStartTime(ref startTime); _rawReader.GetEndTime(ref endTime); // get the instrument model String msModel = null; _rawReader.GetInstModel(ref msModel); // get acquisition software version String softwareVersion = null; _rawReader.GetInstSoftwareVersion(ref softwareVersion); String filter = null; _rawReader.GetFilterForScanNum(FirstScanNum, ref filter); String rawConverterVersion = "1.0.0.x"; _mzXMLWriter.WriteHeader(scanCount, startTime * 60, endTime * 60, rawFileName, "Thermo Scientific", msModel, "nanoelectrospray", msModel, msModel, "acquisition", "Xcalibur", softwareVersion, rawConverterVersion); }