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
11#include <vxd/dataobjects/VxdID.h>
12
13namespace Belle2 {
19 namespace PXD {
30
31 public:
32
34 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);
35
37 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);
38
40 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);
41
43 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);
44
51 static int getDCDID(const int u, const int v, const VxdID sensorID);
52
57 static int getSWBID(const int v);
58
60 static void write_mapping_to_file(void);
61
63 static void write_inversemapping_to_file(void);
64
66 static void check(void);
67 };
68 }
70}
71
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:33
Abstract base class for different kinds of events.