Parametrization of background PDF in pixels of single module.
More...
#include <BackgroundPDF.h>
|
void | set () |
| Sets the PDF.
|
|
|
int | m_moduleID |
| slot ID
|
|
std::vector< double > | m_pdf |
| pixel part of PDF (index = pixelID - 1)
|
|
double | m_effi = 0 |
| average relative efficiency
|
|
Parametrization of background PDF in pixels of single module.
Definition at line 23 of file BackgroundPDF.h.
◆ BackgroundPDF()
Class constructor.
- Parameters
-
Definition at line 22 of file BackgroundPDF.cc.
26 if (not yScanner) B2FATAL(
"TOP::BackgroundPDF: invalid slot number, moduleID = " << moduleID);
28 const auto& pixelPositions = yScanner->getPixelPositions().getPixels();
29 const auto& pixelMasks = yScanner->getPixelMasks().getMasks();
30 const auto& pixelEfficiencies = yScanner->getPixelEfficiencies().getEfficiencies();
32 if (pixelMasks.size() != pixelPositions.size() or pixelEfficiencies.size() != pixelPositions.size()) {
33 B2FATAL(
"TOP::BackgroundPDF: pixel positions, masks and efficiencies have different sizes for slot " << moduleID
34 <<
LogVar(
"pixelPositions.size()", pixelPositions.size())
35 <<
LogVar(
"pixelMasks.size()", pixelMasks.size())
36 <<
LogVar(
"pixelEfficiencies.size()", pixelEfficiencies.size()));
39 m_pdf.resize(pixelPositions.size(), 0);
std::vector< double > m_pdf
pixel part of PDF (index = pixelID - 1)
static const YScanner * getYScanner(int moduleID)
Returns y-scanner of a given module.
Class to store variables with their name which were sent to the logging service.
◆ getEfficiency()
double getEfficiency |
( |
| ) |
const |
|
inline |
Returns average of pixel relative efficiencies.
- Returns
- average of pixel relative efficiencies
Definition at line 56 of file BackgroundPDF.h.
double m_effi
average relative efficiency
◆ getModuleID()
int getModuleID |
( |
| ) |
const |
|
inline |
◆ getPDF()
const std::vector<double>& getPDF |
( |
| ) |
const |
|
inline |
Returns pixel part of PDF.
- Returns
- pixel part of PDF (index = pixelID - 1)
Definition at line 50 of file BackgroundPDF.h.
◆ getPDFValue()
double getPDFValue |
( |
int |
pixelID | ) |
const |
Returns PDF value for given pixel.
- Parameters
-
- Returns
- PDF value
Definition at line 72 of file BackgroundPDF.cc.
The documentation for this class was generated from the following files: