Skip to content

Commit ab4d075

Browse files
sangwoosangwoo
authored andcommitted
adding EventMixing
1 parent bf4ce6e commit ab4d075

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGLF/Tasks/Resonances/f0980pbpbanalysis.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ struct F0980pbpbanalysis {
502502
BinningTypeVertexContributor binningOnPositions{{mixingAxisVertex, mixingAxisMultiplicity}, true};
503503
SameKindPair<EventCandidates, TrackCandidates, BinningTypeVertexContributor> pair{binningOnPositions, cfgNMixedEvents, -1, collisions, trackTuple, &cache};
504504
ROOT::Math::PxPyPzMVector ptl1, ptl2, recoPtl;
505-
for (auto& [c1, t1, c2, t2] : pair) {
505+
for (const auto& [c1, t1, c2, t2] : pair) {
506506
if (cfgCentEst == CentEstList::FT0C) {
507507
centrality = c1.centFT0C();
508508
} else if (cfgCentEst == CentEstList::FT0M) {
@@ -516,15 +516,15 @@ struct F0980pbpbanalysis {
516516
}
517517
double eventPlaneDet = std::atan2(c1.qvecIm()[qVecDetInd], c1.qvecRe()[qVecDetInd]) / static_cast<float>(nmode);
518518

519-
for (auto& trk1 : t1) {
519+
for (const auto& trk1 : t1) {
520520
if (!trackSelected(trk1)) {
521521
continue;
522522
}
523523
if (!selectionPID(trk1)) {
524524
continue;
525525
}
526526

527-
for (auto& trk2 : t2) {
527+
for (const auto& trk2 : t2) {
528528
if (!trackSelected(trk2)) {
529529
continue;
530530
}

0 commit comments

Comments
 (0)