8 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
9 from AthenaConfiguration.ComponentFactory
import CompFactory
12 from DerivationFrameworkJetEtMiss.JetCommonConfig
import AddBadBatmanCfg, AddDistanceInTrainCfg, AddSidebandEventShapeCfg, AddEventCleanFlagsCfg
17 """TLA config for jet reconstruction and decorations"""
24 if "McEventCollection#GEN_EVENT" not in ConfigFlags.Input.TypedCollections:
33 """Standard (offline) jets needed for TLA derivations"""
35 from JetRecConfig.StandardSmallRJets
import AntiKt4EMTopo,AntiKt4EMPFlow
36 from JetRecConfig.JetRecConfig
import JetRecCfg
40 AntiKt4EMTopo_deriv = AntiKt4EMTopo.clone(
41 modifiers = AntiKt4EMTopo.modifiers+(
"JetPtAssociation",
"QGTagging")
44 AntiKt4EMPFlow_deriv = AntiKt4EMPFlow.clone(
45 modifiers = AntiKt4EMPFlow.modifiers+(
"JetPtAssociation",
"QGTagging",
"fJVT",
"NNJVT",
"CaloEnergiesClus")
48 jetList = [AntiKt4EMTopo_deriv, AntiKt4EMPFlow_deriv]
58 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import (HepMCtoXAODTruthCfg, PreJetMCTruthAugmentationsCfg, PostJetMCTruthAugmentationsCfg, AddTruthCollectionNavigationDecorationsCfg, AddBosonsAndDownstreamParticlesCfg, AddBSMAndDownstreamParticlesCfg, AddTruthEnergyDensityCfg)
63 from JetRecConfig.StandardSmallRJets
import AntiKt4Truth,AntiKt4TruthWZ,AntiKt4TruthDressedWZ
64 from JetRecConfig.JetRecConfig
import JetRecCfg
67 jetList = [AntiKt4Truth,AntiKt4TruthWZ,AntiKt4TruthDressedWZ]
80 from DerivationFrameworkTau.TauTruthCommonConfig
import TauTruthToolsCfg
82 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import DFCommonTruthTauDressingToolCfg
86 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import DFCommonTruthDressedWZQGLabelToolCfg
90 from DerivationFrameworkSUSY.DecorateSUSYProcessConfig
import IsSUSYSignalRun3
92 from DerivationFrameworkSUSY.DecorateSUSYProcessConfig
import SUSYSignalTaggerCfg
93 augmentationToolsList += [acc.getPrimaryAndMerge(
SUSYSignalTaggerCfg(flags,
'MCTruthCommon'))]
95 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
96 acc.addEventAlgo(CommonAugmentation(name =
"MCTruthCommonPostJetKernel",
97 AugmentationTools = augmentationToolsList))
101 from DerivationFrameworkSUSY.SUSYWeightMetadataConfig
import AddSUSYWeightsCfg
108 decorationDressing='dressedPhoton',
109 includeTausInDressingPhotonRemoval=False,
112 useTLAPostJetAugmentations=True):
121 if "McEventCollection#GEN_EVENT" in flags.Input.TypedCollections: isEVNT =
True
129 if not useTLAPostJetAugmentations:
134 if includeTausInDressingPhotonRemoval:
135 acc.getPublicTool(
"DFCommonTruthTauDressingTool").decorationName=decorationDressing
136 acc.addEventAlgo(CompFactory.DerivationFramework.LockDecorations(name =
"AddStandardTLATruthContentsLockDecoration", Decorations = [
'TruthParticles.' + decorationDressing]))
139 acc.merge(
AddTruthCollectionNavigationDecorationsCfg(flags, [
"TruthElectrons",
"TruthMuons",
"TruthPhotons",
"TruthTaus",
"TruthNeutrinos",
"TruthBSM",
"TruthBottom",
"TruthTop",
"TruthBoson"], prefix=prefix))