OpenMS
SONARScoring.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: Hannes Roest $
6 // $Authors: Hannes Roest $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
15 
17 
19 
20 namespace OpenMS
21 {
28  class OPENMS_DLLAPI SONARScoring :
29  public DefaultParamHandler
30  {
31 public:
32 
34 
35  SONARScoring();
37 
39  ~SONARScoring() override {}
41  //
42 
44  const std::vector<OpenSwath::LightTransition> & transitions,
45  const std::vector<OpenSwath::SwathMap>& swath_maps,
46  OpenSwath_Scores & scores) const;
47 
48 private:
49 
50  void computeXCorr_(std::vector<std::vector<double> >& sonar_profiles,
51  double& xcorr_coelution_score, double& xcorr_shape_score) const;
52 
55 
58 
60  void updateMembers_() override;
61 
65 
66  };
67 }
68 
69 
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
Scoring of an spectrum using SONAR data.
Definition: SONARScoring.h:30
void computeXCorr_(std::vector< std::vector< double > > &sonar_profiles, double &xcorr_coelution_score, double &xcorr_shape_score) const
~SONARScoring() override
Destructor.
Definition: SONARScoring.h:39
SONARScoring & operator=(const SONARScoring &rhs)
Assignment operator (algorithm class)
SONARScoring(const SONARScoring &rhs)
Copy constructor (algorithm class)
bool dia_extraction_ppm_
Definition: SONARScoring.h:64
void computeSonarScores(OpenSwath::IMRMFeature *imrmfeature, const std::vector< OpenSwath::LightTransition > &transitions, const std::vector< OpenSwath::SwathMap > &swath_maps, OpenSwath_Scores &scores) const
double dia_extract_window_
Definition: SONARScoring.h:62
void updateMembers_() override
Synchronize members with param class.
bool dia_centroided_
Definition: SONARScoring.h:63
Definition: ITransition.h:31
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
A structure to hold the different scores computed by OpenSWATH.
Definition: OpenSwathScores.h:57