You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -85,6 +88,7 @@ class GeometryTGeo : public o2::detectors::DetMatrixCache
85
88
intgetHalfStave(int index) const;
86
89
intgetDisk(int index) const;
87
90
intgetModule(int index) const;
91
+
intgetChip(int index) const;
88
92
89
93
/// This routine computes the chip index number from the subDetID, petal, disk, layer, stave /// TODO: retrieve also from chip when chips will be available
90
94
/// \param int subDetID The subdetector ID, 0 for VD, 1 for MLOT
@@ -93,15 +97,19 @@ class GeometryTGeo : public o2::detectors::DetMatrixCache
93
97
/// \param int lay The layer number. Starting from 0 both for VD and MLOT
94
98
/// \param int stave The stave number for MLOT. Starting from 0
95
99
/// \param int halfstave The half stave number for MLOT. Can be 0 or 1
96
-
intgetChipIndex(int subDetID, int petalcase, int disk, int lay, int stave, int halfstave) const;
100
+
/// \param int module The module number for MLOT, from 0 to 10 (or 20)
101
+
/// \param int chip The chip number for MLOT, from 0 to 8
102
+
intgetChipIndex(int subDetID, int petalcase, int disk, int lay, int stave, int halfstave, intmodule, int chip) const;
97
103
98
104
/// This routine computes the chip index number from the subDetID, volume, layer, stave /// TODO: retrieve also from chip when chips will be available
99
105
/// \param int subDetID The subdetector ID, 0 for VD, 1 for MLOT
100
106
/// \param int volume is needed only with the current configuration for VD where each single element is a volume. // TODO: when the geometry naming scheme will be changed, change this method
101
107
/// \param int lay The layer number for the MLOT. In the current configuration for VD this is not needed. // TODO: when the geometry naming scheme will be changed, change this method
102
108
/// \param int stave The stave number in each layer for MLOT. Starting from 0.
103
109
/// \param int halfstave The half stave number for MLOT. Can be 0 or 1
104
-
intgetChipIndex(int subDetID, int volume, int lay, int stave, int halfstave) const;
110
+
/// \param int module The module number for MLOT, from 0 to 10 (or 20)
111
+
/// \param int chip The chip number for MLOT, from 0 to 8
112
+
intgetChipIndex(int subDetID, int volume, int lay, int stave, int halfstave, intmodule, int chip) const;
105
113
106
114
/// This routine computes subDetID, petal, disk, layer, stave given the chip index number /// TODO: copute also from chip when chips will be available
107
115
/// \param int index The chip index number, starting from 0
@@ -111,7 +119,9 @@ class GeometryTGeo : public o2::detectors::DetMatrixCache
111
119
/// \param int lay The layer number. Starting from 0 both for VD and MLOT
112
120
/// \param int stave The stave number for MLOT. Starting from 0
113
121
/// \param int halfstave The half stave number for MLOT. Can be 0 or 1
mNumberOfChipsPerLayerMLOT[i] = extractNumberOfStavesMLOT(i) * extractNumberOfHalfStavesMLOT(i); // for the moment, considering 1 half stave = 1 chip. TODO: add the final segmentation in chips
intGeometryTGeo::getChipIndex(int subDetID, int volume, int lay, int stave, int halfstave) const
258
+
intGeometryTGeo::getChipIndex(int subDetID, int volume, int lay, int stave, int halfstave, intmodule, int chip) const
244
259
{
245
260
if (subDetID == 0) { // VD
246
261
return volume; /// In the current configuration for VD, each volume is the sensor element = chip. // TODO: when the geometry naming scheme will be changed, change this method
@@ -256,14 +271,16 @@ int GeometryTGeo::getChipIndex(int subDetID, int volume, int lay, int stave, int
0 commit comments