Belle II Software  release-08-01-10
BackgroundPDF.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <vector>
12 
13 namespace Belle2 {
18  namespace TOP {
19 
23  class BackgroundPDF {
24 
25  public:
26 
31  explicit BackgroundPDF(int moduleID);
32 
37  int getModuleID() const {return m_moduleID;}
38 
44  double getPDFValue(int pixelID) const;
45 
50  const std::vector<double>& getPDF() const {return m_pdf;}
51 
56  double getEfficiency() const {return m_effi;}
57 
58  private:
59 
63  void set();
64 
65  int m_moduleID;
66  std::vector<double> m_pdf;
67  double m_effi = 0;
69  friend class TOPRecoManager;
70 
71  };
72 
73  } // namespace TOP
75 } // namespace Belle2
76 
77 
Parametrization of background PDF in pixels of single module.
Definition: BackgroundPDF.h:23
BackgroundPDF(int moduleID)
Class constructor.
double getPDFValue(int pixelID) const
Returns PDF value for given pixel.
const std::vector< double > & getPDF() const
Returns pixel part of PDF.
Definition: BackgroundPDF.h:50
void set()
Sets the PDF.
int getModuleID() const
Returns slot ID.
Definition: BackgroundPDF.h:37
double m_effi
average relative efficiency
Definition: BackgroundPDF.h:67
double getEfficiency() const
Returns average of pixel relative efficiencies.
Definition: BackgroundPDF.h:56
std::vector< double > m_pdf
pixel part of PDF (index = pixelID - 1)
Definition: BackgroundPDF.h:66
Singleton class providing pre-constructed reconstruction objects.
Abstract base class for different kinds of events.