Skip to content

Commit e589d54

Browse files
author
Changhwan Choi
committed
Revised the definition of GNN track origin prediction labels
1 parent 86a8345 commit e589d54

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

PWGJE/Core/JetTaggingUtilities.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -990,12 +990,15 @@ int vertexClustering(AnyCollision const& collision, AnalysisJet const& jet, AnyT
990990
int trkIdx = 0;
991991
for (auto const& constituent : jet.template tracks_as<AnyTracks>()) {
992992
if (!constituent.has_mcParticle() || !constituent.template mcParticle_as<AnyParticles>().isPhysicalPrimary() || constituent.pt() < trackPtMin) {
993-
trkLabels["trkOrigin"].push_back(0);
993+
trkLabels["trkOrigin"].push_back(0); // fake track, non-physical primary track
994994
} else {
995995
const auto& particle = constituent.template mcParticle_as<AnyParticles>();
996-
int orig = RecoDecay::getParticleOrigin(particles, particle, searchUpToQuark);
997-
trkLabels["trkOrigin"].push_back((orig > 0) ? orig : (trkLabels["trkVtxIndex"][trkIdx] == 0) ? 3
998-
: 4);
996+
if (particle.mcCollisionId() != collision.globalIndex()) {
997+
trkLabels["trkOrigin"].push_back(0); // mismatched coll track
998+
} else {
999+
int orig = RecoDecay::getParticleOrigin(particles, particle, searchUpToQuark);
1000+
trkLabels["trkOrigin"].push_back((orig > 0) ? orig : (trkLabels["trkVtxIndex"][trkIdx] == 0) ? 3 : 4); // 1: charm, 2: beauty, 3: primary, 4: other secondary
1001+
}
9991002
}
10001003

10011004
trkIdx++;

0 commit comments

Comments
 (0)