We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94dffff commit 35db565Copy full SHA for 35db565
1 file changed
Detectors/ITSMFT/ITS/tracking/include/ITStracking/TrackHelpers.h
@@ -198,11 +198,12 @@ GPUdi() bool fitTrack(TrackITSInternal<NLayers>& trk,
198
o2::track::TrackPar* linRef = nullptr)
199
{
200
for (int iLayer{start}; iLayer != end; iLayer += step) {
201
- if (trk.getClusterIndex(iLayer) == constants::UnusedIndex) {
+ const int clsIdx = trk.getClusterIndex(iLayer);
202
+ if (clsIdx == constants::UnusedIndex) {
203
continue;
204
}
205
- const TrackingFrameInfo& trackingHit = ctx.tfInfos[iLayer][trk.getClusterIndex(iLayer)];
206
+ const TrackingFrameInfo& trackingHit = ctx.tfInfos[iLayer][clsIdx];
207
if (linRef) {
208
if (!param.o2::track::TrackParCovF::rotate(trackingHit.alphaTrackingFrame, *linRef, ctx.bz)) {
209
return false;
0 commit comments