From 86a83458f64b4c3c933db8bbc965ee007092b011 Mon Sep 17 00:00:00 2001 From: Changhwan Choi Date: Sun, 3 May 2026 20:36:11 +0900 Subject: [PATCH 1/5] Removed collisionId criteria for processMcTrackLabelsWithCollisionAssociator, to enable access to mcParticle of reassociated tracks --- PWGJE/TableProducer/derivedDataProducer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGJE/TableProducer/derivedDataProducer.cxx b/PWGJE/TableProducer/derivedDataProducer.cxx index 6a482f981df..3676ab5a6e9 100644 --- a/PWGJE/TableProducer/derivedDataProducer.cxx +++ b/PWGJE/TableProducer/derivedDataProducer.cxx @@ -582,7 +582,7 @@ struct JetDerivedDataProducerTask { auto collisionTrackIndices = assocCollisions.sliceBy(preslices.perCollisionTrackIndices, collision.globalIndex()); for (auto const& collisionTrackIndex : collisionTrackIndices) { auto track = collisionTrackIndex.track_as>(); - if (track.collisionId() == collision.globalIndex() && track.has_mcParticle()) { + if (track.has_mcParticle()) { products.jMcTracksLabelTable(track.mcParticleId()); } else { products.jMcTracksLabelTable(-1); From e589d54c106aec9b8f2af649734707695393c3bb Mon Sep 17 00:00:00 2001 From: Changhwan Choi Date: Mon, 4 May 2026 21:10:05 +0900 Subject: [PATCH 2/5] Revised the definition of GNN track origin prediction labels --- PWGJE/Core/JetTaggingUtilities.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/PWGJE/Core/JetTaggingUtilities.h b/PWGJE/Core/JetTaggingUtilities.h index 0e8b08c3fa2..6c4381fee65 100644 --- a/PWGJE/Core/JetTaggingUtilities.h +++ b/PWGJE/Core/JetTaggingUtilities.h @@ -990,12 +990,15 @@ int vertexClustering(AnyCollision const& collision, AnalysisJet const& jet, AnyT int trkIdx = 0; for (auto const& constituent : jet.template tracks_as()) { if (!constituent.has_mcParticle() || !constituent.template mcParticle_as().isPhysicalPrimary() || constituent.pt() < trackPtMin) { - trkLabels["trkOrigin"].push_back(0); + trkLabels["trkOrigin"].push_back(0); // fake track, non-physical primary track } else { const auto& particle = constituent.template mcParticle_as(); - int orig = RecoDecay::getParticleOrigin(particles, particle, searchUpToQuark); - trkLabels["trkOrigin"].push_back((orig > 0) ? orig : (trkLabels["trkVtxIndex"][trkIdx] == 0) ? 3 - : 4); + if (particle.mcCollisionId() != collision.globalIndex()) { + trkLabels["trkOrigin"].push_back(0); // mismatched coll track + } else { + int orig = RecoDecay::getParticleOrigin(particles, particle, searchUpToQuark); + trkLabels["trkOrigin"].push_back((orig > 0) ? orig : (trkLabels["trkVtxIndex"][trkIdx] == 0) ? 3 : 4); // 1: charm, 2: beauty, 3: primary, 4: other secondary + } } trkIdx++; From f7e2ca46f7bd2c248b5bb7d6eeea0c74c4b2716f Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Mon, 4 May 2026 12:12:41 +0000 Subject: [PATCH 3/5] Please consider the following formatting changes --- PWGJE/Core/JetTaggingUtilities.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PWGJE/Core/JetTaggingUtilities.h b/PWGJE/Core/JetTaggingUtilities.h index 6c4381fee65..5284a1cb7de 100644 --- a/PWGJE/Core/JetTaggingUtilities.h +++ b/PWGJE/Core/JetTaggingUtilities.h @@ -997,7 +997,8 @@ int vertexClustering(AnyCollision const& collision, AnalysisJet const& jet, AnyT trkLabels["trkOrigin"].push_back(0); // mismatched coll track } else { int orig = RecoDecay::getParticleOrigin(particles, particle, searchUpToQuark); - trkLabels["trkOrigin"].push_back((orig > 0) ? orig : (trkLabels["trkVtxIndex"][trkIdx] == 0) ? 3 : 4); // 1: charm, 2: beauty, 3: primary, 4: other secondary + trkLabels["trkOrigin"].push_back((orig > 0) ? orig : (trkLabels["trkVtxIndex"][trkIdx] == 0) ? 3 + : 4); // 1: charm, 2: beauty, 3: primary, 4: other secondary } } From fcf85d955f2100ac80a9019ea1378fe97c2c6520 Mon Sep 17 00:00:00 2001 From: Changhwan Choi Date: Mon, 4 May 2026 22:32:26 +0900 Subject: [PATCH 4/5] Resolved OriginType comparison to literal int --- PWGJE/Core/JetTaggingUtilities.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PWGJE/Core/JetTaggingUtilities.h b/PWGJE/Core/JetTaggingUtilities.h index 5284a1cb7de..795f1bbd903 100644 --- a/PWGJE/Core/JetTaggingUtilities.h +++ b/PWGJE/Core/JetTaggingUtilities.h @@ -997,8 +997,7 @@ int vertexClustering(AnyCollision const& collision, AnalysisJet const& jet, AnyT trkLabels["trkOrigin"].push_back(0); // mismatched coll track } else { int orig = RecoDecay::getParticleOrigin(particles, particle, searchUpToQuark); - trkLabels["trkOrigin"].push_back((orig > 0) ? orig : (trkLabels["trkVtxIndex"][trkIdx] == 0) ? 3 - : 4); // 1: charm, 2: beauty, 3: primary, 4: other secondary + trkLabels["trkOrigin"].push_back((orig != RecoDecay::OriginType::None) ? static_cast(orig) : (trkLabels["trkVtxIndex"][trkIdx] == 0) ? 3 : 4); // 1: charm, 2: beauty, 3: primary, 4: other secondary } } From 9df14d57f624f12dac9276a911a1db01e2266d36 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Mon, 4 May 2026 13:33:45 +0000 Subject: [PATCH 5/5] Please consider the following formatting changes --- PWGJE/Core/JetTaggingUtilities.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PWGJE/Core/JetTaggingUtilities.h b/PWGJE/Core/JetTaggingUtilities.h index 795f1bbd903..754c19331dc 100644 --- a/PWGJE/Core/JetTaggingUtilities.h +++ b/PWGJE/Core/JetTaggingUtilities.h @@ -997,7 +997,8 @@ int vertexClustering(AnyCollision const& collision, AnalysisJet const& jet, AnyT trkLabels["trkOrigin"].push_back(0); // mismatched coll track } else { int orig = RecoDecay::getParticleOrigin(particles, particle, searchUpToQuark); - trkLabels["trkOrigin"].push_back((orig != RecoDecay::OriginType::None) ? static_cast(orig) : (trkLabels["trkVtxIndex"][trkIdx] == 0) ? 3 : 4); // 1: charm, 2: beauty, 3: primary, 4: other secondary + trkLabels["trkOrigin"].push_back((orig != RecoDecay::OriginType::None) ? static_cast(orig) : (trkLabels["trkVtxIndex"][trkIdx] == 0) ? 3 + : 4); // 1: charm, 2: beauty, 3: primary, 4: other secondary } }