Belle II Software development
PXDMappingLookup.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11namespace Belle2 {
16 class VxdID;
17
18 namespace PXD {
29
30 public:
31
33 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);
34
36 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);
37
39 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);
40
42 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);
43
50 static int getDCDID(const int u, const int v, const VxdID sensorID);
51
56 static int getSWBID(const int v);
57
59 static void write_mapping_to_file(void);
60
62 static void write_inversemapping_to_file(void);
63
65 static void check(void);
66 };
67 }
69}
70
Class to make the mapping between u/v cell ID of pixels back to DCD drain lines, pixel row/col,...
static int getDCDID(const int u, const int v, const VxdID sensorID)
get ID of DCD for giving pixel, range: 1..4.
static void check(void)
consistency check
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.
static int getSWBID(const int v)
get ID of SWB for giving pixel, range: 1..6.
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.
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 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
Class to uniquely identify a any structure of the PXD and SVD.
Definition VxdID.h:32
Namespace to encapsulate code needed for simulation and reconstrucion of the PXD.
Abstract base class for different kinds of events.