@@ -113,17 +113,17 @@ void TrackerTraits::computeLayerTracklets()
113113 const int firstBinIndex{tf->mIndexTableUtils .getBinIndex (selectedBinsRect.x , iPhiBin)};
114114 const int maxBinIndex{firstBinIndex + selectedBinsRect.z - selectedBinsRect.x + 1 };
115115 if constexpr (debugLevel) {
116- if (firstBinIndex < 0 || firstBinIndex > tf->getIndexTables (rof1)[ iLayer + 1 ] .size () ||
117- maxBinIndex < 0 || maxBinIndex > tf->getIndexTables (rof1)[ iLayer + 1 ] .size ()) {
116+ if (firstBinIndex < 0 || firstBinIndex > tf->getIndexTable (rof1, iLayer + 1 ) .size () ||
117+ maxBinIndex < 0 || maxBinIndex > tf->getIndexTable (rof1, iLayer + 1 ) .size ()) {
118118 std::cout << iLayer << " \t " << iCluster << " \t " << zAtRmin << " \t " << zAtRmax << " \t " << sigmaZ * mTrkParams .NSigmaCut << " \t " << tf->getPhiCut (iLayer) << std::endl;
119119 std::cout << currentCluster.zCoordinate << " \t " << primaryVertex.getZ () << " \t " << currentCluster.radius << std::endl;
120120 std::cout << tf->getMinR (iLayer + 1 ) << " \t " << currentCluster.radius << " \t " << currentCluster.zCoordinate << std::endl;
121121 std::cout << " Illegal access to IndexTable " << firstBinIndex << " \t " << maxBinIndex << " \t " << selectedBinsRect.z << " \t " << selectedBinsRect.x << std::endl;
122122 exit (1 );
123123 }
124124 }
125- const int firstRowClusterIndex = tf->getIndexTables (rof1)[ iLayer + 1 ] [firstBinIndex];
126- const int maxRowClusterIndex = tf->getIndexTables (rof1)[ iLayer + 1 ] [maxBinIndex];
125+ const int firstRowClusterIndex = tf->getIndexTable (rof1, iLayer + 1 ) [firstBinIndex];
126+ const int maxRowClusterIndex = tf->getIndexTable (rof1, iLayer + 1 ) [maxBinIndex];
127127
128128 for (int iNextCluster{firstRowClusterIndex}; iNextCluster < maxRowClusterIndex; ++iNextCluster) {
129129 if (iNextCluster >= (int )layer1.size ()) {
@@ -402,8 +402,8 @@ bool TrackerTraits::trackFollowing(TrackITSExt* track, int rof, bool outward)
402402 int iPhiBin = (selectedBinsRect.y + iPhiCount) % mTrkParams .PhiBins ;
403403 const int firstBinIndex{mTimeFrame ->mIndexTableUtils .getBinIndex (selectedBinsRect.x , iPhiBin)};
404404 const int maxBinIndex{firstBinIndex + selectedBinsRect.z - selectedBinsRect.x + 1 };
405- const int firstRowClusterIndex = mTimeFrame ->getIndexTables (rof)[ iLayer] [firstBinIndex];
406- const int maxRowClusterIndex = mTimeFrame ->getIndexTables (rof)[ iLayer] [maxBinIndex];
405+ const int firstRowClusterIndex = mTimeFrame ->getIndexTable (rof, iLayer) [firstBinIndex];
406+ const int maxRowClusterIndex = mTimeFrame ->getIndexTable (rof, iLayer) [maxBinIndex];
407407
408408 for (int iNextCluster{firstRowClusterIndex}; iNextCluster < maxRowClusterIndex; ++iNextCluster) {
409409 if (iNextCluster >= (int )layer1.size ()) {
0 commit comments