Skip to content

Commit 55a59ee

Browse files
ktfalibuild
andauthored
[PWGDQ] Speedup DQ event selection (#13043)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 7d969d2 commit 55a59ee

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

PWGDQ/Tasks/dqEfficiency_withAssoc.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ struct AnalysisEventSelection {
370370
// loop over the BC map, get the collision vectors and make in-bunch and out of bunch 2-event correlations
371371
for (auto bc1It = fBCCollMap.begin(); bc1It != fBCCollMap.end(); ++bc1It) {
372372
uint64_t bc1 = bc1It->first;
373-
auto bc1Events = bc1It->second;
373+
auto const& bc1Events = bc1It->second;
374374

375375
// same bunch event correlations, if more than 1 collisions in this bunch
376376
if (bc1Events.size() > 1) {
@@ -393,9 +393,9 @@ struct AnalysisEventSelection {
393393
for (auto bc2It = std::next(bc1It); bc2It != fBCCollMap.end(); ++bc2It) {
394394
uint64_t bc2 = bc2It->first;
395395
if ((bc2 > bc1 ? bc2 - bc1 : bc1 - bc2) > fConfigSplitCollisionsDeltaBC) {
396-
continue;
396+
break;
397397
}
398-
auto bc2Events = bc2It->second;
398+
auto const& bc2Events = bc2It->second;
399399

400400
// loop over events in the first BC
401401
for (auto ev1It : bc1Events) {

PWGDQ/Tasks/tableReader_withAssoc.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ struct AnalysisEventSelection {
456456
// loop over the BC map, get the collision vectors and make in-bunch and out of bunch 2-event correlations
457457
for (auto bc1It = fBCCollMap.begin(); bc1It != fBCCollMap.end(); ++bc1It) {
458458
uint64_t bc1 = bc1It->first;
459-
auto bc1Events = bc1It->second;
459+
auto& bc1Events = bc1It->second;
460460

461461
// same bunch event correlations, if more than 1 collisions in this bunch
462462
if (bc1Events.size() > 1) {
@@ -483,7 +483,7 @@ struct AnalysisEventSelection {
483483
if ((bc2 > bc1 ? bc2 - bc1 : bc1 - bc2) > fConfigSplitCollisionsDeltaBC) {
484484
break;
485485
}
486-
auto bc2Events = bc2It->second;
486+
auto& bc2Events = bc2It->second;
487487

488488
// loop over events in the first BC
489489
for (auto ev1It : bc1Events) {

0 commit comments

Comments
 (0)