Pixel relative efficiencies of a single module.
More...
#include <PixelEfficiencies.h>
Pixel relative efficiencies of a single module.
Definition at line 22 of file PixelEfficiencies.h.
◆ PixelEfficiencies()
Constructor: all relative efficiencies are set to 1.
- Parameters
-
Definition at line 20 of file PixelEfficiencies.cc.
23 if (not geo->isModuleIDValid(moduleID)) {
24 B2FATAL(
"TOP::PixelEfficiencies: invalid slot number, moduleID = " << moduleID);
27 int numPixels = geo->getModule(moduleID).getPMTArray().getNumPixels();
std::vector< double > m_efficiencies
pixel relative efficiencies, index = pixelID - 1
const TOPGeometry * getGeometry() const
Returns pointer to geometry object using basf2 units.
static TOPGeometryPar * Instance()
Static method to obtain the pointer to its instance.
◆ get()
double get |
( |
int |
pixelID | ) |
const |
|
inline |
Returns pixel relative efficinecy.
- Parameters
-
pixelID | pixel ID (1-based) |
- Returns
- relative efficiency
Definition at line 79 of file PixelEfficiencies.h.
81 unsigned k = pixelID - 1;
◆ getEfficiencies()
const std::vector<double>& getEfficiencies |
( |
| ) |
const |
|
inline |
Returns pixel relative efficiencies of entire module.
- Returns
- vector of relative efficiencies
Definition at line 62 of file PixelEfficiencies.h.
◆ getModuleID()
int getModuleID |
( |
| ) |
const |
|
inline |
◆ getNumPixels()
unsigned getNumPixels |
( |
| ) |
const |
|
inline |
◆ set()
void set |
( |
int |
pixelID, |
|
|
double |
value |
|
) |
| |
|
inline |
Sets relative efficiency for a given pixel.
- Parameters
-
pixelID | pixel ID (1-based) |
value | relative efficiency |
Definition at line 73 of file PixelEfficiencies.h.
The documentation for this class was generated from the following files: