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

Class to make the mapping between u/v cell ID of pixels back to DCD drain lines, pixel row/col, DCD and Switcher IDs Details: Belle Note: BELLE2-NOTE-TE-2015-01 "The vertex detector numbering scheme" https://docs.belle2.org/record/243/files/Belle%20II%20note%200010.pdf PXD WhiteBook 3.1.3 Sensor Design and Appendix #3 https://confluence.desy.de/display/BI/PXD+WebHome?preview=/34029260/56330158/PXDwb.pdf. More...

#include <PXDMappingLookup.h>

Static Public Member Functions

static void map_rc_to_uv_IF_OB (unsigned int &row_u, unsigned int &col_v, const unsigned int dhp_id, const unsigned int dhe_ID)
 Maps row/col of inner forward (IF) and outer backward (OB) modules of the PXD to U/V cell. More...
 
static void map_rc_to_uv_IB_OF (unsigned int &row_u, unsigned int &col_v, const unsigned int dhp_id, const unsigned int dhe_ID)
 Maps row/cols of inner backward (IB) and outer forward (OF) modules of the PXD to U/V cell. More...
 
static void map_uv_to_rc_IF_OB (unsigned int &row_u, unsigned int &col_v, unsigned int &dhp_id, const unsigned int dhe_ID)
 Maps U/V cell of inner forward (IF) and outer backward (OB) modules of the PXD to row/col/dhpid.
 
static void map_uv_to_rc_IB_OF (unsigned int &row_u, unsigned int &col_v, unsigned int &dhp_id, const unsigned int dhe_ID)
 Maps U/V cell of inner backward (IB) and outer forward (OF) modules of the PXD to row/col/dhpid.
 
static int getDCDID (const int u, const int v, const VxdID sensorID)
 get ID of DCD for giving pixel, range: 1..4. More...
 
static int getSWBID (const int v)
 get ID of SWB for giving pixel, range: 1..6. More...
 
static void write_mapping_to_file (void)
 write out LUT to file for cross-check
 
static void write_inversemapping_to_file (void)
 write out inverse LUT to file for cross-check
 
static void check (void)
 consistency check
 

Detailed Description

Class to make the mapping between u/v cell ID of pixels back to DCD drain lines, pixel row/col, DCD and Switcher IDs Details: Belle Note: BELLE2-NOTE-TE-2015-01 "The vertex detector numbering scheme" https://docs.belle2.org/record/243/files/Belle%20II%20note%200010.pdf PXD WhiteBook 3.1.3 Sensor Design and Appendix #3 https://confluence.desy.de/display/BI/PXD+WebHome?preview=/34029260/56330158/PXDwb.pdf.

Definition at line 29 of file PXDMappingLookup.h.

Member Function Documentation

◆ getDCDID()

int getDCDID ( const int  u,
const int  v,
const VxdID  sensorID 
)
static

get ID of DCD for giving pixel, range: 1..4.

Parameters
upixels coordinate in u
vpixels coordinate in u
sensorIDsensor details for PXD sensors
Returns
DCD ID

Definition at line 20 of file PXDMappingLookup.cc.

21 {
22 
23  //const SensorInfo& info = dynamic_cast<const SensorInfo&>(VXD::GeoCache::get(
24  // sensorID));
25  int ret = 0;
26  int iLayer = sensorID.getLayerNumber();
27  int iSensor = sensorID.getSensorNumber();
28  int chUMap;
29  chUMap = u;
30  int Direction = 1;
31  if (((iLayer == 1) && (iSensor == 1)) || ((iLayer == 2) && (iSensor == 2))) {
32  // inverted counting in U direction:
33  chUMap = 249 - u;
34  Direction = -1;
35  }
36  float fID;
37  fID = (float)chUMap / 62.5;
38  if ((chUMap == 62) || (chUMap == 187)) {
39  if ((v % 4) >= 2) fID = fID + Direction;
40  }
41  ret = (int)fID;
42  return ret + 1;
43 } //getDCDID
baseType getSensorNumber() const
Get the sensor id.
Definition: VxdID.h:100
baseType getLayerNumber() const
Get the layer id.
Definition: VxdID.h:96

◆ getSWBID()

int getSWBID ( const int  v)
static

get ID of SWB for giving pixel, range: 1..6.

Parameters
vpixels coordinate in u
Returns
SWB ID

Definition at line 46 of file PXDMappingLookup.cc.

◆ map_rc_to_uv_IB_OF()

void map_rc_to_uv_IB_OF ( unsigned int &  row_u,
unsigned int &  col_v,
const unsigned int  dhp_id,
const unsigned int  dhe_ID 
)
static

Maps row/cols of inner backward (IB) and outer forward (OF) modules of the PXD to U/V cell.

Remaps of inner backward (IB) and outer forward (OF) modules of the PXD.

Definition at line 124 of file PXDMappingLookup.cc.

◆ map_rc_to_uv_IF_OB()

void map_rc_to_uv_IF_OB ( unsigned int &  row_u,
unsigned int &  col_v,
const unsigned int  dhp_id,
const unsigned int  dhe_ID 
)
static

Maps row/col of inner forward (IF) and outer backward (OB) modules of the PXD to U/V cell.

Remaps of inner forward (IF) and outer backward (OB) modules of the PXD.

Definition at line 52 of file PXDMappingLookup.cc.


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