Belle II Software development
|
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. | |
unsigned short | getNumberOfLayers () const |
Get number of VXD layers. | |
unsigned short | getNumberOfPXDLayers () const |
Get number of PXD layers. | |
unsigned short | getNumberOfSVDLayers () const |
Get number of SVD layers. | |
std::vector< unsigned short > | getLayers () const |
Get numbers of VXD layers. | |
std::vector< unsigned short > | getPXDLayers () const |
Get numbers of PXD layers. | |
std::vector< unsigned short > | getSVDLayers () const |
Get numbers of SVD layers. | |
unsigned short | getFirstLayer () const |
Get first (innermost) layer number. | |
unsigned short | getLastLayer () const |
Get last (outermost) layer number. | |
short | getFirstPXDLayer () const |
Get first (innermost) PXD layer number. | |
short | getLastPXDLayer () const |
Get last (outermost) PXD layer number. | |
short | getFirstSVDLayer () const |
Get first (innermost) SVD layer number. | |
short | getLastSVDLayer () const |
Get last (outermost) SVD layer number. | |
unsigned short | getNumberOfSensors () const |
Get total number of sensors. | |
unsigned short | getNumberOfPXDSensors () const |
Get number of PXD sensors. | |
unsigned short | getNumberOfSVDSensors () const |
Get number of SVD sensors. | |
size_t | getTotalPXDChips () const |
Get total number of chips in PXD. | |
unsigned short | getNumberOfPXDUSideChips () const |
Get number of u-side PXD chips. | |
unsigned short | getNumberOfPXDVSideChips () const |
Get number of v-side PXD chips. | |
unsigned short | getNumberOfPXDReadoutGates () const |
Get number of PXD readout gates. | |
size_t | getTotalSVDChips () const |
Get total number of chips in SVD. | |
unsigned short | getNumberOfSVDUSideChips () const |
Get number of u-side SVD chips. | |
unsigned short | getNumberOfSVDVSideChips (unsigned short layer) const |
Get number of v-side SVD chips. | |
unsigned short | getSVDChannelsPerChip () const |
Get number of strips per APV chip in SVD. | |
int | getSensorIndex (VxdID sensorID) const |
Return index of s VXD sensor for plotting. | |
VxdID | getSensorIDFromIndex (int vxdIndex) const |
Reverse lookup VxdID from list index. | |
int | getPXDSensorIndex (VxdID sensorID) const |
Return index of sensor in plots. | |
int | getPXDSensorIndex (int layer, int ladder, int sensor) const |
Return index of sensor in plots. | |
VxdID | getSensorIDFromPXDIndex (int pxdIndex) const |
Return index of a PXD sensor in plots. | |
int | getPXDChipIndex (VxdID sensorID, bool isU, int chip) const |
Return PXD chip index in the list of PXD chips. | |
int | getPXDChipIndex (int layer, int ladder, int sensor, bool isU, int chip) const |
Return PXD chip index in the list of PXD chips. | |
VxdID | getChipIDFromPXDIndex (int pxdChipIndex) const |
Return chipID (VxdID + side and chipNo) for index in the list. | |
bool | isPXDSideU (VxdID chipID) const |
Decode sensor side from a PXD ChipID. | |
unsigned short | getPXDChipNumber (VxdID chipID) const |
Decode (1-based) chip number from a PXD ChipID. | |
int | getSVDSensorIndex (VxdID sensorID) const |
Return index of SVD sensor in plots. | |
int | getSVDSensorIndex (int layer, int ladder, int sensor) const |
Return index of SVD sensor in plots. | |
VxdID | getSensorIDFromSVDIndex (int svdIndex) const |
Return VxdID for SVD index of sensor in plots. | |
int | getSVDChipIndex (VxdID sensorID, bool isU, int chip) const |
Return SVD chip index in the list of SVD chips. | |
int | getSVDChipIndex (int layer, int ladder, int sensor, bool isU, int chip) const |
Return SVD chip index in the list of SVD chips. | |
VxdID | getChipIDFromSVDIndex (int svdChipIndex) const |
Return chipID (VxdID with side and chipNo) for index in the list. | |
bool | isSVDSideU (VxdID chipID) const |
Decode sensor side from a SVD ChipID. | |
unsigned short | getSVDChipNumber (VxdID chipID) const |
Decode (1-based) chip number from a SVD ChipID. | |
int | getLayerIndex (unsigned short layer) const |
Return index of layer in plots. | |
unsigned short | getLayerNumberFromLayerIndex (int index) const |
Return layer number for list index. | |
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.
|
private |
Create list of VXD layers.
Definition at line 34 of file GeoTools.cc.
|
private |
Create list of PXD chips.
Definition at line 52 of file GeoTools.cc.
|
private |
Create list of SVD chips.
Definition at line 73 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 |
|
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 |
Reverse lookup VxdID from list index.
Definition at line 211 of file GeoTools.h.
|
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.
|
private |
Number of PXD chips per sensor in u (DCD) (=4) on Belle II.
Definition at line 474 of file GeoTools.h.
|
private |
Number of PXD chips per sensor in v (Switchers) (=6) on Belle II.
Definition at line 476 of file GeoTools.h.
|
private |
Number of PXD readout gates (or total number of Switcher channels) on Belle II.
Definition at line 478 of file GeoTools.h.
|
private |
Number of SVD strips per chip on Belle II.
Definition at line 486 of file GeoTools.h.
|
private |
Number of SVD chips per sensor in u,v in layer 3 (=6) on Belle II.
Definition at line 480 of file GeoTools.h.
|
private |
Number of SVD chips per sensor in u in layers 4,5,6 (=6) on Belle II.
Definition at line 482 of file GeoTools.h.
|
private |
Number of SVD chips per sensor in v in layers 4,5,6 (=4) on Belle II.
Definition at line 484 of file GeoTools.h.
|
private |
Number of the first SVD sensor in the list.
Definition at line 459 of file GeoTools.h.
|
private |
List index of the first SVD layer.
Definition at line 465 of file GeoTools.h.
|
private |
List of all VXD layers.
Definition at line 462 of file GeoTools.h.
|
private |
List of all PXD chips.
Definition at line 468 of file GeoTools.h.
|
private |
List of all VXD sesnros.
Definition at line 456 of file GeoTools.h.
|
private |
List of all SVD chips.
Definition at line 471 of file GeoTools.h.