![]() |
Belle II Software
release-08-02-05
|
The class collects utility functions for numbering layers, sensors snd chips based on current VXD geometry. More...
#include <GeoTools.h>

Public Member Functions | |
| GeoTools () | |
| Constructor builds lookup maps from GeoCache. More... | |
| unsigned short | getNumberOfLayers () const |
| Get number of VXD layers. More... | |
| unsigned short | getNumberOfPXDLayers () const |
| Get number of PXD layers. More... | |
| unsigned short | getNumberOfSVDLayers () const |
| Get number of SVD layers. More... | |
| std::vector< unsigned short > | getLayers () const |
| Get numbers of VXD layers. More... | |
| std::vector< unsigned short > | getPXDLayers () const |
| Get numbers of PXD layers. More... | |
| std::vector< unsigned short > | getSVDLayers () const |
| Get numbers of SVD layers. More... | |
| unsigned short | getFirstLayer () const |
| Get first (innermost) layer number. More... | |
| unsigned short | getLastLayer () const |
| Get last (outermost) layer number. More... | |
| short | getFirstPXDLayer () const |
| Get first (innermost) PXD layer number. More... | |
| short | getLastPXDLayer () const |
| Get last (outermost) PXD layer number. More... | |
| short | getFirstSVDLayer () const |
| Get first (innermost) SVD layer number. More... | |
| short | getLastSVDLayer () const |
| Get last (outermost) SVD layer number. More... | |
| unsigned short | getNumberOfSensors () const |
| Get total number of sensors. More... | |
| unsigned short | getNumberOfPXDSensors () const |
| Get number of PXD sensors. More... | |
| unsigned short | getNumberOfSVDSensors () const |
| Get number of SVD sensors. More... | |
| size_t | getTotalPXDChips () const |
| Get total number of chips in PXD. More... | |
| unsigned short | getNumberOfPXDUSideChips () const |
| Get number of u-side PXD chips. More... | |
| unsigned short | getNumberOfPXDVSideChips () const |
| Get number of v-side PXD chips. More... | |
| unsigned short | getNumberOfPXDReadoutGates () const |
| Get number of PXD readout gates. More... | |
| size_t | getTotalSVDChips () const |
| Get total number of chips in SVD. More... | |
| unsigned short | getNumberOfSVDUSideChips () const |
| Get number of u-side SVD chips. More... | |
| unsigned short | getNumberOfSVDVSideChips (unsigned short layer) const |
| Get number of v-side SVD chips. More... | |
| unsigned short | getSVDChannelsPerChip () const |
| Get number of strips per APV chip in SVD. More... | |
| int | getSensorIndex (VxdID sensorID) const |
| Return index of s VXD sensor for plotting. More... | |
| VxdID | getSensorIDFromIndex (int vxdIndex) const |
| Reverse lookup VxdID from list index. More... | |
| int | getPXDSensorIndex (VxdID sensorID) const |
| Return index of sensor in plots. More... | |
| int | getPXDSensorIndex (int layer, int ladder, int sensor) const |
| Return index of sensor in plots. More... | |
| VxdID | getSensorIDFromPXDIndex (int pxdIndex) const |
| Return index of a PXD sensor in plots. More... | |
| int | getPXDChipIndex (VxdID sensorID, bool isU, int chip) const |
| Return PXD chip index in the list of PXD chips. More... | |
| int | getPXDChipIndex (int layer, int ladder, int sensor, bool isU, int chip) const |
| Return PXD chip index in the list of PXD chips. More... | |
| VxdID | getChipIDFromPXDIndex (int pxdChipIndex) const |
| Return chipID (VxdID + side and chipNo) for index in the list. More... | |
| bool | isPXDSideU (VxdID chipID) const |
| Decode sensor side from a PXD ChipID. More... | |
| unsigned short | getPXDChipNumber (VxdID chipID) const |
| Decode (1-based) chip number from a PXD ChipID. More... | |
| int | getSVDSensorIndex (VxdID sensorID) const |
| Return index of SVD sensor in plots. More... | |
| int | getSVDSensorIndex (int layer, int ladder, int sensor) const |
| Return index of SVD sensor in plots. More... | |
| VxdID | getSensorIDFromSVDIndex (int svdIndex) const |
| Return VxdID for SVD index of sensor in plots. More... | |
| int | getSVDChipIndex (VxdID sensorID, bool isU, int chip) const |
| Return SVD chip index in the list of SVD chips. More... | |
| int | getSVDChipIndex (int layer, int ladder, int sensor, bool isU, int chip) const |
| Return SVD chip index in the list of SVD chips. More... | |
| VxdID | getChipIDFromSVDIndex (int svdChipIndex) const |
| Return chipID (VxdID with side and chipNo) for index in the list. More... | |
| bool | isSVDSideU (VxdID chipID) const |
| Decode sensor side from a SVD ChipID. More... | |
| unsigned short | getSVDChipNumber (VxdID chipID) const |
| Decode (1-based) chip number from a SVD ChipID. More... | |
| int | getLayerIndex (unsigned short layer) const |
| Return index of layer in plots. More... | |
| unsigned short | getLayerNumberFromLayerIndex (int index) const |
| Return layer number for list index. More... | |
Private Member Functions | |
| void | createListOfLayers () |
| Create list of VXD layers. | |
| void | createListOfPXDChips () |
| Create list of PXD chips. | |
| void | createListOfSVDChips () |
| Create list of SVD chips. | |
Private Attributes | |
| std::vector< VxdID > | m_listOfSensors |
| List of all VXD sesnros. | |
| size_t | m_firstSVDIndex |
| Number of the first SVD sensor in the list. | |
| std::vector< unsigned short > | m_listOfLayers |
| List of all VXD layers. | |
| unsigned short | m_firstSVDLayer |
| List index of the first SVD layer. | |
| std::vector< VxdID > | m_listOfPXDChips |
| List of all PXD chips. | |
| std::vector< VxdID > | m_listOfSVDChips |
| List of all SVD chips. | |
| const unsigned short | c_nPXDChipsU = 4 |
| Number of PXD chips per sensor in u (DCD) (=4) on Belle II. | |
| const unsigned short | c_nPXDChipsV = 6 |
| Number of PXD chips per sensor in v (Switchers) (=6) on Belle II. | |
| const unsigned short | c_nPXDReadoutGates = 192 |
| Number of PXD readout gates (or total number of Switcher channels) on Belle II. | |
| const unsigned short | c_nSVDChipsL3 = 6 |
| Number of SVD chips per sensor in u,v in layer 3 (=6) on Belle II. | |
| const unsigned short | c_nSVDChipsLu = 6 |
| Number of SVD chips per sensor in u in layers 4,5,6 (=6) on Belle II. | |
| const unsigned short | c_nSVDChipsLv = 4 |
| Number of SVD chips per sensor in v in layers 4,5,6 (=4) on Belle II. | |
| const unsigned short | c_nSVDChannelsPerChip = 128 |
| Number of SVD strips per chip on Belle II. | |
The class collects utility functions for numbering layers, sensors snd chips based on current VXD geometry.
Definition at line 25 of file GeoTools.h.
| GeoTools | ( | ) |
Constructor builds lookup maps from GeoCache.
The constructor calls VXD::GeoCache, should be called in initialize() method of modules, not in module constructor.
Definition at line 17 of file GeoTools.cc.
|
inline |
Return chipID (VxdID + side and chipNo) for index in the list.
| pxdChipIndex | Index in the list of PXD sensors. |
Definition at line 286 of file GeoTools.h.
|
inline |
Return chipID (VxdID with side and chipNo) for index in the list.
| svdChipIndex | Index in the list of SVD sensors. |
Definition at line 384 of file GeoTools.h.
|
inline |
Get first (innermost) layer number.
Definition at line 86 of file GeoTools.h.
|
inline |
Get first (innermost) PXD layer number.
Definition at line 96 of file GeoTools.h.
|
inline |
Get first (innermost) SVD layer number.
Definition at line 112 of file GeoTools.h.
|
inline |
Get last (outermost) layer number.
Definition at line 91 of file GeoTools.h.
|
inline |
Get last (outermost) PXD layer number.
Definition at line 104 of file GeoTools.h.
|
inline |
Get last (outermost) SVD layer number.
Definition at line 120 of file GeoTools.h.
|
inline |
Return index of layer in plots.
| layer | layer number. |
Definition at line 426 of file GeoTools.h.
|
inline |
Return layer number for list index.
| index | List index of the layer |
Definition at line 438 of file GeoTools.h.
|
inline |
Get numbers of VXD layers.
Definition at line 57 of file GeoTools.h.
|
inline |
Get number of VXD layers.
Definition at line 41 of file GeoTools.h.
|
inline |
Get number of PXD layers.
Definition at line 46 of file GeoTools.h.
|
inline |
Get number of PXD readout gates.
Definition at line 164 of file GeoTools.h.
|
inline |
|
inline |
Get number of u-side PXD chips.
Definition at line 152 of file GeoTools.h.
|
inline |
Get number of v-side PXD chips.
Definition at line 158 of file GeoTools.h.
|
inline |
Get total number of sensors.
Definition at line 128 of file GeoTools.h.
|
inline |
Get number of SVD layers.
Definition at line 51 of file GeoTools.h.
|
inline |
|
inline |
Get number of u-side SVD chips.
Definition at line 175 of file GeoTools.h.
|
inline |
Get number of v-side SVD chips.
| layer | Layer of the sensor |
Definition at line 182 of file GeoTools.h.
|
inline |
Return PXD chip index in the list of PXD chips.
| layer | layer position of sensor |
| ladder | ladder position of sensor |
| sensor | sensor position of sensor |
| isU | true for u side of the sensor (DCD) |
| chip | Chip number on sensor (DCD or switcher, 1-based) |
Definition at line 277 of file GeoTools.h.
|
inline |
Return PXD chip index in the list of PXD chips.
1-based chip numbering.
| sensorID | VxdID of the sensor |
| isU | true for u side of the sensor (DCD) |
| chip | Chip position on sensor - DCDs or Switchers |
Definition at line 259 of file GeoTools.h.
|
inline |
Decode (1-based) chip number from a PXD ChipID.
Definition at line 304 of file GeoTools.h.
|
inline |
Get numbers of PXD layers.
Definition at line 62 of file GeoTools.h.
|
inline |
Return index of sensor in plots.
Use for only PXD sensor counting, without SVD.
| layer | layer position of sensor |
| ladder | ladder position of sensor |
| sensor | sensor position of sensor |
Definition at line 235 of file GeoTools.h.
|
inline |
Return index of sensor in plots.
A simple alias to getSensorIndex()
| sensorID | VxdID of the sensor |
Definition at line 224 of file GeoTools.h.
|
inline |
|
inline |
Return index of a PXD sensor in plots.
Use for only PXD sensor counting, without SVD.
| pxdIndex | Index of sensor in plots. |
Definition at line 244 of file GeoTools.h.
|
inline |
|
inline |
Return index of s VXD sensor for plotting.
| sensorID | VxdID of the sensor |
Definition at line 198 of file GeoTools.h.
|
inline |
Get number of strips per APV chip in SVD.
Definition at line 188 of file GeoTools.h.
|
inline |
Return SVD chip index in the list of SVD chips.
| layer | layer position of sensor |
| ladder | ladder position of sensor |
| sensor | sensor position of sensor |
| isU | true for u side of the sensor |
| chip | Chip position on sensor (1-based) |
Definition at line 375 of file GeoTools.h.
|
inline |
Return SVD chip index in the list of SVD chips.
| sensorID | VxdID of the sensor |
| isU | true for u side of the sensor |
| chip | Chip position on sensor (1-based) |
Definition at line 354 of file GeoTools.h.
|
inline |
Decode (1-based) chip number from a SVD ChipID.
Definition at line 403 of file GeoTools.h.
|
inline |
Get numbers of SVD layers.
Definition at line 74 of file GeoTools.h.
|
inline |
Return index of SVD sensor in plots.
This is solely SVD counting starting from 0.
| layer | layer position of sensor |
| ladder | ladder position of sensor |
| sensor | sensor position of sensor |
Definition at line 330 of file GeoTools.h.
|
inline |
Return index of SVD sensor in plots.
This is solely SVD counting starting from 0.
| sensorID | VxdID of the sensor |
Definition at line 318 of file GeoTools.h.
|
inline |
Get total number of chips in PXD.
Definition at line 147 of file GeoTools.h.
|
inline |
Get total number of chips in SVD.
Definition at line 170 of file GeoTools.h.
|
inline |
Decode sensor side from a PXD ChipID.
Definition at line 295 of file GeoTools.h.
|
inline |
Decode sensor side from a SVD ChipID.
Definition at line 393 of file GeoTools.h.