Pixel relative efficiencies of a single module.
More...
#include <PixelEfficiencies.h>
|
| PixelEfficiencies (int moduleID) |
| Constructor: all relative efficiencies are set to 1.
|
|
void | set (int pixelID, double value) |
| Sets relative efficiency for a given pixel.
|
|
int | getModuleID () const |
| Returns slot ID.
|
|
unsigned | getNumPixels () const |
| Returns number of pixels.
|
|
double | get (int pixelID) const |
| Returns pixel relative efficinecy.
|
|
const std::vector< double > & | getEfficiencies () const |
| Returns pixel relative efficiencies of entire module.
|
|
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.
21 {
23 if (not geo->isModuleIDValid(moduleID)) {
24 B2FATAL("TOP::PixelEfficiencies: invalid slot number, moduleID = " << moduleID);
25 return;
26 }
27 int numPixels = geo->getModule(moduleID).getPMTArray().getNumPixels();
29 }
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.
80 {
81 unsigned k = pixelID - 1;
83 return 0;
84 }
◆ 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.
74 {
75 unsigned k = pixelID - 1;
77 }
◆ m_efficiencies
std::vector<double> m_efficiencies |
|
private |
◆ m_moduleID
The documentation for this class was generated from the following files: