libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
FilterMs1WindowSelection Class Reference

try to detect complementary ions and assign maximum intensity of both elements More...

#include <filterms1windowselection.h>

Inheritance diagram for FilterMs1WindowSelection:
pappso::FilterInterface

Public Member Functions

 FilterMs1WindowSelection (const pappso::cbor::mzcbor::QcborSpectrumPrecursor &precursor)
 
 FilterMs1WindowSelection (const FilterMs1WindowSelection &other)
 
virtual ~FilterMs1WindowSelection ()
 
pappso::Trace & filter (pappso::Trace &data_points) const override
 
- Public Member Functions inherited from pappso::FilterInterface
virtual ~FilterInterface ()
 

Private Attributes

double m_targetMz = 0
 
double m_lowerMz = 0
 
double m_upperMz = 0
 

Detailed Description

try to detect complementary ions and assign maximum intensity of both elements

experimental filter

Definition at line 44 of file filterms1windowselection.h.

Constructor & Destructor Documentation

◆ FilterMs1WindowSelection() [1/2]

FilterMs1WindowSelection::FilterMs1WindowSelection ( const pappso::cbor::mzcbor::QcborSpectrumPrecursor &  precursor)
Parameters
target_mzthe targeted mass of the peak pair
precision_ptrmatching precision

Definition at line 36 of file filterms1windowselection.cpp.

38{
39 qDebug();
40 pappso::cbor::mzcbor::IsolationWindow isolation_window = precursor.getIsolationWindow();
41 m_targetMz = isolation_window.getTargetMz();
42 m_lowerMz = isolation_window.getLowerMz();
43 m_upperMz = isolation_window.getUpperMz();
44
45
46 if((m_upperMz == 0) || (m_lowerMz == 0))
47 {
49 QObject::tr("ERROR: unable to find isolation Window in precursor"));
50 }
51}
double getUpperMz() const
compute isolation window upper m/z given cvParam informations
double getLowerMz() const
compute isolation window lower m/z given cvParam informations
double getTargetMz() const
get isolation window target m/z given cvParam informations
Definition precursor.cpp:86

References pappso::cbor::mzcbor::QcborSpectrumPrecursor::getIsolationWindow(), pappso::cbor::mzcbor::IsolationWindow::getLowerMz(), pappso::cbor::mzcbor::IsolationWindow::getTargetMz(), pappso::cbor::mzcbor::IsolationWindow::getUpperMz(), m_lowerMz, m_targetMz, and m_upperMz.

◆ FilterMs1WindowSelection() [2/2]

FilterMs1WindowSelection::FilterMs1WindowSelection ( const FilterMs1WindowSelection &  other)

Copy constructor

Parameters
otherTODO

Definition at line 53 of file filterms1windowselection.cpp.

55{
56}

◆ ~FilterMs1WindowSelection()

FilterMs1WindowSelection::~FilterMs1WindowSelection ( )
virtual

Destructor

Definition at line 61 of file filterms1windowselection.cpp.

62{
63}

Member Function Documentation

◆ filter()

Member Data Documentation

◆ m_lowerMz

double FilterMs1WindowSelection::m_lowerMz = 0
private

Definition at line 70 of file filterms1windowselection.h.

Referenced by FilterMs1WindowSelection(), and filter().

◆ m_targetMz

double FilterMs1WindowSelection::m_targetMz = 0
private

Definition at line 69 of file filterms1windowselection.h.

Referenced by FilterMs1WindowSelection().

◆ m_upperMz

double FilterMs1WindowSelection::m_upperMz = 0
private

Definition at line 71 of file filterms1windowselection.h.

Referenced by FilterMs1WindowSelection(), and filter().


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