Commit e17344d0 authored by Chris Malena Delitzsch's avatar Chris Malena Delitzsch
Browse files

Removed fixed R=0.2 charged truth jets from derivations

parent 0d496eff
......@@ -137,10 +137,6 @@ def addTruthJets(kernel=None, decorationDressing=None):
# WZ Dressed Truth Jets - handle dressed case
from DerivationFrameworkJetEtMiss.JetCommon import addStandardJets
addStandardJets("AntiKt", 0.4, "TruthDressedWZ", ptmin=threshold, mods="truth_ungroomed", algseq=kernel, outputGroup="DFCommonMCTruthJets")
if not objKeyStore.isInInput( "xAOD::JetContainer","AntiKt2TruthChargedJets"):
# R=0.2 truth charged jets
from DerivationFrameworkJetEtMiss.JetCommon import addStandardJets
addStandardJets("AntiKt", 0.2, "TruthCharged", 5000, mods=truth_modifiers, algseq=kernel, outputGroup="DFCommonMCTruthJets")
if not objKeyStore.isInInput( "xAOD::JetContainer","AntiKtVR30Rmax4Rmin02TruthChargedJets"):
# VR truth jets
from DerivationFrameworkJetEtMiss.JetCommon import addStandardVRJets
......@@ -148,14 +144,6 @@ def addTruthJets(kernel=None, decorationDressing=None):
if not objKeyStore.isInInput( "xAOD::JetContainer","AntiKt10TruthJets") and not hasattr(kernel,'jetalgAntiKt10Truth'):
# AntiKt2 truth charged jets ghost association
from JetRec.JetRecConf import PseudoJetGetter
if not 'gakt2truthchargedget' in jtm.tools:
jtm += PseudoJetGetter("gakt2truthchargedget", # give a unique name
InputContainer = "AntiKt2TruthChargedJets", # SG key
Label = "GhostAntiKt2TruthChargedJets", # this is the name you'll use to retrieve associated ghosts
OutputContainer = "PseudoJetGhostAntiKt2TruthChargedJet",
SkipNegativeEnergy = True,
GhostScale = 1.e-20, # This makes the PseudoJet Ghosts, and thus the reco flow will treat them as so.
)
if not 'gaktvrtruthchargedget' in jtm.tools:
jtm += PseudoJetGetter("gaktvrtruthchargedget", # give a unique name
InputContainer = "AntiKtVR30Rmax4Rmin02TruthChargedJets", # SG key
......@@ -165,7 +153,7 @@ def addTruthJets(kernel=None, decorationDressing=None):
GhostScale = 1.e-20, # This makes the PseudoJet Ghosts, and thus the reco flow will treat them as so.
)
trackjetgetters = []
trackjetgetters += [jtm.gakt2truthchargedget, jtm.gaktvrtruthchargedget]
trackjetgetters += [jtm.gaktvrtruthchargedget]
truthgetters = [jtm.truthget]
truthgetters += trackjetgetters
flavorgetters = []
......
......@@ -55,17 +55,15 @@ TRUTH1SlimmingHelper.AppendToDictionary = {'TruthEvents':'xAOD::TruthEventContai
'TruthBosonsWithDecayVertices':'xAOD::TruthVertexContainer','TruthBosonsWithDecayVerticesAux':'xAOD::TruthVertexAuxContainer',
'TruthBSMWithDecayParticles':'xAOD::TruthParticleContainer','TruthBSMWithDecayParticlesAux':'xAOD::TruthParticleAuxContainer',
'TruthBSMWithDecayVertices':'xAOD::TruthVertexContainer','TruthBSMWithDecayVerticesAux':'xAOD::TruthVertexAuxContainer',
'AntiKt2TruthChargedJets':'xAOD::JetContainer','AntiKt2TruthChargedJetsAux':'xAOD::JetAuxContainer',
'AntiKt4TruthDressedWZJets':'xAOD::JetContainer','AntiKt4TruthDressedWZJetsAux':'xAOD::JetAuxContainer',
'AntiKt10TruthJets':'xAOD::JetContainer','AntiKt10TruthJetsAux':'xAOD::JetAuxContainer',
'AntiKt10TruthTrimmedPtFrac5SmallR20Jets':'xAOD::JetContainer','AntiKt10TruthTrimmedPtFrac5SmallR20JetsAux':'xAOD::JetAuxContainer',
'AntiKtVR30Rmax4Rmin02TruthChargedJets':'xAOD::JetContainer','AntiKtVR30Rmax4Rmin02TruthChargedJetsAux':'xAOD::JetAuxContainer'
}
# Custom extra variables -- won't be overridden by the call below, just added to. Full lists for completeness.
TRUTH1SlimmingHelper.ExtraVariables = ["AntiKt2TruthChargedJets.GhostHBosonsCount.GhostHBosonsPt.GhostBHadronsFinalCount.GhostBHadronsFinalPt.GhostCHadronsFinalCount.HadronConeExclTruthLabelID.ConeTruthLabelID.PartonTruthLabelID.TruthLabelDeltaR_B.TruthLabelDeltaR_C.TruthLabelDeltaR_T.ConeExclBHadronsFinal.ConeExclCHadronsFinal.ConeExclTausFinal.constituentLinks",
"AntiKtVR30Rmax4Rmin02TruthChargedJets.GhostCHadronsFinalCount.GhostBHadronsFinalCount.pt.HadronConeExclTruthLabelID.ConeTruthLabelID.PartonTruthLabelID.TrueFlavor",
TRUTH1SlimmingHelper.ExtraVariables = ["AntiKtVR30Rmax4Rmin02TruthChargedJets.GhostCHadronsFinalCount.GhostBHadronsFinalCount.pt.HadronConeExclTruthLabelID.ConeTruthLabelID.PartonTruthLabelID.TrueFlavor",
"AntiKt4TruthDressedWZJets.GhostCHadronsFinalCount.GhostBHadronsFinalCount.pt.HadronConeExclTruthLabelID.ConeTruthLabelID.PartonTruthLabelID.TruthLabelDeltaR_B.TruthLabelDeltaR_C.TruthLabelDeltaR_T.ConeExclBHadronsFinal.ConeExclCHadronsFinal.ConeExclTausFinal.constituentLinks",
"AntiKt10TruthJets.pt.GhostAntiKt2TruthChargedJets.GhostAntiKtVR30Rmax4Rmin02TruthChargedJets",
"AntiKt10TruthJets.pt.GhostAntiKtVR30Rmax4Rmin02TruthChargedJets",
"AntiKt10TruthTrimmedPtFrac5SmallR20Jets.pt.Parent.Tau1_wta.Tau2_wta.Tau3_wta.constituentLinks.D2"]
# Add standard content
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment