112 stream_name =
'StreamDAOD_TLA0'
119 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
120 TLA0TriggerListsHelper = TriggerListsHelper(flags)
124 acc.merge(
TLA0KernelCfg(flags, name=
"TLA0Kernel", StreamName = stream_name, TriggerListsHelper = TLA0TriggerListsHelper))
129 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
130 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
131 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
133 TLA0SlimmingHelper =
SlimmingHelper(
"TLA0SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
135 TLA0SlimmingHelper.SmartCollections = [
142 "AntiKt4EMPFlowJets",
143 "BTagging_AntiKt4EMPFlow",
148 TLA0SlimmingHelper.ExtraVariables += [
149 "AntiKt4EMTopoJets.DFCommonJets_QGTagger_truthjet_nCharged.DFCommonJets_QGTagger_truthjet_pt.DFCommonJets_QGTagger_truthjet_eta.DFCommonJets_QGTagger_NTracks.DFCommonJets_QGTagger_TracksWidth.DFCommonJets_QGTagger_TracksC1.ConeExclBHadronsFinal.ConeExclCHadronsFinal.GhostBHadronsFinal.GhostCHadronsFinal.GhostBHadronsFinalCount.GhostBHadronsFinalPt.GhostCHadronsFinalCount.GhostCHadronsFinalPt",
151 "AntiKt4EMPFlowJets.DFCommonJets_QGTagger_truthjet_nCharged.DFCommonJets_QGTagger_truthjet_pt.DFCommonJets_QGTagger_truthjet_eta.DFCommonJets_QGTagger_NTracks.DFCommonJets_QGTagger_TracksWidth.DFCommonJets_QGTagger_TracksC1.ConeExclBHadronsFinal.ConeExclCHadronsFinal.GhostBHadronsFinal.GhostCHadronsFinal.GhostBHadronsFinalCount.GhostBHadronsFinalPt.GhostCHadronsFinalCount.GhostCHadronsFinalPt",
153 "TruthPrimaryVertices.t.x.y.z",
155 "EventInfo.hardScatterVertexLink.timeStampNSOffset",
158 TLA0SlimmingHelper.ExtraVariables += [
159 "AntiKt4EMTopoJets.DFCommonJets_QGTagger_NTracks.DFCommonJets_QGTagger_TracksWidth.DFCommonJets_QGTagger_TracksC1",
161 "AntiKt4EMPFlowJets.DFCommonJets_QGTagger_NTracks.DFCommonJets_QGTagger_TracksWidth.DFCommonJets_QGTagger_TracksC1",
163 "EventInfo.hardScatterVertexLink.timeStampNSOffset",
166 TLA0SlimmingHelper.AllVariables = [
168 "Kt4EMTopoOriginEventShape",
"Kt4EMPFlowEventShape",
169 "Kt4EMPFlowPUSBEventShape",
"Kt4EMPFlowNeutEventShape",
176 L1Calo_eEM_postfix =
""
178 TLA0SlimmingHelper.AppendToDictionary.update(
179 {
"L1_eEMRoI"+L1Calo_eEM_postfix :
"xAOD::eFexEMRoIContainer",
180 "L1_eEMRoI"+L1Calo_eEM_postfix+
"Aux" :
"xAOD::eFexEMRoIAuxContainer"})
182 TLA0SlimmingHelper.AllVariables += [
"L1_eEMRoI"+L1Calo_eEM_postfix]
188 from DerivationFrameworkTLA.TLACommonConfig
import addTLATruth3ContentToSlimmerTool
190 TLA0SlimmingHelper.AllVariables += [
191 'TruthHFWithDecayParticles',
192 'TruthHFWithDecayVertices',
194 'TruthPileupParticles',
195 'InTimeAntiKt4TruthJets',
196 'OutOfTimeAntiKt4TruthJets',
198 TLA0SlimmingHelper.ExtraVariables += [
199 "Electrons.TruthLink",
204 TLA0SlimmingHelper.SmartCollections += [
"AntiKt4TruthWZJets"]
205 TLA0SlimmingHelper.AllVariables += [
"AntiKt4TruthJets",
"AntiKt4TruthDressedWZJets"]
209 TLA0SlimmingHelper.IncludeTriggerNavigation =
True
210 TLA0SlimmingHelper.IncludeJetTriggerContent =
True
211 TLA0SlimmingHelper.IncludeMuonTriggerContent =
False
212 TLA0SlimmingHelper.IncludeTrackingTriggerContent =
True
213 TLA0SlimmingHelper.IncludeEGammaTriggerContent =
True
214 TLA0SlimmingHelper.IncludeTauTriggerContent =
False
215 TLA0SlimmingHelper.IncludeEtMissTriggerContent =
False
216 TLA0SlimmingHelper.IncludeBJetTriggerContent =
True
217 TLA0SlimmingHelper.IncludeBPhysTriggerContent =
False
218 TLA0SlimmingHelper.IncludeMinBiasTriggerContent =
False
219 TLA0SlimmingHelper.OverrideJetTriggerContentWithTLAContent =
True
223 if flags.Trigger.EDMVersion == 2:
224 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
226 OutputContainerPrefix =
"TrigMatch_",
227 TriggerList = TLA0TriggerListsHelper.Run2TriggerNamesTau)
229 OutputContainerPrefix =
"TrigMatch_",
230 TriggerList = TLA0TriggerListsHelper.Run2TriggerNamesNoTau)
232 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
233 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
237 TLA0ItemList = TLA0SlimmingHelper.GetItemList()
238 acc.merge(
OutputStreamCfg(flags,
"DAOD_TLA0", ItemList=TLA0ItemList, AcceptAlgs=[
"TLA0Kernel"]))
239 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_TLA0", AcceptAlgs=[
"TLA0Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData, MetadataCategory.TruthMetaData]))