ATLAS Offline Software
Functions
TLACommonConfig Namespace Reference

Functions

def TLACommonAugmentationsCfg (ConfigFlags, **kwargs)
 
def addTLATruth3ContentToSlimmerTool (slimmer)
 

Function Documentation

◆ addTLATruth3ContentToSlimmerTool()

def TLACommonConfig.addTLATruth3ContentToSlimmerTool (   slimmer)

Definition at line 108 of file TLACommonConfig.py.

109  slimmer.AllVariables += [
110  # "MET_Truth",
111  "TruthElectrons",
112  "TruthMuons",
113  "TruthPhotons",
114  "TruthTaus",
115  "TruthNeutrinos",
116  "TruthBSM",
117  "TruthBottom",
118  "TruthTop",
119  "TruthBoson",
120  "TruthBosonsWithDecayParticles",
121  "TruthBosonsWithDecayVertices",
122  "TruthBSMWithDecayParticles",
123  "TruthBSMWithDecayVertices",
124  ]
125  slimmer.ExtraVariables += [
126  "AntiKt4TruthDressedWZJets.GhostCHadronsFinalCount.GhostBHadronsFinalCount.pt.HadronConeExclTruthLabelID.PartonTruthLabelID.TrueFlavor",
127  "TruthEvents.Q.XF1.XF2.PDGID1.PDGID2.PDFID1.PDFID2.X1.X2.crossSection"]

◆ TLACommonAugmentationsCfg()

def TLACommonConfig.TLACommonAugmentationsCfg (   ConfigFlags,
**  kwargs 
)
Configure the common augmentation

Definition at line 12 of file TLACommonConfig.py.

12 def TLACommonAugmentationsCfg(ConfigFlags,**kwargs):
13  """Configure the common augmentation"""
14  acc = ComponentAccumulator()
15 
16  # MC truth
17  if ConfigFlags.Input.isMC:
18  from DerivationFrameworkMCTruth.MCTruthCommonConfig import (
19  # AddStandardTruthContentsCfg,
20  AddHFAndDownstreamParticlesCfg,
21  AddMiniTruthCollectionLinksCfg,
22  AddPVCollectionCfg,
23  AddTruthCollectionNavigationDecorationsCfg)
24  from DerivationFrameworkTLA.TLACommonConfigFunctions import AddStandardTLATruthContentsCfg
25  from DerivationFrameworkMCTruth.TruthDerivationToolsConfig import TruthCollectionMakerCfg
26  TLACommonTruthCharmTool = acc.getPrimaryAndMerge(TruthCollectionMakerCfg(
27  ConfigFlags,
28  name = "TLACommonTruthCharmTool",
29  NewCollectionName = "TruthCharm",
30  KeepNavigationInfo = False,
31  ParticleSelectionString = "(abs(TruthParticles.pdgId) == 4)",
32  Do_Compress = True))
33  CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
34  acc.addEventAlgo(CommonAugmentation("TLACommonTruthCharmKernel",AugmentationTools=[TLACommonTruthCharmTool]))
35  acc.merge(AddHFAndDownstreamParticlesCfg(ConfigFlags))
36  acc.merge(AddStandardTLATruthContentsCfg(ConfigFlags, useTLAPostJetAugmentations=True))
38  ConfigFlags,
39  TruthCollections=["TruthElectrons",
40  "TruthMuons",
41  "TruthPhotons",
42  "TruthTaus",
43  "TruthNeutrinos",
44  "TruthBSM",
45  "TruthBottom",
46  "TruthTop",
47  "TruthBoson",
48  "TruthCharm",
49  "TruthHFWithDecayParticles"],
50  prefix = 'PHYS_'))
51  # Re-point links on reco objects
52  acc.merge(AddMiniTruthCollectionLinksCfg(ConfigFlags))
53  acc.merge(AddPVCollectionCfg(ConfigFlags))
54 
55  # Muon common augmentations
56  from DerivationFrameworkMuons.MuonsCommonConfig import MuonsCommonCfg
57  acc.merge(MuonsCommonCfg(ConfigFlags))
58 
59  # InDet common augmentations
60  from DerivationFrameworkInDet.InDetCommonConfig import InDetCommonCfg
61 
62  acc.merge(InDetCommonCfg(ConfigFlags,
63  DoVertexFinding = ConfigFlags.Tracking.doVertexFinding,
64  AddPseudoTracks = ConfigFlags.Tracking.doPseudoTracking and ConfigFlags.GeoModel.Run<=LHCPeriod.Run3,
65  DecoLRTTTVA = False,
66  DoR3LargeD0 = ConfigFlags.Tracking.doLargeD0,
67  StoreSeparateLargeD0Container = ConfigFlags.Tracking.storeSeparateLargeD0Container,
68  MergeLRT = False))
69 
70  # Egamma common augmentations
71  from DerivationFrameworkEGamma.EGammaCommonConfig import EGammaCommonCfg
72  acc.merge(EGammaCommonCfg(ConfigFlags))
73 
74  # Jets, flavour tagging
75  from DerivationFrameworkTLA.TLACommonConfigFunctions import TLAJetCommonCfg
76  from DerivationFrameworkFlavourTag.FtagDerivationConfig import FtagJetCollectionsCfg, HLTJetFTagDecorationCfg
77  acc.merge(TLAJetCommonCfg(ConfigFlags))
78  if ConfigFlags.Input.isMC and ConfigFlags.Trigger.EDMVersion == 3:
79  acc.merge(HLTJetFTagDecorationCfg(ConfigFlags))
80 
81  FTagJetColl = ['AntiKt4EMPFlowJets']
82  if ConfigFlags.GeoModel.Run >= LHCPeriod.Run4:
83  FTagJetColl.append('AntiKt4EMTopoJets')
84  acc.merge(FtagJetCollectionsCfg(ConfigFlags,FTagJetColl))
85 
86  # Trigger matching (from PhysCommonConfig.py)
87  if ConfigFlags.Reco.EnableTrigger or ConfigFlags.Trigger.triggerConfig == 'INFILE':
88  from DerivationFrameworkPhys.TriggerMatchingCommonConfig import TriggerMatchingCommonRun2Cfg
89  from DerivationFrameworkPhys.TriggerMatchingCommonConfig import TriggerMatchingCommonRun3Cfg
90  # requires some wrangling due to the difference between run 2 and 3
91  triggerListsHelper = kwargs['TriggerListsHelper']
92  if ConfigFlags.Trigger.EDMVersion == 2:
93  acc.merge(TriggerMatchingCommonRun2Cfg(ConfigFlags,
94  name = "TLACommonTrigMatchNoTau",
95  OutputContainerPrefix = "TrigMatch_",
96  ChainNames = triggerListsHelper.Run2TriggerNamesNoTau))
97  acc.merge(TriggerMatchingCommonRun2Cfg(ConfigFlags,
98  name = "TLACommonTrigMatchTau",
99  OutputContainerPrefix = "TrigMatch_",
100  ChainNames = triggerListsHelper.Run2TriggerNamesTau,
101  DRThreshold = 0.2))
102  if ConfigFlags.Trigger.EDMVersion == 3:
103  acc.merge(TriggerMatchingCommonRun3Cfg(ConfigFlags, TriggerList = triggerListsHelper.Run3TriggerNames))
104 
105  return acc
106 
107 
python.TriggerMatchingCommonConfig.TriggerMatchingCommonRun2Cfg
def TriggerMatchingCommonRun2Cfg(flags, name, **kwargs)
Definition: TriggerMatchingCommonConfig.py:91
python.FtagDerivationConfig.HLTJetFTagDecorationCfg
def HLTJetFTagDecorationCfg(cfgFlags)
Definition: FtagDerivationConfig.py:88
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.FtagDerivationConfig.FtagJetCollectionsCfg
def FtagJetCollectionsCfg(cfgFlags, jet_cols, pv_cols=None, trackAugmenterPrefix=None)
Definition: FtagDerivationConfig.py:33
python.MCTruthCommonConfig.AddMiniTruthCollectionLinksCfg
def AddMiniTruthCollectionLinksCfg(flags, **kwargs)
Definition: MCTruthCommonConfig.py:427
python.MCTruthCommonConfig.AddPVCollectionCfg
def AddPVCollectionCfg(flags)
Definition: MCTruthCommonConfig.py:315
TLACommonConfig.addTLATruth3ContentToSlimmerTool
def addTLATruth3ContentToSlimmerTool(slimmer)
Definition: TLACommonConfig.py:108
python.TruthDerivationToolsConfig.TruthCollectionMakerCfg
def TruthCollectionMakerCfg(flags, name, **kwargs)
Definition: TruthDerivationToolsConfig.py:19
python.EGammaCommonConfig.EGammaCommonCfg
def EGammaCommonCfg(ConfigFlags)
Definition: EGammaCommonConfig.py:15
python.MuonsCommonConfig.MuonsCommonCfg
def MuonsCommonCfg(flags, suff="")
Definition: MuonsCommonConfig.py:13
TLACommonConfig.TLACommonAugmentationsCfg
def TLACommonAugmentationsCfg(ConfigFlags, **kwargs)
Definition: TLACommonConfig.py:12
python.MCTruthCommonConfig.AddHFAndDownstreamParticlesCfg
def AddHFAndDownstreamParticlesCfg(flags, **kwargs)
Add electrons, photons, and their downstream particles in a special collection def addEgammaAndDownst...
Definition: MCTruthCommonConfig.py:292
python.MCTruthCommonConfig.AddTruthCollectionNavigationDecorationsCfg
def AddTruthCollectionNavigationDecorationsCfg(flags, TruthCollections=[], prefix='')
Definition: MCTruthCommonConfig.py:331
TLACommonConfigFunctions.AddStandardTLATruthContentsCfg
def AddStandardTLATruthContentsCfg(flags, decorationDressing='dressedPhoton', includeTausInDressingPhotonRemoval=False, prefix='', useTLAPostJetAugmentations=True)
Definition: TLACommonConfigFunctions.py:107
TLACommonConfigFunctions.TLAJetCommonCfg
def TLAJetCommonCfg(ConfigFlags)
These jet related functions are a copy of the ones in the JetCommonConfig file but we remove the jet ...
Definition: TLACommonConfigFunctions.py:16
python.TriggerMatchingCommonConfig.TriggerMatchingCommonRun3Cfg
def TriggerMatchingCommonRun3Cfg(flags, **kwargs)
Definition: TriggerMatchingCommonConfig.py:129
python.InDetCommonConfig.InDetCommonCfg
def InDetCommonCfg(flags, **kwargs)
Definition: InDetCommonConfig.py:16