Skip to content

Commit 036df0c

Browse files
authored
Update correlatorHfeHadrons.cxx
Add nonHfe selection
1 parent 202dfe9 commit 036df0c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGHF/HFC/TableProducer/correlatorHfeHadrons.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ struct HfCorrelatorHfeHadrons {
344344
Pair<TableCollisions, aod::HfCorrSelEl, TableTracks, BinningType> pair{corrBinning, 5, -1, collision, tracksTuple, &cache};
345345

346346
// loop over the rows of the new table
347-
for (auto& [c1, tracks1, c2, tracks2] : pair) {
347+
for (const auto& [c1, tracks1, c2, tracks2] : pair) {
348348

349349
fillMixCorrelation(c1, c2, tracks1, tracks2);
350350
}
@@ -359,7 +359,7 @@ struct HfCorrelatorHfeHadrons {
359359
Pair<McTableCollisions, aod::HfCorrSelEl, McTableTracks, BinningType> pairMcRec{corrBinning, 5, -1, mccollision, tracksTuple, &cache};
360360

361361
// loop over the rows of the new table
362-
for (auto& [c1, tracks1, c2, tracks2] : pairMcRec) {
362+
for (const auto& [c1, tracks1, c2, tracks2] : pairMcRec) {
363363

364364
fillMixCorrelation(c1, c2, tracks1, tracks2);
365365
}
@@ -382,9 +382,9 @@ struct HfCorrelatorHfeHadrons {
382382
double ptHadronMix = -999;
383383
double etaHadronMix = -999;
384384
double phiHadronMix = -999;
385-
for (auto& [c1, tracks1, c2, tracks2] : pairMcGen) {
385+
for (const auto& [c1, tracks1, c2, tracks2] : pairMcGen) {
386386
int poolBin = corrBinningMcGen.getBin(std::make_tuple(c1.posZ(), c1.multMCFT0A()));
387-
for (auto& [t1, t2] : combinations(CombinationsFullIndexPolicy(tracks1, tracks2))) {
387+
for (const auto& [t1, t2] : combinations(CombinationsFullIndexPolicy(tracks1, tracks2))) {
388388
ptHadronMix = t2.pt();
389389
ptElectronMix = t1.ptTrackMc();
390390
phiElectronMix = t1.phiTrackMc();

0 commit comments

Comments
 (0)