Skip to content

Commit 0f039dc

Browse files
authored
[PWGLF] One more minor optimization change
1 parent 0dc7708 commit 0f039dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PWGLF/Utils/strangenessBuilderModule.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,6 +1338,12 @@ class BuilderModule
13381338
for (size_t iv0 = 0; iv0 < v0List.size(); iv0++) {
13391339
const auto& v0 = v0List[sorted_v0[iv0]];
13401340

1341+
if (!v0BuilderOpts.generatePhotonCandidates.value && v0.v0Type > 1) {
1342+
// skip photons if not requested
1343+
products.v0dataLink(-1, -1);
1344+
continue;
1345+
}
1346+
13411347
if (!baseOpts.mEnabledTables[kV0CoresBase] && v0Map[iv0] == -2) {
13421348
// this v0 hasn't been used by cascades and we're not generating V0s, so skip it
13431349
products.v0dataLink(-1, -1);

0 commit comments

Comments
 (0)