Loading...
Searching...
No Matches
massspectrumcombiner.h
Go to the documentation of this file.
#pragma once
#include <vector>
#include <memory>
#include <QDataStream>
#include "../../exportinmportconfig.h"
#include "../../types.h"
#include "../../mzrange.h"
#include "../../massspectrum/massspectrum.h"
#include "../../trace/datapoint.h"
#include "../../trace/maptrace.h"
#include "../filters/filterresample.h"
#include "massdatacombinerinterface.h"
namespace pappso
{
class MassSpectrumCombiner;
typedef std::shared_ptr<const MassSpectrumCombiner> MassSpectrumCombinerCstSPtr;
typedef std::shared_ptr<MassSpectrumCombiner> MassSpectrumCombinerSPtr;
class PMSPP_LIB_DECL MassSpectrumCombiner : public MassDataCombinerInterface
{
public:
MassSpectrumCombiner();
MassSpectrumCombiner(int decimal_places);
MassSpectrumCombiner(std::vector<pappso_double> bins, int decimalPlaces = -1);
MassSpectrumCombiner(MassSpectrumCombinerCstSPtr other);
MassSpectrumCombiner(const MassSpectrumCombiner &other);
MassSpectrumCombiner(const MassSpectrumCombiner &&other);
virtual ~MassSpectrumCombiner();
void setBins(std::vector<pappso_double> bins);
const std::vector<pappso_double> &getBins() const;
std::size_t binCount() const;
QString binsAsString() const;
protected:
std::vector<pappso_double> m_bins;
std::vector<pappso_double>::iterator findBin(pappso_double mz);
};
} // namespace pappso
pappso::MassDataCombinerInterface
Definition massdatacombinerinterface.h:26
pappso::MassSpectrumCombiner
Definition massspectrumcombiner.h:29
pappso::MassSpectrumCombiner::m_bins
std::vector< pappso_double > m_bins
Definition massspectrumcombiner.h:48
pappso::MassSpectrumCombiner::MassSpectrumCombiner
MassSpectrumCombiner(const MassSpectrumCombiner &&other)
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition exportinmportconfig.h:14
massdatacombinerinterface.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
pappso::MassSpectrumCombinerSPtr
std::shared_ptr< MassSpectrumCombiner > MassSpectrumCombinerSPtr
Definition massspectrumcombiner.h:25
pappso::pappso_double
double pappso_double
A type definition for doubles.
Definition types.h:50
pappso::MassSpectrumCombinerCstSPtr
std::shared_ptr< const MassSpectrumCombiner > MassSpectrumCombinerCstSPtr
Definition massspectrumcombiner.h:24