We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94d9198 commit df88a77Copy full SHA for df88a77
1 file changed
Detectors/ITSMFT/ITS/tracking/include/ITStracking/TrackHelpers.h
@@ -167,11 +167,12 @@ GPUdi() bool fitTrack(TrackITSInternal<NLayers>& trk,
167
o2::track::TrackPar* linRef = nullptr)
168
{
169
for (int iLayer{start}; iLayer != end; iLayer += step) {
170
- if (trk.getClusterIndex(iLayer) == constants::UnusedIndex) {
+ const int clsIdx = trk.getClusterIndex(iLayer);
171
+ if (clsIdx == constants::UnusedIndex) {
172
continue;
173
}
174
- const TrackingFrameInfo& trackingHit = ctx.tfInfos[iLayer][trk.getClusterIndex(iLayer)];
175
+ const TrackingFrameInfo& trackingHit = ctx.tfInfos[iLayer][clsIdx];
176
if (linRef) {
177
if (!param.o2::track::TrackParCovF::rotate(trackingHit.alphaTrackingFrame, *linRef, ctx.bz)) {
178
return false;
0 commit comments