libpappsomspp
Library for mass spectrometry
massspectrumcombiner.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 #include <memory>
5 
6 #include <QDataStream>
7 
8 #include "../../exportinmportconfig.h"
9 #include "../../types.h"
10 #include "../../mzrange.h"
11 
12 #include "../../massspectrum/massspectrum.h"
13 #include "../../trace/datapoint.h"
14 #include "../../trace/maptrace.h"
15 #include "../filters/filterresample.h"
17 
18 
19 namespace pappso
20 {
21 
22 class MassSpectrumCombiner;
23 
24 typedef std::shared_ptr<const MassSpectrumCombiner> MassSpectrumCombinerCstSPtr;
25 typedef std::shared_ptr<MassSpectrumCombiner> MassSpectrumCombinerSPtr;
26 
27 
29 {
30 
31  public:
33  MassSpectrumCombiner(int decimal_places);
34  MassSpectrumCombiner(std::vector<pappso_double> bins, int decimalPlaces = -1);
38 
39  virtual ~MassSpectrumCombiner();
40 
41  void setBins(std::vector<pappso_double> bins);
42  const std::vector<pappso_double> &getBins() const;
43  std::size_t binCount() const;
44 
45  QString binsAsString() const;
46 
47  protected:
48  std::vector<pappso_double> m_bins;
49 
50  std::vector<pappso_double>::iterator findBin(pappso_double mz);
51 };
52 
53 
54 } // namespace pappso
std::vector< pappso_double > m_bins
MassSpectrumCombiner(const MassSpectrumCombiner &&other)
#define PMSPP_LIB_DECL
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39
std::shared_ptr< MassSpectrumCombiner > MassSpectrumCombinerSPtr
double pappso_double
A type definition for doubles.
Definition: types.h:49
std::shared_ptr< const MassSpectrumCombiner > MassSpectrumCombinerCstSPtr