Belle II Software  release-08-01-10
PXDClusterPositionErrorPar Class Reference

The payload class for PXD cluster position error. More...

#include <PXDClusterPositionErrorPar.h>

Inheritance diagram for PXDClusterPositionErrorPar:
Collaboration diagram for PXDClusterPositionErrorPar:

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. More...
 
void setContent (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size, float value)
 Set map content. More...
 
float getContent (unsigned short sensorID, unsigned short globalID) const
 Get content. More...
 
float getContent (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size) const
 Get content. More...
 
void setSensorUEdgeFactor (unsigned short sensorID, unsigned short globalID, float factor)
 Set scaling factor at sensor U edge. More...
 
void setSensorUEdgeFactor (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size, float factor)
 Set scaling factor at sensor U edge. More...
 
void setSensorVEdgeFactor (unsigned short sensorID, unsigned short globalID, float factor)
 Set scaling factor at sensor V edge. More...
 
void setSensorVEdgeFactor (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size, float factor)
 Set scaling factor at sensor V edge. More...
 
void setDeadNeighbourFactor (unsigned short sensorID, unsigned short globalID, float factor)
 Set scaling factor when neighbouring dead rows/columns. More...
 
void setDeadNeighbourFactor (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size, float factor)
 Set scaling factor when neighbouring dead rows/columns. More...
 
float getSensorUEdgeFactor (unsigned short sensorID, unsigned short globalID) const
 Get scaling factor at sensor edge in U. More...
 
float getSensorUEdgeFactor (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size) const
 Get scaling factor at sensor edge in U. More...
 
float getSensorVEdgeFactor (unsigned short sensorID, unsigned short globalID) const
 Get scaling factor at sensor edge in V. More...
 
float getSensorVEdgeFactor (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size) const
 Get scaling factor at sensor edge in V. More...
 
float getDeadNeighbourFactor (unsigned short sensorID, unsigned short globalID) const
 Get scaling factor when neighbouring dead rows/column. More...
 
float getDeadNeighbourFactor (unsigned short sensorID, unsigned short uBin, unsigned short vBin, unsigned short size) const
 Get scaling factor when neighbouring dead rows/column. More...
 
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).
 

Detailed Description

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.

Member Function Documentation

◆ getContent() [1/2]

float getContent ( unsigned short  sensorID,
unsigned short  globalID 
) const
inline

Get content.

Parameters
sensorIDunique ID of the sensor
globalIDunique ID for part of sensor (uBin,vBin)
Returns
value cluster position error value to store

Definition at line 105 of file PXDClusterPositionErrorPar.h.

106  {
107  auto mapIter = m_clusterPositionErrorMap.find(sensorID);
108  if (mapIter != m_clusterPositionErrorMap.end()) {
109  // Found sensor, return position error value
110  auto& errVec = mapIter->second;
111  return errVec[globalID];
112  }
113  // Sensor not found, keep low profile and return default position error value
114  return m_defaultValue;
115  }
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).

◆ getContent() [2/2]

float getContent ( unsigned short  sensorID,
unsigned short  uBin,
unsigned short  vBin,
unsigned short  size 
) const
inline

Get content.

Parameters
sensorIDunique ID of the sensor
uBinposition error bin along u side of sensor
vBinposition error bin along v side of sensor
sizecluster size
Returns
value cluster position error value to store

Definition at line 124 of file PXDClusterPositionErrorPar.h.

◆ getDeadNeighbourFactor() [1/2]

float getDeadNeighbourFactor ( unsigned short  sensorID,
unsigned short  globalID 
) const
inline

Get scaling factor when neighbouring dead rows/column.

Parameters
sensorIDunique ID of the sensor
globalIDunique ID for part of sensor (uBin,vBin,size)
Returns
value scale factor when neighbouring dead rows/column

Definition at line 292 of file PXDClusterPositionErrorPar.h.

◆ getDeadNeighbourFactor() [2/2]

float getDeadNeighbourFactor ( unsigned short  sensorID,
unsigned short  uBin,
unsigned short  vBin,
unsigned short  size 
) const
inline

Get scaling factor when neighbouring dead rows/column.

Parameters
sensorIDunique ID of the sensor
uBinposition error bin along u side of sensor
vBinposition error bin along v side of sensor
sizecluster size
Returns
value scale factor when neighbouring dead rows/columns

Definition at line 310 of file PXDClusterPositionErrorPar.h.

◆ getSensorUEdgeFactor() [1/2]

float getSensorUEdgeFactor ( unsigned short  sensorID,
unsigned short  globalID 
) const
inline

Get scaling factor at sensor edge in U.

Parameters
sensorIDunique ID of the sensor
globalIDunique ID for part of sensor (uBin,vBin,size)
Returns
value scale factor at sensor edge in U

Definition at line 236 of file PXDClusterPositionErrorPar.h.

◆ getSensorUEdgeFactor() [2/2]

float getSensorUEdgeFactor ( unsigned short  sensorID,
unsigned short  uBin,
unsigned short  vBin,
unsigned short  size 
) const
inline

Get scaling factor at sensor edge in U.

Parameters
sensorIDunique ID of the sensor
uBinposition error bin along u side of sensor
vBinposition error bin along v side of sensor
sizecluster size
Returns
value scale factor at sensor edge in U

Definition at line 254 of file PXDClusterPositionErrorPar.h.

◆ getSensorVEdgeFactor() [1/2]

float getSensorVEdgeFactor ( unsigned short  sensorID,
unsigned short  globalID 
) const
inline

Get scaling factor at sensor edge in V.

Parameters
sensorIDunique ID of the sensor
globalIDunique ID for part of sensor (uBin,vBin,size)
Returns
value scale factor at sensor edge in V

Definition at line 264 of file PXDClusterPositionErrorPar.h.

◆ getSensorVEdgeFactor() [2/2]

float getSensorVEdgeFactor ( unsigned short  sensorID,
unsigned short  uBin,
unsigned short  vBin,
unsigned short  size 
) const
inline

Get scaling factor at sensor edge in V.

Parameters
sensorIDunique ID of the sensor
uBinposition error bin along u side of sensor
vBinposition error bin along v side of sensor
sizecluster size
Returns
value scale factor at sensor edge in V

Definition at line 282 of file PXDClusterPositionErrorPar.h.

◆ setContent() [1/2]

void setContent ( unsigned short  sensorID,
unsigned short  globalID,
float  value 
)
inline

Set map content.

Parameters
sensorIDunique ID of the sensor
globalIDunique ID for part of sensor (uBin,vBin) and cluser size
valuecluster position error value to store

Definition at line 70 of file PXDClusterPositionErrorPar.h.

◆ setContent() [2/2]

void setContent ( unsigned short  sensorID,
unsigned short  uBin,
unsigned short  vBin,
unsigned short  size,
float  value 
)
inline

Set map content.

Parameters
sensorIDunique ID of the sensor
uBinposition error bin along u side of sensor
vBinposition error bin along v side of sensor
sizecluster size
valuecluster position error value to store

Definition at line 95 of file PXDClusterPositionErrorPar.h.

◆ setDeadNeighbourFactor() [1/2]

void setDeadNeighbourFactor ( unsigned short  sensorID,
unsigned short  globalID,
float  factor 
)
inline

Set scaling factor when neighbouring dead rows/columns.

Parameters
sensorIDunique ID of the sensor
globalIDunique ID for part of sensor (uBin,vBin) and cluser size
factorscale factor value to store

Definition at line 202 of file PXDClusterPositionErrorPar.h.

◆ setDeadNeighbourFactor() [2/2]

void setDeadNeighbourFactor ( unsigned short  sensorID,
unsigned short  uBin,
unsigned short  vBin,
unsigned short  size,
float  factor 
)
inline

Set scaling factor when neighbouring dead rows/columns.

Parameters
sensorIDunique ID of the sensor
uBinposition error bin along u side of sensor
vBinposition error bin along v side of sensor
sizecluster size
factorscale factor value to store

Definition at line 226 of file PXDClusterPositionErrorPar.h.

◆ setSensorUEdgeFactor() [1/2]

void setSensorUEdgeFactor ( unsigned short  sensorID,
unsigned short  globalID,
float  factor 
)
inline

Set scaling factor at sensor U edge.

Parameters
sensorIDunique ID of the sensor
globalIDunique ID for part of sensor (uBin,vBin) and cluser size
factorscale factor value to store

Definition at line 134 of file PXDClusterPositionErrorPar.h.

◆ setSensorUEdgeFactor() [2/2]

void setSensorUEdgeFactor ( unsigned short  sensorID,
unsigned short  uBin,
unsigned short  vBin,
unsigned short  size,
float  factor 
)
inline

Set scaling factor at sensor U edge.

Parameters
sensorIDunique ID of the sensor
uBinposition error bin along u side of sensor
vBinposition error bin along v side of sensor
sizecluster size
factorscale factor value to store

Definition at line 158 of file PXDClusterPositionErrorPar.h.

◆ setSensorVEdgeFactor() [1/2]

void setSensorVEdgeFactor ( unsigned short  sensorID,
unsigned short  globalID,
float  factor 
)
inline

Set scaling factor at sensor V edge.

Parameters
sensorIDunique ID of the sensor
globalIDunique ID for part of sensor (uBin,vBin) and cluser size
factorscale factor value to store

Definition at line 168 of file PXDClusterPositionErrorPar.h.

◆ setSensorVEdgeFactor() [2/2]

void setSensorVEdgeFactor ( unsigned short  sensorID,
unsigned short  uBin,
unsigned short  vBin,
unsigned short  size,
float  factor 
)
inline

Set scaling factor at sensor V edge.

Parameters
sensorIDunique ID of the sensor
uBinposition error bin along u side of sensor
vBinposition error bin along v side of sensor
sizecluster size
factorscale factor value to store

Definition at line 192 of file PXDClusterPositionErrorPar.h.


The documentation for this class was generated from the following file: