MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / findByScanNumber

Method findByScanNumber

src/openms/source/METADATA/SpectrumLookup.cpp:94–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92
93
94 Size SpectrumLookup::findByScanNumber(Size scan_number) const
95 {
96 map<Size, Size>::const_iterator pos = scans_.find(scan_number);
97 if (pos == scans_.end())
98 {
99 String element = "spectrum with scan number " + String(scan_number);
100 throw Exception::ElementNotFound(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
101 element);
102 }
103 return pos->second;
104 }
105
106
107 void SpectrumLookup::addReferenceFormat(const String& regexp)

Callers 4

main_Method · 0.80
parseLuciphorOutput_Method · 0.80
readRTMZCharge_Method · 0.80

Calls 3

StringClass · 0.50
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected