194 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
195 JETM7TriggerListsHelper = TriggerListsHelper(flags)
198 acc.merge(
JETM7KernelCfg(flags, name=
"JETM7Kernel", StreamName =
'StreamDAOD_JETM7', TriggerListsHelper = JETM7TriggerListsHelper))
203 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
204 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
205 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
207 JETM7SlimmingHelper =
SlimmingHelper(
"JETM7SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
209 JETM7SlimmingHelper.SmartCollections = [
"Electrons",
"Photons",
"Muons",
211 "InDetTrackParticles",
212 "AntiKt4EMPFlowJets",
217 JETM7SlimmingHelper.ExtraVariables = [
"InDetTrackParticles.TTVA_AMVFVertices.TTVA_AMVFWeights"]
222 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
225 JETM7SlimmingHelper.AppendToDictionary.update({
'TruthParticles':
'xAOD::TruthParticleContainer',
226 'TruthParticlesAux':
'xAOD::TruthParticleAuxContainer'})
228 JETM7SlimmingHelper.SmartCollections += [
"AntiKt4TruthWZJets"]
230 JETM7SlimmingHelper.AllVariables += [
"TruthTopQuarkWithDecayParticles",
"TruthTopQuarkWithDecayVertices",
231 "AntiKt4TruthJets",
"InTimeAntiKt4TruthJets",
"OutOfTimeAntiKt4TruthJets",
"TruthParticles",
232 "TruthVertices",
"TruthEvents"]
233 JETM7SlimmingHelper.ExtraVariables += [
"InDetTrackParticles.truthMatchProbability",
"TruthVertices.barcode.z"]
237 JETM7SlimmingHelper.IncludeTriggerNavigation =
True
238 JETM7SlimmingHelper.IncludeJetTriggerContent =
False
239 JETM7SlimmingHelper.IncludeMuonTriggerContent =
False
240 JETM7SlimmingHelper.IncludeEGammaTriggerContent =
False
241 JETM7SlimmingHelper.IncludeTauTriggerContent =
False
242 JETM7SlimmingHelper.IncludeEtMissTriggerContent =
False
243 JETM7SlimmingHelper.IncludeBJetTriggerContent =
False
244 JETM7SlimmingHelper.IncludeBPhysTriggerContent =
False
245 JETM7SlimmingHelper.IncludeMinBiasTriggerContent =
False
249 if flags.Trigger.EDMVersion == 2:
250 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
252 OutputContainerPrefix =
"TrigMatch_",
253 TriggerList = JETM7TriggerListsHelper.Run2TriggerNamesTau)
255 OutputContainerPrefix =
"TrigMatch_",
256 TriggerList = JETM7TriggerListsHelper.Run2TriggerNamesNoTau)
258 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
259 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
262 jetOutputList = [
"AntiKt4EMPFlowByVertexJets"]
263 from DerivationFrameworkJetEtMiss.JetCommonConfig
import addJetsToSlimmingTool
267 JETM7ItemList = JETM7SlimmingHelper.GetItemList()
268 acc.merge(
OutputStreamCfg(flags,
"DAOD_JETM7", ItemList=JETM7ItemList, AcceptAlgs=[
"JETM7Kernel"]))
269 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_JETM7", AcceptAlgs=[
"JETM7Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))