Skip to content

Commit

Permalink
[PWGCF] adding decay mask to second track (#8897)
Browse files Browse the repository at this point in the history
Co-authored-by: junleekim <junleekim@maccbookjunlee2024.dyndns.cern.ch>
  • Loading branch information
jikim1290 and junleekim authored Dec 10, 2024
1 parent 2a9803e commit aee56dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PWGCF/Tasks/correlations.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ struct CorrelationTask {
for (const auto& track2 : tracks2) {
if constexpr (std::experimental::is_detected<HasInvMass, typename TTracks2::iterator>::value && std::experimental::is_detected<HasDecay, typename TTracks2::iterator>::value) {
if (doprocessSame2Prong2Prong) {
if (cfgDecayParticleMask != 0 && (cfgDecayParticleMask & (1u << static_cast<uint32_t>(track1.decay()))) == 0u)
continue;
if ((track1.decay() != 0) || (track2.decay() != 1)) // D0 in trk1, D0bar in trk2
continue;
registry.fill(HIST("invMassTwoPart"), track1.invMass(), track2.invMass(), track1.pt(), track2.pt(), multiplicity);
}
}
Expand Down

0 comments on commit aee56dc

Please sign in to comment.