| 31 | |
| 32 | |
| 33 | void storeSwathFile(String filename, int nr_swathes=32) |
| 34 | { |
| 35 | PeakMap exp; |
| 36 | { |
| 37 | MSSpectrum s; |
| 38 | s.setMSLevel(1); |
| 39 | Peak1D p; p.setMZ(101); p.setIntensity(201); |
| 40 | s.push_back(p); |
| 41 | exp.addSpectrum(s); |
| 42 | } |
| 43 | for (int i = 0; i< nr_swathes; i++) |
| 44 | { |
| 45 | MSSpectrum s; |
| 46 | s.setMSLevel(2); |
| 47 | std::vector<Precursor> prec(1); |
| 48 | prec[0].setIsolationWindowLowerOffset(12.5); |
| 49 | prec[0].setIsolationWindowUpperOffset(12.5); |
| 50 | prec[0].setMZ(400 + i*25 + 12.5); |
| 51 | s.setPrecursors(prec); |
| 52 | Peak1D p; p.setMZ(101 + i); p.setIntensity(201 + i); |
| 53 | s.push_back(p); |
| 54 | exp.addSpectrum(s); |
| 55 | } |
| 56 | MzMLFile().store(filename, exp); |
| 57 | } |
| 58 | |
| 59 | void storeSplitSwathFile(std::vector<String> filenames) |
| 60 | { |
no test coverage detected