Repository navigation
Conversation
Re-run the analysis' own jet clustering with truth particles added at negligible momentum and report which jet each one lands in. Ghosts are matched back to the existing jets by shared constituents, so this works for any clustering functor, including inclusive algorithms. The exclusive clustering helper now exposes its clustering so it can be re-run.
Add HadronGhostTruthLabelID and HadronGhostInitialTruthLabelID, each with the extended variant, plus the PDG id and pT of the labelling hadron and the ghost b/c hadron counts. Taus are ghost-associated as well. The shared MC record helpers live in TruthLabelUtils.
Add PartonTruthLabelID from the highest-energy ghost-associated parton. Partons are the last ones before hadronisation, found from the decay tree rather than from generator status codes, which differ between productions (the Whizard+Pythia6 samples only use status 1 and 2).
Add truthOriginLabel, truthTypeLabel, truthSourceLabel, truthVertexIndex and the matched PDG id for every jet constituent, following the ATLAS conventions. Constituents without an MC link get the origin label -1 and the vertex index -2.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds truth labels for every jet constituent in
ConstituentTruthLabels, based on the reco-MC link:truthOriginLabel: 2 Primary, 3 FromB, 4 FromBC, 5 FromC, 6 FromTau, 7 OtherSecondary, and -1 without an MC link.truthTypeLabel: 0 NoTruth, 1 Other, ±2 pion, ±3 kaon, 4 lambda, ±5 electron, ±6 muon, 7 photon, with the sign following the charge as in ATLAS.truthSourceLabel: 0 NoTruth, 1 NotSecondary, 3 StrangeMesonDecay, 4 StrangeBaryonDecay, 5 GammaConversion, taken from the direct parent. Heavy flavour decay products count as NotSecondary, their origin is given bytruthOriginLabel.truthVertexIndex: 0 for the MC primary vertex and 1, 2, ... for the other production vertices (merged within 0.1 mm, numbered per event), -2 without an MC link.truthPdgIdof the matched MC particle.The origin and vertex labels are based on
get_truthOrigin_clusterandget_truthVertex_clusterby @vincentriechers (truth-labelling). Compared to those, constituents without an MC link are no longer counted as OtherSecondary, the vertex numbering starts from the MC primary vertex and uses the ATLAS value -2 for missing truth, and the type and source labels are new.Delphes samples have no pileup, fake tracks or hadronic interactions, so those ATLAS classes never appear. The outputs are float arrays per jet, like the other
pfcand_*variables.Merge order
Merge this PR only after #551.
Testing
ctest: 57/57.