Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -903,8 +903,18 @@

auto groupPartsTrack = partsTrack->sliceByCached(aod::femtouniverseparticle::fdCollisionId, col.globalIndex(), cache);
auto groupPartsD0sFromSB = partsD0sFromSB->sliceByCached(aod::femtouniverseparticle::fdCollisionId, col.globalIndex(), cache);
auto groupPartsD0barsFromSB = partsD0barsFromSB->sliceByCached(aod::femtouniverseparticle::fdCollisionId, col.globalIndex(), cache);

doSameEvent<false>(groupPartsTrack, groupPartsD0sFromSB, parts, col.magField(), col.multNtr());
switch (confChooseD0trackCorr) {
case 0:
doSameEvent<false>(groupPartsTrack, groupPartsD0sFromSB, parts, col.magField(), col.multNtr());
break;
case 1:
doSameEvent<false>(groupPartsTrack, groupPartsD0barsFromSB, parts, col.magField(), col.multNtr());
break;
default:
break;
}
}
PROCESS_SWITCH(FemtoUniversePairTaskTrackD0, processSameEventSB, "Enable processing same event", false);

Expand Down Expand Up @@ -1060,6 +1070,7 @@

auto groupPartsTrack = partsTrack->sliceByCached(aod::femtouniverseparticle::fdCollisionId, collision2.globalIndex(), cache);
auto groupPartsD0sFromSB = partsD0sFromSB->sliceByCached(aod::femtouniverseparticle::fdCollisionId, collision1.globalIndex(), cache);
auto groupPartsD0barsFromSB = partsD0barsFromSB->sliceByCached(aod::femtouniverseparticle::fdCollisionId, collision1.globalIndex(), cache);

const auto& magFieldTesla1 = collision1.magField();
const auto& magFieldTesla2 = collision2.magField();
Expand All @@ -1069,8 +1080,16 @@
}
/// \todo before mixing we should check whether both collisions contain a pair of particles!
// if (partsD0.size() == 0 || kNPart2Evt1 == 0 || kNPart1Evt2 == 0 || partsTrack.size() == 0 ) continue;

doMixedEvent<false>(groupPartsTrack, groupPartsD0sFromSB, parts, magFieldTesla1, multiplicityCol);
switch (confChooseD0trackCorr) {
case 0:
doMixedEvent<false>(groupPartsTrack, groupPartsD0sFromSB, parts, magFieldTesla1, multiplicityCol);
break;
case 1:
doMixedEvent<false>(groupPartsTrack, groupPartsD0barsFromSB, parts, magFieldTesla1, multiplicityCol);
break;
default:
break;
}
}
}
PROCESS_SWITCH(FemtoUniversePairTaskTrackD0, processMixedEventSB, "Enable processing mixed events", false);
Expand Down Expand Up @@ -1254,7 +1273,7 @@
mcTruthRegistry.fill(HIST("hMcGenD0"), part.pt(), part.eta());
if (part.mAntiLambda() == 1) {
mcTruthRegistry.fill(HIST("hMcGenD0Prompt"), part.pt(), part.eta());
} else if (part.mAntiLambda() == 2) {

Check failure on line 1276 in PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
mcTruthRegistry.fill(HIST("hMcGenD0NonPrompt"), part.pt(), part.eta());
}
}
Expand All @@ -1280,7 +1299,7 @@
mcTruthRegistry.fill(HIST("hMcGenD0bar"), part.pt(), part.eta());
if (part.mAntiLambda() == 1) {
mcTruthRegistry.fill(HIST("hMcGenD0barPrompt"), part.pt(), part.eta());
} else if (part.mAntiLambda() == 2) {

Check failure on line 1302 in PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
mcTruthRegistry.fill(HIST("hMcGenD0barNonPrompt"), part.pt(), part.eta());
}
}
Expand Down
Loading