OpenMS
SpectrumCount.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Axel Walter $
6 // $Authors: Axel Walter $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/QC/QCBase.h>
12 
17 namespace OpenMS
18 {
19  class MSExperiment;
20 
21  class OPENMS_DLLAPI SpectrumCount : public QCBase
22  {
23  public:
25  SpectrumCount() = default;
26 
28  virtual ~SpectrumCount() = default;
29 
37  std::map<Size, UInt> compute(const MSExperiment& exp);
38 
39  const String& getName() const override;
40 
41  QCBase::Status requirements() const override;
42 
43  private:
44  const String name_ = "SpectrumCount";
45  };
46 } // namespace OpenMS
Stores and handles combinations of enum values, e.g. a set of flags as bits flipped in an UInt64.
Definition: FlagSet.h:28
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:45
This class serves as an abstract base class for all QC classes.
Definition: QCBase.h:29
Definition: SpectrumCount.h:22
std::map< Size, UInt > compute(const MSExperiment &exp)
Compute number of spectra per MS level and returns them in a map.
SpectrumCount()=default
Constructor.
const String & getName() const override
Returns the name of the metric.
QCBase::Status requirements() const override
Returns the input data requirements of the compute(...) function.
virtual ~SpectrumCount()=default
Destructor.
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19