Belle II Software development
|
The payload class for PXD cluster position error. More...
#include <PXDClusterPositionErrorPar.h>
Public Member Functions | |
PXDClusterPositionErrorPar (unsigned short nBinsU=1, unsigned short nBinsV=3, unsigned short maxSize=8, float defaultValue=0.0, float defaultFactor=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 | getMaxClusterSize () const |
Get maximum cluster size that the error is defined. | |
unsigned short | getGlobalID (unsigned short uBin, unsigned short vBin, unsigned short size) const |
Get global id from uBin and vBin and cluster size. | |
void | setContent (unsigned short sensorID, unsigned short globalID, float value) |
Set map content. | |
void | setContent (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size, 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, unsigned short size) const |
Get content. | |
void | setSensorUEdgeFactor (unsigned short sensorID, unsigned short globalID, float factor) |
Set scaling factor at sensor U edge. | |
void | setSensorUEdgeFactor (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size, float factor) |
Set scaling factor at sensor U edge. | |
void | setSensorVEdgeFactor (unsigned short sensorID, unsigned short globalID, float factor) |
Set scaling factor at sensor V edge. | |
void | setSensorVEdgeFactor (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size, float factor) |
Set scaling factor at sensor V edge. | |
void | setDeadNeighbourFactor (unsigned short sensorID, unsigned short globalID, float factor) |
Set scaling factor when neighbouring dead rows/columns. | |
void | setDeadNeighbourFactor (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size, float factor) |
Set scaling factor when neighbouring dead rows/columns. | |
float | getSensorUEdgeFactor (unsigned short sensorID, unsigned short globalID) const |
Get scaling factor at sensor edge in U. | |
float | getSensorUEdgeFactor (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size) const |
Get scaling factor at sensor edge in U. | |
float | getSensorVEdgeFactor (unsigned short sensorID, unsigned short globalID) const |
Get scaling factor at sensor edge in V. | |
float | getSensorVEdgeFactor (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size) const |
Get scaling factor at sensor edge in V. | |
float | getDeadNeighbourFactor (unsigned short sensorID, unsigned short globalID) const |
Get scaling factor when neighbouring dead rows/column. | |
float | getDeadNeighbourFactor (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size) const |
Get scaling factor when neighbouring dead rows/column. | |
const std::unordered_map< unsigned short, std::vector< float > > & | getClusterPositionErrorMap () const |
Return unordered_map with all PXD cluster position errors. | |
Private Member Functions | |
ClassDef (PXDClusterPositionErrorPar, 8) | |
ClassDef, must be the last term before the closing {}. | |
Private Attributes | |
unsigned short | m_nBinsU |
Number of bins per sensor along u side. | |
unsigned short | m_nBinsV |
Number of bins per sensor along v side. | |
unsigned short | m_maxSize |
Maximum cluster size. | |
float | m_defaultValue |
Default value for map. | |
float | m_defaultFactor |
Default value for scale factor map. | |
std::unordered_map< unsigned short, std::vector< float > > | m_factorSensorUEdgeMap |
Scaling factor at sensor U edge for layers 1 or 2 and FWD/BWD sensors with sensor number 1 or 2. | |
std::unordered_map< unsigned short, std::vector< float > > | m_factorSensorVEdgeMap |
Scaling factor at sensor V edge for layers 1 or 2 and FWD/BWD sensors with sensor number 1 or 2. | |
std::unordered_map< unsigned short, std::vector< float > > | m_factorDeadNeighbourMap |
Scaling factor when neighbouring dead rows/colums for FWD/BWD sensors by sensor number 1 or 2. | |
std::unordered_map< unsigned short, std::vector< float > > | m_clusterPositionErrorMap |
Map for holding the cluster position errors for all PXD sensors by sensor id (unsigned short). | |
The payload class for PXD cluster position error.
The payload class stores the expected cluster position error in [cm]. (Values are currently obtained from MC reco - true)
In principle, errors depend on cluster dimension and pixel cell size, and not on global position. (const cell size in u, 4 different sizes in v for Layer1/2 and for small/large cell regions) Nonetheless, error values are stored for each sensor in bins of u and v to accommodate the possibility to define errors as a function of position.
Position error is assigned to every cluster in PXDClusterizer module.
Definition at line 34 of file PXDClusterPositionErrorPar.h.
|
inline |
Default constructor.
Definition at line 38 of file PXDClusterPositionErrorPar.h.
|
inline |
|
inline |
|
inline |
Return unordered_map with all PXD cluster position errors.
Definition at line 316 of file PXDClusterPositionErrorPar.h.
|
inline |
Get content.
sensorID | unique ID of the sensor |
globalID | unique ID for part of sensor (uBin,vBin) |
Definition at line 105 of file PXDClusterPositionErrorPar.h.
|
inline |
Get content.
sensorID | unique ID of the sensor |
uBin | position error bin along u side of sensor |
vBin | position error bin along v side of sensor |
size | cluster size |
Definition at line 124 of file PXDClusterPositionErrorPar.h.
|
inline |
Get scaling factor when neighbouring dead rows/column.
sensorID | unique ID of the sensor |
globalID | unique ID for part of sensor (uBin,vBin,size) |
Definition at line 292 of file PXDClusterPositionErrorPar.h.
|
inline |
Get scaling factor when neighbouring dead rows/column.
sensorID | unique ID of the sensor |
uBin | position error bin along u side of sensor |
vBin | position error bin along v side of sensor |
size | cluster size |
Definition at line 310 of file PXDClusterPositionErrorPar.h.
|
inline |
|
inline |
Get maximum cluster size that the error is defined.
Definition at line 53 of file PXDClusterPositionErrorPar.h.
|
inline |
Get scaling factor at sensor edge in U.
sensorID | unique ID of the sensor |
globalID | unique ID for part of sensor (uBin,vBin,size) |
Definition at line 236 of file PXDClusterPositionErrorPar.h.
|
inline |
Get scaling factor at sensor edge in U.
sensorID | unique ID of the sensor |
uBin | position error bin along u side of sensor |
vBin | position error bin along v side of sensor |
size | cluster size |
Definition at line 254 of file PXDClusterPositionErrorPar.h.
|
inline |
Get scaling factor at sensor edge in V.
sensorID | unique ID of the sensor |
globalID | unique ID for part of sensor (uBin,vBin,size) |
Definition at line 264 of file PXDClusterPositionErrorPar.h.
|
inline |
Get scaling factor at sensor edge in V.
sensorID | unique ID of the sensor |
uBin | position error bin along u side of sensor |
vBin | position error bin along v side of sensor |
size | cluster size |
Definition at line 282 of file PXDClusterPositionErrorPar.h.
|
inline |
Set map content.
sensorID | unique ID of the sensor |
globalID | unique ID for part of sensor (uBin,vBin) and cluser size |
value | cluster position error value to store |
Definition at line 70 of file PXDClusterPositionErrorPar.h.
|
inline |
Set map content.
sensorID | unique ID of the sensor |
uBin | position error bin along u side of sensor |
vBin | position error bin along v side of sensor |
size | cluster size |
value | cluster position error value to store |
Definition at line 95 of file PXDClusterPositionErrorPar.h.
|
inline |
Set scaling factor when neighbouring dead rows/columns.
sensorID | unique ID of the sensor |
globalID | unique ID for part of sensor (uBin,vBin) and cluser size |
factor | scale factor value to store |
Definition at line 202 of file PXDClusterPositionErrorPar.h.
|
inline |
Set scaling factor when neighbouring dead rows/columns.
sensorID | unique ID of the sensor |
uBin | position error bin along u side of sensor |
vBin | position error bin along v side of sensor |
size | cluster size |
factor | scale factor value to store |
Definition at line 226 of file PXDClusterPositionErrorPar.h.
|
inline |
Set scaling factor at sensor U edge.
sensorID | unique ID of the sensor |
globalID | unique ID for part of sensor (uBin,vBin) and cluser size |
factor | scale factor value to store |
Definition at line 134 of file PXDClusterPositionErrorPar.h.
|
inline |
Set scaling factor at sensor U edge.
sensorID | unique ID of the sensor |
uBin | position error bin along u side of sensor |
vBin | position error bin along v side of sensor |
size | cluster size |
factor | scale factor value to store |
Definition at line 158 of file PXDClusterPositionErrorPar.h.
|
inline |
Set scaling factor at sensor V edge.
sensorID | unique ID of the sensor |
globalID | unique ID for part of sensor (uBin,vBin) and cluser size |
factor | scale factor value to store |
Definition at line 168 of file PXDClusterPositionErrorPar.h.
|
inline |
Set scaling factor at sensor V edge.
sensorID | unique ID of the sensor |
uBin | position error bin along u side of sensor |
vBin | position error bin along v side of sensor |
size | cluster size |
factor | scale factor value to store |
Definition at line 192 of file PXDClusterPositionErrorPar.h.
|
private |
Map for holding the cluster position errors for all PXD sensors by sensor id (unsigned short).
Definition at line 345 of file PXDClusterPositionErrorPar.h.
|
private |
Default value for scale factor map.
Definition at line 333 of file PXDClusterPositionErrorPar.h.
|
private |
Default value for map.
Definition at line 330 of file PXDClusterPositionErrorPar.h.
|
private |
Scaling factor when neighbouring dead rows/colums for FWD/BWD sensors by sensor number 1 or 2.
Definition at line 342 of file PXDClusterPositionErrorPar.h.
|
private |
Scaling factor at sensor U edge for layers 1 or 2 and FWD/BWD sensors with sensor number 1 or 2.
Definition at line 336 of file PXDClusterPositionErrorPar.h.
|
private |
Scaling factor at sensor V edge for layers 1 or 2 and FWD/BWD sensors with sensor number 1 or 2.
Definition at line 339 of file PXDClusterPositionErrorPar.h.
|
private |
Maximum cluster size.
Definition at line 327 of file PXDClusterPositionErrorPar.h.
|
private |
Number of bins per sensor along u side.
Definition at line 321 of file PXDClusterPositionErrorPar.h.
|
private |
Number of bins per sensor along v side.
Definition at line 324 of file PXDClusterPositionErrorPar.h.