libpappsomspp
Library for mass spectrometry
pappso::MsRunXicExtractorInterface::MsRunXicExtractorReadPoints Class Reference

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

#include <msrunxicextractorinterface.h>

Inheritance diagram for pappso::MsRunXicExtractorInterface::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 More...
 
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 More...
 
virtual void setNeedMsLevelPeakList (unsigned int ms_level, bool want_peak_list) final
 tells if we need the peak list given More...
 
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 More...
 
virtual bool isReadAhead () const
 tells if we want to read ahead spectrum More...
 

Private Attributes

std::vector< MsRunXicExtractorPoints > & m_msrun_points
 

Detailed Description

class to read retention time points of MsRun

Definition at line 56 of file msrunxicextractorinterface.h.

Constructor & Destructor Documentation

◆ MsRunXicExtractorReadPoints()

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

Definition at line 62 of file msrunxicextractorinterface.h.

64  : m_msrun_points(msrun_points){};

Member Function Documentation

◆ loadingEnded()

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

Reimplemented from pappso::SpectrumCollectionHandlerInterface.

Definition at line 82 of file msrunxicextractorinterface.h.

83  {
84  }

◆ needPeakList()

virtual bool pappso::MsRunXicExtractorInterface::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 77 of file msrunxicextractorinterface.h.

78  {
79  return false;
80  }

◆ setQualifiedMassSpectrum()

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

Implements pappso::SpectrumCollectionHandlerInterface.

Definition at line 67 of file msrunxicextractorinterface.h.

68  {
69  if(spectrum.getMsLevel() == 1)
70  {
71  m_msrun_points.push_back(
72  {spectrum.getMassSpectrumId().getSpectrumIndex(),
73  spectrum.getRtInSeconds()});
74  }
75  }

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

Member Data Documentation

◆ m_msrun_points

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

Definition at line 59 of file msrunxicextractorinterface.h.


The documentation for this class was generated from the following file:
pappso::MsRunXicExtractorInterface::MsRunXicExtractorReadPoints::m_msrun_points
std::vector< MsRunXicExtractorPoints > & m_msrun_points
Definition: msrunxicextractorinterface.h:59