Skip to content

Commit dccc66e

Browse files
committed
[PWGDQ] removed condition on PDG particle code for paired MFT-MCH tracks
The commit also updated the ML training data producer task to reflect the paired tracks definition used in the QA task, removing the condition that the MFT and MCH tracks should be associated to the same collision (since the matching is collision agnostic).
1 parent 02d95a8 commit dccc66e

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

PWGDQ/Tasks/mftMchMatcher.cxx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -481,23 +481,11 @@ struct mftMchMatcher {
481481
}
482482
// get the index associated to the MC particle
483483
auto muonMcParticle = muonTrack.mcParticle();
484-
if (std::abs(muonMcParticle.pdgCode()) != muonPdgCode) {
485-
continue;
486-
}
487484

488485
int64_t muonMcTrackIndex = muonMcParticle.globalIndex();
489486

490487
// inner loop on MFT tracks
491488
for (const auto& mftTrack : mftTracks) {
492-
// only consider MFT tracks associated to the same collision as the muon track
493-
if (!mftTrack.has_collision()) {
494-
continue;
495-
}
496-
auto mftCollisionId = mftTrack.collisionId();
497-
if (mftCollisionId != muonCollisionId) {
498-
continue;
499-
}
500-
501489
// skip tracks that do not have an associated MC particle
502490
if (!mftTrack.has_mcParticle()) {
503491
continue;

PWGDQ/Tasks/qaMatching.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,8 +1673,6 @@ struct QaMatching {
16731673
continue;
16741674
// get the index associated to the MC particle
16751675
auto muonMcParticle = muonTrack.mcParticle();
1676-
if (std::abs(muonMcParticle.pdgCode()) != kMuonMinus)
1677-
continue;
16781676

16791677
int64_t muonMcTrackIndex = muonMcParticle.globalIndex();
16801678

0 commit comments

Comments
 (0)