libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints Class Reference

class to read retention time points of MsRun More...

#include <msrunxicextractor.h>

Inheritance diagram for pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints:
pappso::SpectrumCollectionHandlerInterface

Public Member Functions

 MsRunXicExtractorReadPoints (std::vector< MsRunXicExtractorPoints > &msrun_points)
virtual void setQualifiedMassSpectrum (const QualifiedMassSpectrum &spectrum) override
virtual bool needPeakList () const override
 tells if we need the peak list (if we want the binary data) for each spectrum
virtual void loadingEnded () override
Public Member Functions inherited from pappso::SpectrumCollectionHandlerInterface
virtual bool needMsLevelPeakList (unsigned int ms_level) const final
 tells if we need the peak list (if we want the binary data) for each spectrum, given an MS level
virtual void setNeedMsLevelPeakList (unsigned int ms_level, bool want_peak_list) final
 tells if we need the peak list given
virtual bool shouldStop ()
virtual void spectrumListHasSize (std::size_t size)
virtual void setReadAhead (bool is_read_ahead) final
 use threads to read a spectrum by batch of batch_size
virtual bool isReadAhead () const
 tells if we want to read ahead spectrum

Private Attributes

std::vector< MsRunXicExtractorPoints > & m_msrun_points

Detailed Description

class to read retention time points of MsRun

Definition at line 67 of file msrunxicextractor.h.

Constructor & Destructor Documentation

◆ MsRunXicExtractorReadPoints()

pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints::MsRunXicExtractorReadPoints ( std::vector< MsRunXicExtractorPoints > & msrun_points)
inline

Definition at line 73 of file msrunxicextractor.h.

74 : m_msrun_points(msrun_points) {};
std::vector< MsRunXicExtractorPoints > & m_msrun_points

References m_msrun_points.

Member Function Documentation

◆ loadingEnded()

virtual void pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints::loadingEnded ( )
inlineoverridevirtual

Reimplemented from pappso::SpectrumCollectionHandlerInterface.

Definition at line 92 of file msrunxicextractor.h.

93 {
94 }

◆ needPeakList()

virtual bool pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints::needPeakList ( ) const
inlineoverridevirtual

tells if we need the peak list (if we want the binary data) for each spectrum

Implements pappso::SpectrumCollectionHandlerInterface.

Definition at line 87 of file msrunxicextractor.h.

88 {
89 return false;
90 }

◆ setQualifiedMassSpectrum()

virtual void pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints::setQualifiedMassSpectrum ( const QualifiedMassSpectrum & spectrum)
inlineoverridevirtual

Implements pappso::SpectrumCollectionHandlerInterface.

Definition at line 77 of file msrunxicextractor.h.

78 {
79 if(spectrum.getMsLevel() == 1)
80 {
81 qDebug() << spectrum.getMassSpectrumId().getSpectrumIndex();
82 m_msrun_points.push_back(
83 {spectrum.getMassSpectrumId().getSpectrumIndex(), spectrum.getRtInSeconds()});
84 }
85 }

References pappso::QualifiedMassSpectrum::getMassSpectrumId(), pappso::QualifiedMassSpectrum::getMsLevel(), pappso::QualifiedMassSpectrum::getRtInSeconds(), pappso::MassSpectrumId::getSpectrumIndex(), and m_msrun_points.

Member Data Documentation

◆ m_msrun_points

std::vector<MsRunXicExtractorPoints>& pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints::m_msrun_points
private

Definition at line 70 of file msrunxicextractor.h.

Referenced by MsRunXicExtractorReadPoints(), and setQualifiedMassSpectrum().


The documentation for this class was generated from the following file: