Belle II Software  release-05-02-19
PXDMappingLookup.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Bjoern Spruck, Peter Kodys *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <vxd/dataobjects/VxdID.h>
14 
15 namespace Belle2 {
21  namespace PXD {
31  class PXDMappingLookup {
32 
33  public:
34 
36  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);
37 
39  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);
40 
42  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);
43 
45  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);
46 
53  static int getDCDID(const int u, const int v, const VxdID sensorID);
54 
59  static int getSWBID(const int v);
60 
62  static void write_mapping_to_file(void);
63 
65  static void write_inversemapping_to_file(void);
66 
68  static void check(void);
69  };
70  }
72 }
73 
Belle2::VxdID
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:43
Belle2::PXD::PXDMappingLookup::check
static void check(void)
consistency check
Definition: PXDMappingLookup.cc:282
Belle2::PXD::PXDMappingLookup::write_inversemapping_to_file
static void write_inversemapping_to_file(void)
write out inverse LUT to file for cross-check
Definition: PXDMappingLookup.cc:276
Belle2::PXD::PXDMappingLookup::getSWBID
static int getSWBID(const int v)
get ID of SWB for giving pixel, range: 1..6.
Definition: PXDMappingLookup.cc:48
Belle2::PXD::PXDMappingLookup::map_uv_to_rc_IF_OB
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.
Definition: PXDMappingLookup.cc:110
Belle2::PXD::PXDMappingLookup::map_uv_to_rc_IB_OF
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.
Definition: PXDMappingLookup.cc:182
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PXD::PXDMappingLookup::map_rc_to_uv_IB_OF
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.
Definition: PXDMappingLookup.cc:126
Belle2::PXD::PXDMappingLookup::map_rc_to_uv_IF_OB
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.
Definition: PXDMappingLookup.cc:54
Belle2::PXD::PXDMappingLookup::write_mapping_to_file
static void write_mapping_to_file(void)
write out LUT to file for cross-check
Definition: PXDMappingLookup.cc:198
Belle2::PXD::PXDMappingLookup::getDCDID
static int getDCDID(const int u, const int v, const VxdID sensorID)
get ID of DCD for giving pixel, range: 1..4.
Definition: PXDMappingLookup.cc:22