![]() |
Belle II Software
release-05-02-19
|
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 (unsigned short=0) const |
Get number of u-side PXD chips. More... | |
unsigned short | getNumberOfPXDVSideChips (unsigned short=0) const |
Get number of v-side PXD chips. More... | |
unsigned short | getNumberOfPXDReadoutGates (unsigned short=0) const |
Get number of PXD readout gates. More... | |
size_t | getTotalSVDChips () const |
Get total number of chips in SVD. More... | |
unsigned short | getNumberOfSVDUSideChips (unsigned short=0) 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 35 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 19 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 300 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 398 of file GeoTools.h.
|
inline |
Get first (innermost) layer number.
Definition at line 96 of file GeoTools.h.
|
inline |
Get first (innermost) PXD layer number.
Definition at line 106 of file GeoTools.h.
|
inline |
Get first (innermost) SVD layer number.
Definition at line 122 of file GeoTools.h.
|
inline |
Get last (outermost) layer number.
Definition at line 101 of file GeoTools.h.
|
inline |
Get last (outermost) PXD layer number.
Definition at line 114 of file GeoTools.h.
|
inline |
Get last (outermost) SVD layer number.
Definition at line 130 of file GeoTools.h.
|
inline |
Return index of layer in plots.
layer | layer number. |
Definition at line 440 of file GeoTools.h.
|
inline |
Return layer number for list index.
index | List index of the layer |
Definition at line 452 of file GeoTools.h.
|
inline |
Get numbers of VXD layers.
Definition at line 67 of file GeoTools.h.
|
inline |
Get number of VXD layers.
Definition at line 51 of file GeoTools.h.
|
inline |
Get number of PXD layers.
Definition at line 56 of file GeoTools.h.
|
inline |
Get number of PXD readout gates.
(unused) | Layer of the sensor |
Definition at line 177 of file GeoTools.h.
|
inline |
|
inline |
Get number of u-side PXD chips.
(unused) | Layer of the sensor |
Definition at line 163 of file GeoTools.h.
|
inline |
Get number of v-side PXD chips.
(unused) | Layer of the sensor |
Definition at line 170 of file GeoTools.h.
|
inline |
Get total number of sensors.
Definition at line 138 of file GeoTools.h.
|
inline |
Get number of SVD layers.
Definition at line 61 of file GeoTools.h.
|
inline |
|
inline |
Get number of u-side SVD chips.
(unused) | Layer of the sensor |
Definition at line 189 of file GeoTools.h.
|
inline |
Get number of v-side SVD chips.
layer | Layer of the sensor |
Definition at line 196 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 291 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 273 of file GeoTools.h.
|
inline |
Decode (1-based) chip number from a PXD ChipID.
Definition at line 318 of file GeoTools.h.
|
inline |
Get numbers of PXD layers.
Definition at line 72 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 249 of file GeoTools.h.
|
inline |
Return index of sensor in plots.
A simple alias to getSensorIndex()
sensorID | VxdID of the sensor |
Definition at line 238 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 258 of file GeoTools.h.
|
inline |
|
inline |
Return index of s VXD sensor for plotting.
sensorID | VxdID of the sensor |
Definition at line 212 of file GeoTools.h.
|
inline |
Get number of strips per APV chip in SVD.
Definition at line 202 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 389 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 368 of file GeoTools.h.
|
inline |
Decode (1-based) chip number from a SVD ChipID.
Definition at line 417 of file GeoTools.h.
|
inline |
Get numbers of SVD layers.
Definition at line 84 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 344 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 332 of file GeoTools.h.
|
inline |
Get total number of chips in PXD.
Definition at line 157 of file GeoTools.h.
|
inline |
Get total number of chips in SVD.
Definition at line 183 of file GeoTools.h.
|
inline |
Decode sensor side from a PXD ChipID.
Definition at line 309 of file GeoTools.h.
|
inline |
Decode sensor side from a SVD ChipID.
Definition at line 407 of file GeoTools.h.