49 template <
typename SpectrumType>
54 std::map<double, int> marks;
55 for (std::vector<PeakMarker *>::const_iterator cvit = markers_.begin(); cvit != markers_.end(); ++cvit)
57 std::map<double, bool> marked;
58 (*cvit)->apply(marked, spectrum);
59 for (std::map<double, bool>::const_iterator cmit = marked.begin(); cmit != marked.end(); ++cmit)
68 for (
Iterator it = spectrum.begin(); it != spectrum.end(); )
70 if (marks[it->getMZ()] > 0)
76 it = spectrum.erase(it);
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:46
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
ContainerType::iterator Iterator
Mutable iterator.
Definition: MSSpectrum.h:108
MarkerMower uses PeakMarker to find peaks, those that are not marked get removed.
Definition: MarkerMower.h:30
void insertmarker(PeakMarker *peak_marker)
insert new Marker (violates the DefaultParamHandler interface)
MarkerMower & operator=(const MarkerMower &source)
assignment operator
void filterPeakSpectrum(PeakSpectrum &spectrum)
MarkerMower()
default constructor
void filterPeakMap(PeakMap &exp)
void filterSpectrum(SpectrumType &spectrum)
Definition: MarkerMower.h:50
~MarkerMower() override
destructor
std::vector< PeakMarker * > markers_
used peak markers
Definition: MarkerMower.h:99
MarkerMower(const MarkerMower &source)
copy constructor
static const String getProductName()
Definition: MarkerMower.h:85
PeakMarker marks peaks that seem to fulfill some criterion.
Definition: PeakMarker.h:23
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22