242 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
243 HIGG1D1TriggerListsHelper = TriggerListsHelper(flags)
245 acc.merge(
HIGG1D1KernelCfg(flags, name=
"HIGG1D1Kernel", StreamName =
'StreamDAOD_HIGG1D1', TriggerListsHelper = HIGG1D1TriggerListsHelper))
251 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
252 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
253 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
255 HIGG1D1SlimmingHelper =
SlimmingHelper(
"HIGG1D1SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
256 HIGG1D1SlimmingHelper.SmartCollections = [
"EventInfo",
261 "InDetTrackParticles",
263 "AntiKt4EMPFlowJets",
264 "BTagging_AntiKt4EMPFlow",
265 "BTagging_AntiKtVR30Rmax4Rmin02Track",
266 "MET_Baseline_AntiKt4EMTopo",
267 "MET_Baseline_AntiKt4EMPFlow",
271 "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
272 "AntiKtVR30Rmax4Rmin02PV0TrackJets"]
274 excludedVertexAuxData =
"-vxTrackAtVertex.-MvfFitInfo.-isInitialized.-VTAV"
276 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Tight_Vertices"]
277 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Tight_VerticesAux." + excludedVertexAuxData]
278 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Medium_Vertices"]
279 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Medium_VerticesAux." + excludedVertexAuxData]
280 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Loose_Vertices"]
281 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Loose_VerticesAux." + excludedVertexAuxData]
283 HIGG1D1SlimmingHelper.StaticContent = StaticContent
286 HIGG1D1SlimmingHelper.IncludeTriggerNavigation =
False
287 HIGG1D1SlimmingHelper.IncludeJetTriggerContent =
False
288 HIGG1D1SlimmingHelper.IncludeMuonTriggerContent =
False
289 HIGG1D1SlimmingHelper.IncludeEGammaTriggerContent =
False
290 HIGG1D1SlimmingHelper.IncludeTauTriggerContent =
False
291 HIGG1D1SlimmingHelper.IncludeEtMissTriggerContent =
False
292 HIGG1D1SlimmingHelper.IncludeBJetTriggerContent =
False
293 HIGG1D1SlimmingHelper.IncludeBPhysTriggerContent =
False
294 HIGG1D1SlimmingHelper.IncludeMinBiasTriggerContent =
False
298 HIGG1D1SlimmingHelper.AppendToDictionary = {
299 'TruthEvents':
'xAOD::TruthEventContainer',
300 'TruthEventsAux':
'xAOD::TruthEventAuxContainer',
301 'MET_Truth':
'xAOD::MissingETContainer',
302 'MET_TruthAux':
'xAOD::MissingETAuxContainer',
303 'TruthElectrons':
'xAOD::TruthParticleContainer',
304 'TruthElectronsAux':
'xAOD::TruthParticleAuxContainer',
305 'TruthMuons':
'xAOD::TruthParticleContainer',
306 'TruthMuonsAux':
'xAOD::TruthParticleAuxContainer',
307 'TruthPhotons':
'xAOD::TruthParticleContainer',
308 'TruthPhotonsAux':
'xAOD::TruthParticleAuxContainer',
309 'TruthTaus':
'xAOD::TruthParticleContainer',
310 'TruthTausAux':
'xAOD::TruthParticleAuxContainer',
311 'TruthNeutrinos':
'xAOD::TruthParticleContainer',
312 'TruthNeutrinosAux':
'xAOD::TruthParticleAuxContainer',
313 'TruthBSM':
'xAOD::TruthParticleContainer',
314 'TruthBSMAux':
'xAOD::TruthParticleAuxContainer',
315 'TruthBoson':
'xAOD::TruthParticleContainer',
316 'TruthBosonAux':
'xAOD::TruthParticleAuxContainer',
317 'TruthTop':
'xAOD::TruthParticleContainer',
318 'TruthTopAux':
'xAOD::TruthParticleAuxContainer',
319 'TruthForwardProtons':
'xAOD::TruthParticleContainer',
320 'TruthForwardProtonsAux':
'xAOD::TruthParticleAuxContainer',
321 'BornLeptons':
'xAOD::TruthParticleContainer',
322 'BornLeptonsAux':
'xAOD::TruthParticleAuxContainer',
323 'TruthBosonsWithDecayParticles':
'xAOD::TruthParticleContainer',
324 'TruthBosonsWithDecayParticlesAux':
'xAOD::TruthParticleAuxContainer',
325 'TruthBosonsWithDecayVertices':
'xAOD::TruthVertexContainer',
326 'TruthBosonsWithDecayVerticesAux':
'xAOD::TruthVertexAuxContainer',
327 'TruthBSMWithDecayParticles':
'xAOD::TruthParticleContainer',
328 'TruthBSMWithDecayParticlesAux':
'xAOD::TruthParticleAuxContainer',
329 'TruthBSMWithDecayVertices':
'xAOD::TruthVertexContainer',
330 'TruthBSMWithDecayVerticesAux':
'xAOD::TruthVertexAuxContainer',
331 'TruthHFWithDecayParticles':
'xAOD::TruthParticleContainer',
332 'TruthHFWithDecayParticlesAux':
'xAOD::TruthParticleAuxContainer',
333 'TruthHFWithDecayVertices':
'xAOD::TruthVertexContainer',
334 'TruthHFWithDecayVerticesAux':
'xAOD::TruthVertexAuxContainer',
335 'TruthCharm':
'xAOD::TruthParticleContainer',
336 'TruthCharmAux':
'xAOD::TruthParticleAuxContainer',
337 'TruthPrimaryVertices':
'xAOD::TruthVertexContainer',
338 'TruthPrimaryVerticesAux':
'xAOD::TruthVertexAuxContainer'
341 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
343 HIGG1D1SlimmingHelper.AllVariables += [
"TruthHFWithDecayParticles",
344 "TruthHFWithDecayVertices",
346 "TruthPileupParticles",
347 "InTimeAntiKt4TruthJets",
348 "OutOfTimeAntiKt4TruthJets",
349 "AntiKt4TruthDressedWZJets",
350 "AntiKt4TruthWZJets",
352 "TruthPrimaryVertices",
356 HIGG1D1SlimmingHelper.ExtraVariables += [
"Electrons.TruthLink",
359 "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",
360 "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",
361 "TruthPrimaryVertices.t.x.y.z",
362 "EventInfo.DFCommonJetsCustomVtx_eventClean_LooseBad.DFCommonJetsCustomVtx_eventClean_TightBad.hardScatterVertexLink.timeStampNSOffset",
363 "TauJets.dRmax.etOverPtLeadTrk"]
364 if flags.Reco.EnableTrigger:
365 HIGG1D1SlimmingHelper.ExtraVariables += [
366 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET.ex.ey",
367 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_mht.ex.ey"
371 HIGG1D1SlimmingHelper.AppendToDictionary.update({
372 "AntiKt4EMPFlowCustomVtxJets":
"xAOD::JetContainer",
373 "AntiKt4EMPFlowCustomVtxJetsAux":
"xAOD::JetAuxContainer",
374 "METAssoc_AntiKt4EMPFlowCustomVtx":
"xAOD::MissingETAssociationMap",
375 "METAssoc_AntiKt4EMPFlowCustomVtxAux":
"xAOD::MissingETAuxAssociationMap",
376 "MET_Core_AntiKt4EMPFlowCustomVtx":
"xAOD::MissingETContainer",
377 "MET_Core_AntiKt4EMPFlowCustomVtxAux":
"xAOD::MissingETAuxContainer",
378 "HggPrimaryVertices":
"xAOD::VertexContainer",
379 "HggPrimaryVerticesAux":
"xAOD::ShallowAuxContainer",
380 "Kt4EMPFlowCustomVtxEventShape":
"xAOD::EventShape",
381 "Kt4EMPFlowCustomVtxEventShapeAux":
"xAOD::EventShapeAuxInfo",
382 "Kt4EMPFlowEventShape":
"xAOD::EventShape",
383 "Kt4EMPFlowEventShapeAux":
"xAOD::EventShapeAuxInfo",
384 "ZeeRefittedPrimaryVertices":
"xAOD::VertexContainer",
385 "ZeeRefittedPrimaryVerticesAux":
"xAOD::VertexAuxContainer",
386 "AFPSiHitContainer":
"xAOD::AFPSiHitContainer",
387 "AFPSiHitContainerAux":
"xAOD::AFPSiHitAuxContainer",
388 "AFPToFHitContainer":
"xAOD::AFPToFHitContainer",
389 "AFPToFHitContainerAux":
"xAOD::AFPToFHitAuxContainer",
390 "AFPVertexContainer":
"xAOD::AFPVertexContainer",
391 "AFPVertexContainerAux":
"xAOD::AFPVertexAuxContainer",
392 "AFPToFTrackContainer":
"xAOD::AFPToFTrackContainer",
393 "AFPToFTrackContainerAux":
"xAOD::AFPToFTrackAuxContainer",
394 "BTagging_AntiKt4EMPFlowCustomVtx":
"xAOD::BTaggingContainer",
395 "BTagging_AntiKt4EMPFlowCustomVtxAux":
"xAOD::BTaggingAuxContainer"
398 HIGG1D1SlimmingHelper.AllVariables += [
399 "HggPrimaryVertices",
400 "ZeeRefittedPrimaryVertices",
401 "AntiKt4EMPFlowCustomVtxJets",
402 "Kt4EMPFlowCustomVtxEventShape",
403 "Kt4EMPFlowEventShape",
404 "METAssoc_AntiKt4EMPFlowCustomVtx",
405 "MET_Core_AntiKt4EMPFlowCustomVtx"
409 HIGG1D1SlimmingHelper.AllVariables += [
"AFPSiHitContainer",
410 "AFPToFHitContainer",
411 "AFPVertexContainer",
412 "AFPToFTrackContainer"]
414 from DerivationFrameworkFlavourTag.BTaggingContent
import BTaggingStandardContent,BTaggingXbbContent
417 HIGG1D1SlimmingHelper.ExtraVariables +=
BTaggingXbbContent(
"AntiKt4EMPFlowCustomVtxJets", flags)
418 HIGG1D1SlimmingHelper.ExtraVariables +=
BTaggingXbbContent(
"AntiKt4EMPFlowJets", flags)
421 from DerivationFrameworkEGamma.PhotonsCPDetailedContent
import PhotonsCPDetailedContent
422 HIGG1D1SlimmingHelper.ExtraVariables += PhotonsCPDetailedContent
426 from DerivationFrameworkCalo.DerivationFrameworkCaloConfig
import (
427 getGainDecorations, getClusterEnergyPerLayerDecorations )
429 HIGG1D1SlimmingHelper.ExtraVariables.extend(gainDecorations)
431 acc,
'HIGG1D1Kernel' )
432 HIGG1D1SlimmingHelper.ExtraVariables.extend(clusterEnergyDecorations)
435 HIGG1D1SlimmingHelper.ExtraVariables.extend([
"EventInfo.HTXS_prodMode",
436 "EventInfo.HTXS_errorCode",
437 "EventInfo.HTXS_Stage0_Category",
438 "EventInfo.HTXS_Stage1_Category_pTjet25",
439 "EventInfo.HTXS_Stage1_Category_pTjet30",
440 "EventInfo.HTXS_Stage1_FineIndex_pTjet30",
441 "EventInfo.HTXS_Stage1_FineIndex_pTjet25",
442 "EventInfo.HTXS_Stage1_2_Category_pTjet25",
443 "EventInfo.HTXS_Stage1_2_Category_pTjet30",
444 "EventInfo.HTXS_Stage1_2_FineIndex_pTjet30",
445 "EventInfo.HTXS_Stage1_2_FineIndex_pTjet25",
446 "EventInfo.HTXS_Stage1_2_Fine_Category_pTjet25",
447 "EventInfo.HTXS_Stage1_2_Fine_Category_pTjet30",
448 "EventInfo.HTXS_Stage1_2_Fine_FineIndex_pTjet30",
449 "EventInfo.HTXS_Stage1_2_Fine_FineIndex_pTjet25",
450 "EventInfo.HTXS_Njets_pTjet25",
451 "EventInfo.HTXS_Njets_pTjet30",
452 "EventInfo.HTXS_isZ2vvDecay",
453 "EventInfo.HTXS_Higgs_eta",
454 "EventInfo.HTXS_Higgs_m",
455 "EventInfo.HTXS_Higgs_phi",
456 "EventInfo.HTXS_Higgs_pt",
457 "EventInfo.HTXS_V_jets30_eta",
458 "EventInfo.HTXS_V_jets30_m",
459 "EventInfo.HTXS_V_jets30_phi",
460 "EventInfo.HTXS_V_jets30_pt",
461 "EventInfo.HTXS_V_pt"])
464 HIGG1D1SlimmingHelper.ExtraVariables.extend([
"Electrons.maxEcell_time",
465 "Electrons.maxEcell_energy",
466 "Electrons.maxEcell_gain",
467 "Electrons.maxEcell_onlId",
468 "Photons.maxEcell_time",
469 "Photons.maxEcell_energy",
470 "Photons.maxEcell_gain",
471 "Photons.maxEcell_onlId",
474 HIGG1D1SlimmingHelper.ExtraVariables.extend([
"InDetTrackParticles.TTVA_AMVFVertices.TTVA_AMVFWeights.TTVA_AMVFVertices_forReco.TTVA_AMVFWeights_forReco.TTVA_AMVFVertices_forHiggs.TTVA_AMVFWeights_forHiggs.eProbabilityHT.numberOfTRTHits.numberOfTRTOutliers"])
477 HIGG1D1SlimmingHelper.IncludeTriggerNavigation =
False
478 HIGG1D1SlimmingHelper.IncludeJetTriggerContent =
False
479 HIGG1D1SlimmingHelper.IncludeMuonTriggerContent =
False
480 HIGG1D1SlimmingHelper.IncludeEGammaTriggerContent =
False
481 HIGG1D1SlimmingHelper.IncludeTauTriggerContent =
False
482 HIGG1D1SlimmingHelper.IncludeEtMissTriggerContent =
False
483 HIGG1D1SlimmingHelper.IncludeBJetTriggerContent =
False
484 HIGG1D1SlimmingHelper.IncludeBPhysTriggerContent =
False
485 HIGG1D1SlimmingHelper.IncludeMinBiasTriggerContent =
False
489 if flags.Trigger.EDMVersion == 2:
490 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
492 OutputContainerPrefix =
"TrigMatch_",
493 TriggerList = HIGG1D1TriggerListsHelper.Run2TriggerNamesTau)
495 OutputContainerPrefix =
"TrigMatch_",
496 TriggerList = HIGG1D1TriggerListsHelper.Run2TriggerNamesNoTau)
498 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
499 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
503 HIGG1D1ItemList = HIGG1D1SlimmingHelper.GetItemList()
504 acc.merge(
OutputStreamCfg(flags,
"DAOD_HIGG1D1", ItemList=HIGG1D1ItemList, AcceptAlgs=[
"HIGG1D1Kernel"]))
505 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_HIGG1D1", AcceptAlgs=[
"HIGG1D1Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData, MetadataCategory.TruthMetaData]))