Skip to content

Commit 579e144

Browse files
committed
trying to fix O2 linter errors
1 parent b7cca26 commit 579e144

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PWGHF/TableProducer/candidateCreatorCascade.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,13 @@ struct HfCandidateCreatorCascade {
222222
dcaNegToPV = v0row.dcanegtopv();
223223
v0cosPA = v0row.v0cosPA();
224224

225+
int MomIndSize = 6;
225226
constexpr int MomInd[6] = {9, 13, 14, 18, 19, 20}; // cov matrix elements for momentum component
226-
for (int i = 0; i < 6; i++) {
227+
for (int i = 0; i < MomIndSize; i++) {
227228
covV[MomInd[i]] = v0row.momentumCovMat()[i];
228229
covV[i] = v0row.positionCovMat()[i];
229230
}
230-
} else {
231+
} else {
231232
LOGF(warning, "V0Data not there for V0 %d in HF cascade %d. Skipping candidate.", casc.v0Id(), casc.globalIndex());
232233
continue; // this was inadequately linked, should not happen
233234
}

0 commit comments

Comments
 (0)