libpappsomspp
Library for mass spectrometry
msrunreadconfig.cpp
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (c) 2023 Filippo Rusconi
3 *<filippo.rusconi@universite-paris-saclay.fr>.
4 *
5 * This file is part of the PAPPSOms++ library.
6 *
7 * PAPPSOms++ is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * PAPPSOms++ is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
19 *
20 ******************************************************************************/
21
22#include "msrunreadconfig.h"
23
24namespace pappso
25{
26
28{
29}
30
32 m_retentionTimeStart(other.m_retentionTimeStart),
33 m_retentionTimeEnd(other.m_retentionTimeEnd),
34 m_msLevels(other.m_msLevels)
35{
36
37}
38
40{
41}
42
45{
46 if(&other == this)
47 return *this;
48
51 m_msLevels.assign(other.m_msLevels.begin(), other.m_msLevels.end());
52
53 return *this;
54}
55
56void
57MsRunReadConfig::setRetentionTimeStart(double retention_time_start)
58{
59 m_retentionTimeStart = retention_time_start;
60}
61
62double
64{
66}
67
68void
69MsRunReadConfig::setRetentionTimeEnd(double retention_time_end)
70{
71 m_retentionTimeEnd = retention_time_end;
72}
73
74double
76{
77 return m_retentionTimeEnd;
78}
79
80void
81MsRunReadConfig::setMsLevels(std::vector<std::size_t> ms_levels)
82{
83 m_msLevels.assign(ms_levels.begin(), ms_levels.end());
84}
85
86std::vector<std::size_t>
88{
89 return m_msLevels;
90}
91
92} // namespace pappso
double getRetentionTimeEnd() const
MsRunReadConfig & operator=(const MsRunReadConfig &other)
std::vector< std::size_t > m_msLevels
void setRetentionTimeEnd(double retention_time_end)
double getRetentionTimeStart() const
std::vector< std::size_t > getMsLevels(void)
void setMsLevels(std::vector< std::size_t > ms_levels)
void setRetentionTimeStart(double retention_time_start)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39