|
13 | 13 | #define ALICEO2_IOTOF_GEOMETRYTGEO_H |
14 | 14 |
|
15 | 15 | #include <memory> |
| 16 | +#include <string> |
| 17 | +#include <vector> |
16 | 18 | #include <DetectorsCommonDataFormats/DetMatrixCache.h> |
| 19 | +#include <IOTOFBase/IOTOFBaseParam.h> |
| 20 | +#include <MathUtils/Cartesian.h> |
17 | 21 |
|
18 | 22 | namespace o2 |
19 | 23 | { |
@@ -88,8 +92,11 @@ class GeometryTGeo : public o2::detectors::DetMatrixCache |
88 | 92 |
|
89 | 93 | int getIOTOFFirstChipIndex(int lay) const; |
90 | 94 | int getIOTOFLayer(int index) const; |
| 95 | + bool isValidIOTOFChipIndex(int index) const { return index >= 0 && index <= mLastChipIndex[1]; } |
91 | 96 | int getIOTOFChipIndex(int lay, int sta, int mod, int chip) const; |
92 | 97 | bool getIOTOFChipId(int index, int& lay, int& sta, int& mod, int& chip) const; |
| 98 | + o2::math_utils::Point3D<float> detectorToLocal(int row, int col, int chipId) const; |
| 99 | + static const ChipSpecifics& getChipSpecifics(int iotofLayer); |
93 | 100 |
|
94 | 101 | /// Get the transformation matrix of the SENSOR (not necessary the same as the chip) |
95 | 102 | /// for a given chip 'index' by querying the TGeoManager |
@@ -156,18 +163,18 @@ class GeometryTGeo : public o2::detectors::DetMatrixCache |
156 | 163 | static std::string sBTOFSensorName; |
157 | 164 |
|
158 | 165 | // Inner/outer TOF |
159 | | - int mNumberOfStavesIOTOF[2]; |
160 | | - int mNumberOfModulesIOTOF[2]; |
161 | | - int mNumberOfChipsPerModuleIOTOF[2]; |
162 | | - int mNumberOfChipsPerStaveIOTOF[2]; |
163 | | - int mNumberOfChipsIOTOF[2]; |
164 | | - int mLastChipIndex[2]; |
| 166 | + int mNumberOfStavesIOTOF[2]{}; |
| 167 | + int mNumberOfModulesIOTOF[2]{}; |
| 168 | + int mNumberOfChipsPerModuleIOTOF[2]{}; |
| 169 | + int mNumberOfChipsPerStaveIOTOF[2]{}; |
| 170 | + int mNumberOfChipsIOTOF[2]{}; |
| 171 | + int mLastChipIndex[2]{-1, -1}; |
165 | 172 |
|
166 | 173 | // Forward TOF |
167 | | - int mNumberOfChipsFTOF; |
| 174 | + int mNumberOfChipsFTOF = 0; |
168 | 175 |
|
169 | 176 | // Backward TOF |
170 | | - int mNumberOfChipsBTOF; |
| 177 | + int mNumberOfChipsBTOF = 0; |
171 | 178 |
|
172 | 179 | std::vector<int> sensors; |
173 | 180 | std::vector<float> mCacheRefX; /// cache for X of IOTOF |
|
0 commit comments