libpappsomspp
Library for mass spectrometry
RetentionTimeReader Class Reference
Inheritance diagram for RetentionTimeReader:
pappso::SpectrumCollectionHandlerInterface

Public Member Functions

 RetentionTimeReader (std::vector< RtPoint > &rt_points)
 
virtual ~RetentionTimeReader ()
 
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...
 
- 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 loadingEnded ()
 
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< RtPoint > & m_rtPoints
 

Detailed Description

Definition at line 54 of file msrunretentiontime.cpp.

Constructor & Destructor Documentation

◆ RetentionTimeReader()

RetentionTimeReader::RetentionTimeReader ( std::vector< RtPoint > &  rt_points)
inline

Definition at line 58 of file msrunretentiontime.cpp.

59  : m_rtPoints(rt_points){};
std::vector< RtPoint > & m_rtPoints

◆ ~RetentionTimeReader()

virtual RetentionTimeReader::~RetentionTimeReader ( )
inlinevirtual

Definition at line 60 of file msrunretentiontime.cpp.

60 {};

Member Function Documentation

◆ needPeakList()

virtual bool RetentionTimeReader::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 71 of file msrunretentiontime.cpp.

72  {
73  return false;
74  };

◆ setQualifiedMassSpectrum()

virtual void RetentionTimeReader::setQualifiedMassSpectrum ( const QualifiedMassSpectrum spectrum)
inlineoverridevirtual

Implements pappso::SpectrumCollectionHandlerInterface.

Definition at line 62 of file msrunretentiontime.cpp.

63  {
64  if(spectrum.getMsLevel() == 1)
65  {
66  m_rtPoints.push_back({spectrum.getRtInSeconds(),
67  spectrum.getMassSpectrumId().getSpectrumIndex()});
68  }
69  };
std::size_t getSpectrumIndex() const
uint getMsLevel() const
Get the mass spectrum level.
const MassSpectrumId & getMassSpectrumId() const
Get the MassSpectrumId.
pappso_double getRtInSeconds() const
Get the retention time in seconds.

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

Member Data Documentation

◆ m_rtPoints

std::vector<RtPoint>& RetentionTimeReader::m_rtPoints
private

Definition at line 77 of file msrunretentiontime.cpp.


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