libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
filterms1windowselection.cpp
Go to the documentation of this file.
1/**
2 * \file core/filter/filterms1windowselection.cpp
3 * \date 28/09/2026
4 * \author Olivier Langella
5 * \brief filter extract ms1 window selection
6 */
7
8
9/*
10 * PeptidOMS, Spectra to protein alignment tool
11 * Copyright (C) 2026 Olivier Langella
12 * <olivier.langella@cnrs.fr>
13 *
14 * This program is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program. If not, see <http://www.gnu.org/licenses/>.
26 *
27 */
28
30#include <qlogging.h>
31#include <qvariant.h>
35
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}
52
57
58/**
59 * Destructor
60 */
64
65
pappso::Trace & filter(pappso::Trace &data_points) const override
FilterMs1WindowSelection(const pappso::cbor::mzcbor::QcborSpectrumPrecursor &precursor)
Trace & filter(Trace &trace) const override
Trace & filter(Trace &trace) const override
A simple container of DataPoint instances.
Definition trace.h:152
PSI precursor object for mzML/mzCBOR.
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