libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
tracedetectioninterface.h
Go to the documentation of this file.
1
2
/*******************************************************************************
3
* Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.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
* Contributors:
21
* Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
22
*implementation
23
******************************************************************************/
24
25
#pragma once
26
27
#include "
tracepeak.h
"
28
29
namespace
pappso
30
{
31
class
TraceDetectionInterface
;
32
33
typedef
std::shared_ptr<TraceDetectionInterface>
TraceDetectionInterfaceSPtr
;
34
typedef
std::shared_ptr<const TraceDetectionInterface>
35
TraceDetectionInterfaceCstSPtr
;
36
37
class
TraceDetectionSinkInterface
38
{
39
public
:
40
virtual
void
setTracePeak
(
TracePeak
&xic_peak) = 0;
41
};
42
43
class
TraceDetectionInterface
44
{
45
public
:
46
/** @brief detect peaks on a trace
47
* @param trace the trace to detect peaks on
48
* @param sink the object to store peaks or stream it
49
* @param remove_peak_base if true, removes the area under the base of the
50
* peak
51
*/
52
virtual
void
detect
(
const
Trace
&trace,
53
TraceDetectionSinkInterface
&sink,
54
bool
remove_peak_base)
const
= 0;
55
};
56
57
58
}
// namespace pappso
pappso::TraceDetectionInterface
Definition
tracedetectioninterface.h:44
pappso::TraceDetectionInterface::detect
virtual void detect(const Trace &trace, TraceDetectionSinkInterface &sink, bool remove_peak_base) const =0
detect peaks on a trace
pappso::TraceDetectionSinkInterface
Definition
tracedetectioninterface.h:38
pappso::TraceDetectionSinkInterface::setTracePeak
virtual void setTracePeak(TracePeak &xic_peak)=0
pappso::TracePeak
Definition
tracepeak.h:40
pappso::Trace
A simple container of DataPoint instances.
Definition
trace.h:152
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappso::TraceDetectionInterfaceSPtr
std::shared_ptr< TraceDetectionInterface > TraceDetectionInterfaceSPtr
Definition
tracedetectioninterface.h:33
pappso::TraceDetectionInterfaceCstSPtr
std::shared_ptr< const TraceDetectionInterface > TraceDetectionInterfaceCstSPtr
Definition
tracedetectioninterface.h:35
tracepeak.h
pappsomspp
core
processing
detection
tracedetectioninterface.h
Generated on
for libpappsomspp by
1.17.0