Belle II Software development
|
The payload class for PXD gain corrections. More...
#include <PXDGainMapPar.h>
Public Member Functions | |
PXDGainMapPar (int nBinsU=4, int nBinsV=6, float defaultValue=1.0) | |
Default constructor. | |
unsigned short | getBinsU () const |
Get number of bins along sensor u side. | |
unsigned short | getBinsV () const |
Get number of bins along sensor v side. | |
unsigned short | getGlobalID (unsigned short uBin, unsigned short vBin) const |
Get global id from uBin and vBin. | |
void | setContent (unsigned short sensorID, unsigned short globalID, float value) |
Set map content. | |
void | setContent (unsigned short sensorID, unsigned short uBin, unsigned short vBin, float value) |
Set map content. | |
float | getContent (unsigned short sensorID, unsigned short globalID) const |
Get content. | |
float | getContent (unsigned short sensorID, unsigned short uBin, unsigned short vBin) const |
Get content. | |
const std::unordered_map< unsigned short, std::vector< float > > & | getCalibrationMap () const |
Return unordered_map with all PXD calibrations. | |
Private Member Functions | |
ClassDef (PXDGainMapPar, 3) | |
ClassDef, must be the last term before the closing {}. | |
Private Attributes | |
int | m_nBinsU |
Number of bins per sensor along u side. | |
int | m_nBinsV |
Number of bins per sensor along v side. | |
float | m_defaultValue |
Default value for map. | |
std::unordered_map< unsigned short, std::vector< float > > | m_sensorCalibrationMap |
Map for holding the calibrations for all PXD sensors by sensor id (unsigned short). | |
The payload class for PXD gain corrections.
The payload class stores the gain correction values for PXD sensors on a grid nBinsU x nBinsV. The values are stored as dimensionless corrections factors. The default value is 1.0.
The baseline electron to ADU conversion is given as
1) baseline_eToADU = baseline_ADCUnit / baseline_Gq
and depends on the unit of the ADC channel and the Gq of the DEPFET transistor. These basline numbers are what is applied in the PXDDigitizer.
The gain corrected conversion factor is
2) corrected_eToADU = baseline_eToADU / gain_correction
Variations inside a 2D bin will be averaged over. The Granularity of the grid can be adjusted by the user.
Definition at line 43 of file PXDGainMapPar.h.
|
inline |
Default constructor.
Definition at line 47 of file PXDGainMapPar.h.
|
inline |
|
inline |
|
inline |
|
inline |
Get content.
sensorID | unique ID of the sensor |
globalID | unique ID for part of sensor (uBin,vBin) |
Definition at line 103 of file PXDGainMapPar.h.
|
inline |
Get content.
sensorID | unique ID of the sensor |
uBin | calibration bin along u side of sensor |
vBin | calibration bin along v side of sensor |
Definition at line 121 of file PXDGainMapPar.h.
|
inline |
|
inline |
Set map content.
sensorID | unique ID of the sensor |
globalID | unique ID for part of sensor (uBin,vBin) |
value | calibration value to store |
Definition at line 68 of file PXDGainMapPar.h.
|
inline |
Set map content.
sensorID | unique ID of the sensor |
uBin | calibration bin along u side of sensor |
vBin | calibration bin along v side of sensor |
value | calibration value to store |
Definition at line 93 of file PXDGainMapPar.h.
|
private |
Default value for map.
Definition at line 138 of file PXDGainMapPar.h.
|
private |
Number of bins per sensor along u side.
Definition at line 132 of file PXDGainMapPar.h.
|
private |
Number of bins per sensor along v side.
Definition at line 135 of file PXDGainMapPar.h.
|
private |
Map for holding the calibrations for all PXD sensors by sensor id (unsigned short).
Definition at line 141 of file PXDGainMapPar.h.