281 stream_name =
'StreamDAOD_MUON1'
287 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
288 MUON1TriggerListsHelper = TriggerListsHelper(flags)
293 acc.merge(
MUON1KernelCfg(flags, name=
"MUON1Kernel", StreamName = stream_name, TriggerListsHelper = MUON1TriggerListsHelper))
296 from LeptonTaggers.LeptonTaggersConfig
import DecoratePLITAlgsCfg
302 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
303 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
304 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
306 isoCones = [f
"pt{cone}cone{size}_Nonprompt_All_MaxWeightTTVA_pt{pt}" for cone
in [
"",
"var"]
for size
in range(20,50,10)
for pt
in [500, 1000] ]
307 isoCones += [f
"{cone}{size}" for cone
in [
"topoetcone",
"neflowisol"]
for size
in range(20,50,10)]
309 decorationsID = [
"TTVA_AMVFVertices" ,
"TTVA_AMVFWeights",
"vx",
"vy",
"vz"]
311 decoartionsMuon = [
"EnergyLossSigma"]
313 decorationsID += isoCones
314 decorationsME += isoCones
315 CaloDeposDecors = [
"CaloDeposits",
"CaloElosses",
"CaloDepType"]
316 decorationsID += CaloDeposDecors
317 decoartionsMuon += CaloDeposDecors
318 tpExtrapolations = [
"EtaTriggerPivot",
"PhiTriggerPivot",
"DecoratedPivotEtaPhi"]
319 decorationsID += tpExtrapolations
320 decoartionsMuon += tpExtrapolations
323 MUON1SlimmingHelper =
SlimmingHelper(
"MUON1SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
324 MUON1SlimmingHelper.SmartCollections = [
"EventInfo",
329 "InDetTrackParticles",
331 "AntiKt4EMPFlowJets",
332 "BTagging_AntiKt4EMPFlow",
333 "BTagging_AntiKtVR30Rmax4Rmin02Track",
334 "MET_Baseline_AntiKt4EMTopo",
335 "MET_Baseline_AntiKt4EMPFlow",
340 "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
341 "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets",
342 "AntiKtVR30Rmax4Rmin02PV0TrackJets",
345 excludedVertexAuxData =
"-vxTrackAtVertex.-MvfFitInfo.-isInitialized.-VTAV"
347 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Tight_Vertices"]
348 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Tight_VerticesAux." + excludedVertexAuxData]
349 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Medium_Vertices"]
350 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Medium_VerticesAux." + excludedVertexAuxData]
351 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Loose_Vertices"]
352 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Loose_VerticesAux." + excludedVertexAuxData]
353 StaticContent += [
"xAOD::VertexContainer#Muon1JpsiCandidates"]
354 StaticContent += [
"xAOD::VertexAuxContainer#Muon1JpsiCandidatesAux."+excludedVertexAuxData]
355 StaticContent += [
"CaloCellContainer#DFMUONCellContainer"]
356 StaticContent += [
"CaloClusterCellLinkContainer#MuonClusterCollection_links"]
358 MUON1SlimmingHelper.StaticContent = StaticContent
360 from IsolationSelection.IsolationSelectionConfig
import setupIsoCloseBySlimmingVariables
363 MUON1SlimmingHelper.ExtraVariables += [
"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",
364 "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",
365 "TruthPrimaryVertices.t.x.y.z",
366 "PrimaryVertices.trackWeights",
367 "MuonSegments.chiSquared.numberDoF.nPrecisionHits.x.y.z",
368 "Muons." +
".".
join(decoartionsMuon),
369 "InDetTrackParticles."+
".".
join(decorationsID),
370 "ExtrapolatedMuonTrackParticles." +
".".
join(decorationsME),
371 "CaloCalTopoClusters.calE.calEta.calM.calPhi.e_sampl.rawM.rawPhi.rawEta.rawE",
372 "EventInfo.GenFiltHT.GenFiltMET.GenFiltHTinclNu.GenFiltPTZ.GenFiltFatJ",
373 "TauJets.dRmax.etOverPtLeadTrk",
374 "TauJets_MuonRM.dRmax.etOverPtLeadTrk",
375 "CombinedMuonTrackParticles.vx.vy.vz",
376 "MuonSpectrometerTrackParticles.vx.vy.vz",
377 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET.ex.ey",
378 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_mht.ex.ey"]
381 from LeptonTaggers.LeptonTaggersConfig
import GetExtraPLITVariablesForDxAOD
386 MUON1SlimmingHelper.AllVariables += [
"TruthEvents",
"TruthParticles",
"TruthVertices",
"MuonTruthParticles"]
388 MUON1SlimmingHelper.AllVariables += [
"MuonClusterCollection"]
391 MUON1SlimmingHelper.IncludeTriggerNavigation =
False
392 MUON1SlimmingHelper.IncludeJetTriggerContent =
False
393 MUON1SlimmingHelper.IncludeMuonTriggerContent =
True
394 MUON1SlimmingHelper.IncludeEGammaTriggerContent =
False
395 MUON1SlimmingHelper.IncludeTauTriggerContent =
False
396 MUON1SlimmingHelper.IncludeEtMissTriggerContent =
False
397 MUON1SlimmingHelper.IncludeBJetTriggerContent =
False
398 MUON1SlimmingHelper.IncludeBPhysTriggerContent =
True
399 MUON1SlimmingHelper.IncludeMinBiasTriggerContent =
False
403 if flags.Trigger.EDMVersion == 2:
404 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
406 OutputContainerPrefix =
"TrigMatch_",
407 TriggerList = MUON1TriggerListsHelper.Run2TriggerNamesTau)
409 OutputContainerPrefix =
"TrigMatch_",
410 TriggerList = MUON1TriggerListsHelper.Run2TriggerNamesNoTau)
413 from DerivationFrameworkMuons.MuonsExtraTriggerConfig
import MuonExtraTriggerHelper
414 ExtraHelper = MuonExtraTriggerHelper(flags,MUON1TriggerListsHelper)
415 acc.merge(ExtraHelper.Run2MatchAugmentationCfg(flags))
416 ExtraHelper.AddRun2MatchingToSlimmingHelper(SlimmingHelper = MUON1SlimmingHelper,
417 OutputContainerPrefix =
"TrigMatch_")
420 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
421 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
425 MUON1ItemList = MUON1SlimmingHelper.GetItemList()
426 acc.merge(
OutputStreamCfg(flags,
"DAOD_MUON1", ItemList=MUON1ItemList, AcceptAlgs=[
"MUON1Kernel"]))
427 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_MUON1", AcceptAlgs=[
"MUON1Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData, MetadataCategory.TruthMetaData]))