70 <<
" precursor.get()->getXicCoordSPtr().get()->toString="
75 QObject::tr(
"precursor.get()->getXicCoordSPtr().get() == "
76 "nullptr\nindex=%1 %2 %3 %4")
125 "precursor.get()->getXicCoordSPtr().get() == nullptr scan_num=%1\n")
136 qDebug() <<
" spectrum_index=" << spectrum_index;
141 QObject::tr(
"precursor.get()->getXicCoordSPtr().get() == nullptr \n")
143 .arg(spectrum_index));
146 qDebug() <<
" spectrum_index=" << spectrum_index;
151 std::size_t spectrum_index)
const
160 QObject::tr(
"spectrum index %1 not found in %2")
169 std::size_t spectrum_index)
const
178 QObject::tr(
"scan number %1 not found in %2")
std::size_t getSpectrumIndex() const
const QString & getNativeId() const
static PrecisionPtr getPpmInstance(pappso_double value)
get a ppm precision pointer
Class representing a fully specified mass spectrum.
uint getMsLevel() const
Get the mass spectrum level.
pappso_double getPrecursorIntensity(bool *ok=nullptr) const
get precursor intensity
const MassSpectrumId & getMassSpectrumId() const
Get the MassSpectrumId.
pappso_double getPrecursorMz(bool *ok=nullptr) const
get precursor mz
std::size_t getPrecursorSpectrumIndex() const
Get the scan number of the precursor ion.
static std::size_t extractScanNumberFromMzmlNativeId(const QString &spectrum_native_id)
const PrecursorSp & getPrecursorSPtrBySpectrumIndex(std::size_t spectrum_index) const
void mapSpectrumIndexToPrecursor(std::size_t spectrum_index, PrecursorSp precursor)
map spectrum index to precursor new modern method to replace obsolete scan number
std::map< std::size_t, PrecursorSp > m_scanNumber2PrecursorMap
virtual bool needPeakList() const override
tells if we need the peak list (if we want the binary data) for each spectrum
void mapScanNumberPrecursor(std::size_t scan_num, PrecursorSp precursor)
map precursor to its scan number as parsed in the xml file of this msrun
std::map< std::size_t, PrecursorSp > m_spectrumIndex2PrecursorMap
virtual ~PrecursorParser()
virtual void setQualifiedMassSpectrum(const pappso::QualifiedMassSpectrum &qspectrum) override
virtual bool isReadAhead() const override
tells if we want to read ahead spectrum
const PrecursorSp & getPrecursorSPtrByScanNumber(std::size_t spectrum_index) const
PrecursorParser(pappso::MsRunReaderCstSPtr msrun_reader)
pappso::MsRunReaderCstSPtr msp_msrunReader
const pappso::XicCoordSPtr & getXicCoordSPtr() const
std::shared_ptr< Precursor > PrecursorSp
std::shared_ptr< const MsRunReader > MsRunReaderCstSPtr