278 stream_name =
'StreamDAOD_MUON1'
284 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
285 MUON1TriggerListsHelper = TriggerListsHelper(flags)
290 acc.merge(
MUON1KernelCfg(flags, name=
"MUON1Kernel", StreamName = stream_name, TriggerListsHelper = MUON1TriggerListsHelper))
293 from LeptonTaggers.LeptonTaggersConfig
import DecoratePLITAlgsCfg
299 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
300 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
301 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
303 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] ]
304 isoCones += [f
"{cone}{size}" for cone
in [
"topoetcone",
"neflowisol"]
for size
in range(20,50,10)]
306 decorationsID = [
"TTVA_AMVFVertices" ,
"TTVA_AMVFWeights",
"vx",
"vy",
"vz"]
308 decoartionsMuon = [
"EnergyLossSigma"]
310 decorationsID += isoCones
311 decorationsME += isoCones
312 CaloDeposDecors = [
"CaloDeposits",
"CaloElosses",
"CaloDepType"]
313 decorationsID += CaloDeposDecors
314 decoartionsMuon += CaloDeposDecors
315 tpExtrapolations = [
"EtaTriggerPivot",
"PhiTriggerPivot",
"DecoratedPivotEtaPhi"]
316 decorationsID += tpExtrapolations
317 decoartionsMuon += tpExtrapolations
320 MUON1SlimmingHelper =
SlimmingHelper(
"MUON1SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
321 MUON1SlimmingHelper.SmartCollections = [
"EventInfo",
326 "InDetTrackParticles",
328 "AntiKt4EMPFlowJets",
329 "BTagging_AntiKt4EMPFlow",
330 "BTagging_AntiKtVR30Rmax4Rmin02Track",
331 "MET_Baseline_AntiKt4EMTopo",
332 "MET_Baseline_AntiKt4EMPFlow",
337 "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
338 "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets",
339 "AntiKtVR30Rmax4Rmin02PV0TrackJets",
342 excludedVertexAuxData =
"-vxTrackAtVertex.-MvfFitInfo.-isInitialized.-VTAV"
344 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Tight_Vertices"]
345 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Tight_VerticesAux." + excludedVertexAuxData]
346 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Medium_Vertices"]
347 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Medium_VerticesAux." + excludedVertexAuxData]
348 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Loose_Vertices"]
349 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Loose_VerticesAux." + excludedVertexAuxData]
350 StaticContent += [
"xAOD::VertexContainer#Muon1JpsiCandidates"]
351 StaticContent += [
"xAOD::VertexAuxContainer#Muon1JpsiCandidatesAux."+excludedVertexAuxData]
352 StaticContent += [
"CaloCellContainer#DFMUONCellContainer"]
353 StaticContent += [
"CaloClusterCellLinkContainer#MuonClusterCollection_links"]
355 MUON1SlimmingHelper.StaticContent = StaticContent
357 from IsolationSelection.IsolationSelectionConfig
import setupIsoCloseBySlimmingVariables
360 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",
361 "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",
362 "TruthPrimaryVertices.t.x.y.z",
363 "PrimaryVertices.trackWeights",
364 "MuonSegments.chiSquared.numberDoF.nPrecisionHits.x.y.z",
365 "Muons." +
".".
join(decoartionsMuon),
366 "InDetTrackParticles."+
".".
join(decorationsID),
367 "ExtrapolatedMuonTrackParticles." +
".".
join(decorationsME),
368 "CaloCalTopoClusters.calE.calEta.calM.calPhi.e_sampl.rawM.rawPhi.rawEta.rawE",
369 "EventInfo.GenFiltHT.GenFiltMET.GenFiltHTinclNu.GenFiltPTZ.GenFiltFatJ",
370 "TauJets.dRmax.etOverPtLeadTrk",
371 "TauJets_MuonRM.dRmax.etOverPtLeadTrk",
372 "CombinedMuonTrackParticles.vx.vy.vz",
373 "MuonSpectrometerTrackParticles.vx.vy.vz",
374 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET.ex.ey",
375 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_mht.ex.ey"]
378 from LeptonTaggers.LeptonTaggersConfig
import GetExtraPLITVariablesForDxAOD
383 MUON1SlimmingHelper.AllVariables += [
"TruthEvents",
"TruthParticles",
"TruthVertices",
"MuonTruthParticles"]
385 MUON1SlimmingHelper.AllVariables += [
"MuonClusterCollection"]
388 MUON1SlimmingHelper.IncludeTriggerNavigation =
False
389 MUON1SlimmingHelper.IncludeJetTriggerContent =
False
390 MUON1SlimmingHelper.IncludeMuonTriggerContent =
True
391 MUON1SlimmingHelper.IncludeEGammaTriggerContent =
False
392 MUON1SlimmingHelper.IncludeTauTriggerContent =
False
393 MUON1SlimmingHelper.IncludeEtMissTriggerContent =
False
394 MUON1SlimmingHelper.IncludeBJetTriggerContent =
False
395 MUON1SlimmingHelper.IncludeBPhysTriggerContent =
True
396 MUON1SlimmingHelper.IncludeMinBiasTriggerContent =
False
400 if flags.Trigger.EDMVersion == 2:
401 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
403 OutputContainerPrefix =
"TrigMatch_",
404 TriggerList = MUON1TriggerListsHelper.Run2TriggerNamesTau)
406 OutputContainerPrefix =
"TrigMatch_",
407 TriggerList = MUON1TriggerListsHelper.Run2TriggerNamesNoTau)
410 from DerivationFrameworkMuons.MuonsExtraTriggerConfig
import MuonExtraTriggerHelper
411 ExtraHelper = MuonExtraTriggerHelper(flags,MUON1TriggerListsHelper)
412 acc.merge(ExtraHelper.Run2MatchAugmentationCfg(flags))
413 ExtraHelper.AddRun2MatchingToSlimmingHelper(SlimmingHelper = MUON1SlimmingHelper,
414 OutputContainerPrefix =
"TrigMatch_")
417 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
418 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
422 MUON1ItemList = MUON1SlimmingHelper.GetItemList()
423 acc.merge(
OutputStreamCfg(flags,
"DAOD_MUON1", ItemList=MUON1ItemList, AcceptAlgs=[
"MUON1Kernel"]))
424 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_MUON1", AcceptAlgs=[
"MUON1Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData, MetadataCategory.TruthMetaData]))