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

The payload telling which PXD pixel is dead (=Readout system does not receive signals) More...

#include <PXDDeadPixelPar.h>

Inheritance diagram for PXDDeadPixelPar:
Collaboration diagram for PXDDeadPixelPar:

Public Types

typedef std::unordered_set< unsigned int > DeadChannelSet
 Structure to hold set of dead channel indexed by their unique id (unsigned int), stored in hash table.
 

Public Member Functions

 PXDDeadPixelPar ()
 Default constructor.
 
void maskSensor (unsigned short sensorID)
 Mask sensor. More...
 
void maskDrain (unsigned short sensorID, unsigned int drainID)
 Mask single drain. More...
 
void maskRow (unsigned short sensorID, unsigned int vCellID)
 Mask single row. More...
 
void maskSinglePixel (unsigned short sensorID, unsigned int pixID)
 Mask single pixel. More...
 
bool isDeadSensor (unsigned short sensorID) const
 Check whether a sensor is dead. More...
 
bool isDeadRow (unsigned short sensorID, unsigned int vCellID) const
 Check whether a row is dead. More...
 
bool isDeadDrain (unsigned short sensorID, unsigned int drainID) const
 Check whether a drain is dead. More...
 
bool isDeadSinglePixel (unsigned short sensorID, unsigned int pixID) const
 Check whether a single pixel is dead. More...
 
const std::unordered_map< unsigned short, DeadChannelSet > & getDeadSinglePixelMap () const
 Return unordered_map with all dead single pixels in PXD.
 
const std::unordered_map< unsigned short, DeadChannelSet > & getDeadDrainMap () const
 Return unordered_map with all dead rows in PXD.
 
const std::unordered_map< unsigned short, DeadChannelSet > & getDeadRowMap () const
 Return unordered_map with all dead drains in PXD.
 
const std::unordered_set< unsigned int > & getDeadSensorMap () const
 Return unordered_set with all dead sensors in PXD.
 

Private Member Functions

 ClassDef (PXDDeadPixelPar, 2)
 ClassDef, must be the last term before the closing {}.
 

Private Attributes

std::unordered_map< unsigned short, DeadChannelSetm_MapSingles
 Structure holding sets of dead single pixels for all sensors by sensor id (unsigned short).
 
std::unordered_map< unsigned short, DeadChannelSetm_MapRows
 Structure holding sets of dead rows for all sensors by sensor id (unsigned short).
 
std::unordered_map< unsigned short, DeadChannelSetm_MapDrains
 Structure holding sets of dead drains for all sensors by sensor id (unsigned short).
 
std::unordered_set< unsigned int > m_MapSensors
 Structure holding dead sensors by sensor id.
 

Detailed Description

The payload telling which PXD pixel is dead (=Readout system does not receive signals)

There are multiple reasons for dead pixels: 1) Brocken (open) drain line (-> current cannot flow into DCD channel) 2) DEPFET current into DCD out of dynamic range 3) DHP subtracts too high pedestal correction 4) ...

Here, we cannot distinguish the true reason, but report that a pixel gets never hit during some IoV.

Definition at line 33 of file PXDDeadPixelPar.h.

Member Function Documentation

◆ isDeadDrain()

bool isDeadDrain ( unsigned short  sensorID,
unsigned int  drainID 
) const
inline

Check whether a drain is dead.

Parameters
sensorIDunique ID of the sensor
drainIDunique ID of drain
Returns
true if drain is dead

Definition at line 158 of file PXDDeadPixelPar.h.

159  {
160  auto mapIter = m_MapDrains.find(sensorID);
161  if (mapIter != m_MapDrains.end()) {
162  // Found some dead drains
163  auto& deadDrains = mapIter->second;
164  // Look if this drain is dead
165  if (deadDrains.find(drainID) != deadDrains.end())
166  return true;
167  }
168  return false;
169  }
std::unordered_map< unsigned short, DeadChannelSet > m_MapDrains
Structure holding sets of dead drains for all sensors by sensor id (unsigned short).

◆ isDeadRow()

bool isDeadRow ( unsigned short  sensorID,
unsigned int  vCellID 
) const
inline

Check whether a row is dead.

Parameters
sensorIDunique ID of the sensor
vCellIDunique ID of row
Returns
true if row is dead

Definition at line 140 of file PXDDeadPixelPar.h.

◆ isDeadSensor()

bool isDeadSensor ( unsigned short  sensorID) const
inline

Check whether a sensor is dead.

Parameters
sensorIDunique ID of the sensor
Returns
true if sensor is dead

Definition at line 127 of file PXDDeadPixelPar.h.

◆ isDeadSinglePixel()

bool isDeadSinglePixel ( unsigned short  sensorID,
unsigned int  pixID 
) const
inline

Check whether a single pixel is dead.

Parameters
sensorIDunique ID of the sensor
pixIDunique ID of pixel
Returns
true if pixel is dead

Definition at line 176 of file PXDDeadPixelPar.h.

◆ maskDrain()

void maskDrain ( unsigned short  sensorID,
unsigned int  drainID 
)
inline

Mask single drain.

Parameters
sensorIDunique ID of the sensor
drainIDunique ID of single pixel to mask

Definition at line 59 of file PXDDeadPixelPar.h.

◆ maskRow()

void maskRow ( unsigned short  sensorID,
unsigned int  vCellID 
)
inline

Mask single row.

Parameters
sensorIDunique ID of the sensor
vCellIDunique ID of row to mask

Definition at line 82 of file PXDDeadPixelPar.h.

◆ maskSensor()

void maskSensor ( unsigned short  sensorID)
inline

Mask sensor.

Parameters
sensorIDunique ID of the sensor

Definition at line 45 of file PXDDeadPixelPar.h.

◆ maskSinglePixel()

void maskSinglePixel ( unsigned short  sensorID,
unsigned int  pixID 
)
inline

Mask single pixel.

Parameters
sensorIDunique ID of the sensor
pixIDunique ID of single pixel to mask

Definition at line 105 of file PXDDeadPixelPar.h.


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