OpenMS
2.7.0
|
Aggregates spectra by retention time. More...
#include <OpenMS/FORMAT/DATAACCESS/MSDataAggregatingConsumer.h>
Public Member Functions | |
MSDataAggregatingConsumer (Interfaces::IMSDataConsumer *next_consumer) | |
Constructor. More... | |
~MSDataAggregatingConsumer () override | |
Constructor. More... | |
void | setExpectedSize (Size, Size) override |
Set expected size of spectra and chromatograms to be consumed. More... | |
void | consumeSpectrum (SpectrumType &s) override |
Consume a spectrum. More... | |
void | consumeChromatogram (ChromatogramType &c) override |
Consume a chromatogram. More... | |
void | setExperimentalSettings (const OpenMS::ExperimentalSettings &) override |
Set experimental settings (meta-data) of the data to be consumed. More... | |
Public Member Functions inherited from IMSDataConsumer | |
virtual | ~IMSDataConsumer () |
Private Attributes | |
Interfaces::IMSDataConsumer * | next_consumer_ |
double | previous_rt_ |
bool | rt_initialized_ |
SpectrumType | s_tmp |
std::vector< SpectrumType > | s_list |
Additional Inherited Members | |
Public Types inherited from IMSDataConsumer | |
typedef MSSpectrum | SpectrumType |
typedef MSChromatogram | ChromatogramType |
Aggregates spectra by retention time.
This consumer will merge spectra passed to it that have the same retention time and will then pass them to the next consumer (see Constructor). Spectra are aggregated using SpectrumAddition::addUpSpectra() which merges the spectra.
|
inline |
Constructor.
|
override |
Constructor.
Flushes data to next consumer
|
overridevirtual |
Consume a chromatogram.
The chromatogram will be consumed by the implementation and possibly modified.
s | The chromatogram to be consumed |
Implements IMSDataConsumer.
|
overridevirtual |
Consume a spectrum.
The spectrum will be consumed by the implementation and possibly modified.
s | The spectrum to be consumed |
Implements IMSDataConsumer.
Set expected size of spectra and chromatograms to be consumed.
Some implementations might care about the number of spectra and chromatograms to be consumed and need to be informed about this (usually before consuming starts).
expectedSpectra | Number of spectra expected |
expectedChromatograms | Number of chromatograms expected |
Implements IMSDataConsumer.
|
inlineoverridevirtual |
Set experimental settings (meta-data) of the data to be consumed.
Some implementations might need to know about the meta-data (or the context) of the spectra and chromatograms to be consumed. This method allows them learn this.
exp | Experimental settings meta data for the data to be consumed |
Implements IMSDataConsumer.
|
private |
|
private |
|
private |
|
private |
|
private |