Skip to content

Commit 30da79c

Browse files
author
Lucia Anna Tarasovicova
committed
proper way for the nested static for loop
1 parent c67251f commit 30da79c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ struct OnTheFlyTracker {
809809
}
810810
if (v0DecaySettings.doV0QA && isV0) {
811811
static_for<0, 11>([&](auto i) {
812-
constexpr int Index = i.value % 3;
812+
constexpr int Index = i.value / 4;
813813
constexpr int IndexCnfg = i.value % 4;
814814
if (pdg == v0PDGs[Index] && icfg == IndexCnfg) {
815815

@@ -1175,7 +1175,7 @@ struct OnTheFlyTracker {
11751175
}
11761176
if (v0DecaySettings.doV0QA) {
11771177
static_for<0, 11>([&](auto i) {
1178-
constexpr int Index = i.value % 3;
1178+
constexpr int Index = i.value / 4;
11791179
constexpr int IndexCnfg = i.value % 4;
11801180
if (pdg == v0PDGs[Index] && icfg == IndexCnfg) {
11811181
if (isReco[0] && isReco[1]) {

0 commit comments

Comments
 (0)