249 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
250 HIGG1D1TriggerListsHelper = TriggerListsHelper(flags)
252 acc.merge(
HIGG1D1KernelCfg(flags, name=
"HIGG1D1Kernel", StreamName =
'StreamDAOD_HIGG1D1', TriggerListsHelper = HIGG1D1TriggerListsHelper))
258 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
259 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
260 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
262 HIGG1D1SlimmingHelper =
SlimmingHelper(
"HIGG1D1SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
263 HIGG1D1SlimmingHelper.SmartCollections = [
"EventInfo",
268 "InDetTrackParticles",
270 "AntiKt4EMPFlowJets",
271 "BTagging_AntiKt4EMPFlow",
272 "BTagging_AntiKtVR30Rmax4Rmin02Track",
273 "MET_Baseline_AntiKt4EMTopo",
274 "MET_Baseline_AntiKt4EMPFlow",
278 "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
279 "AntiKtVR30Rmax4Rmin02PV0TrackJets"]
281 excludedVertexAuxData =
"-vxTrackAtVertex.-MvfFitInfo.-isInitialized.-VTAV"
283 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Tight_Vertices"]
284 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Tight_VerticesAux." + excludedVertexAuxData]
285 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Medium_Vertices"]
286 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Medium_VerticesAux." + excludedVertexAuxData]
287 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Loose_Vertices"]
288 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Loose_VerticesAux." + excludedVertexAuxData]
290 HIGG1D1SlimmingHelper.StaticContent = StaticContent
293 HIGG1D1SlimmingHelper.IncludeTriggerNavigation =
False
294 HIGG1D1SlimmingHelper.IncludeJetTriggerContent =
False
295 HIGG1D1SlimmingHelper.IncludeMuonTriggerContent =
False
296 HIGG1D1SlimmingHelper.IncludeEGammaTriggerContent =
False
297 HIGG1D1SlimmingHelper.IncludeTauTriggerContent =
False
298 HIGG1D1SlimmingHelper.IncludeEtMissTriggerContent =
False
299 HIGG1D1SlimmingHelper.IncludeBJetTriggerContent =
False
300 HIGG1D1SlimmingHelper.IncludeBPhysTriggerContent =
False
301 HIGG1D1SlimmingHelper.IncludeMinBiasTriggerContent =
False
305 HIGG1D1SlimmingHelper.AppendToDictionary = {
306 'TruthEvents':
'xAOD::TruthEventContainer',
307 'TruthEventsAux':
'xAOD::TruthEventAuxContainer',
308 'MET_Truth':
'xAOD::MissingETContainer',
309 'MET_TruthAux':
'xAOD::MissingETAuxContainer',
310 'TruthElectrons':
'xAOD::TruthParticleContainer',
311 'TruthElectronsAux':
'xAOD::TruthParticleAuxContainer',
312 'TruthMuons':
'xAOD::TruthParticleContainer',
313 'TruthMuonsAux':
'xAOD::TruthParticleAuxContainer',
314 'TruthPhotons':
'xAOD::TruthParticleContainer',
315 'TruthPhotonsAux':
'xAOD::TruthParticleAuxContainer',
316 'TruthTaus':
'xAOD::TruthParticleContainer',
317 'TruthTausAux':
'xAOD::TruthParticleAuxContainer',
318 'TruthNeutrinos':
'xAOD::TruthParticleContainer',
319 'TruthNeutrinosAux':
'xAOD::TruthParticleAuxContainer',
320 'TruthBSM':
'xAOD::TruthParticleContainer',
321 'TruthBSMAux':
'xAOD::TruthParticleAuxContainer',
322 'TruthBoson':
'xAOD::TruthParticleContainer',
323 'TruthBosonAux':
'xAOD::TruthParticleAuxContainer',
324 'TruthTop':
'xAOD::TruthParticleContainer',
325 'TruthTopAux':
'xAOD::TruthParticleAuxContainer',
326 'TruthForwardProtons':
'xAOD::TruthParticleContainer',
327 'TruthForwardProtonsAux':
'xAOD::TruthParticleAuxContainer',
328 'BornLeptons':
'xAOD::TruthParticleContainer',
329 'BornLeptonsAux':
'xAOD::TruthParticleAuxContainer',
330 'TruthBosonsWithDecayParticles':
'xAOD::TruthParticleContainer',
331 'TruthBosonsWithDecayParticlesAux':
'xAOD::TruthParticleAuxContainer',
332 'TruthBosonsWithDecayVertices':
'xAOD::TruthVertexContainer',
333 'TruthBosonsWithDecayVerticesAux':
'xAOD::TruthVertexAuxContainer',
334 'TruthBSMWithDecayParticles':
'xAOD::TruthParticleContainer',
335 'TruthBSMWithDecayParticlesAux':
'xAOD::TruthParticleAuxContainer',
336 'TruthBSMWithDecayVertices':
'xAOD::TruthVertexContainer',
337 'TruthBSMWithDecayVerticesAux':
'xAOD::TruthVertexAuxContainer',
338 'TruthHFWithDecayParticles':
'xAOD::TruthParticleContainer',
339 'TruthHFWithDecayParticlesAux':
'xAOD::TruthParticleAuxContainer',
340 'TruthHFWithDecayVertices':
'xAOD::TruthVertexContainer',
341 'TruthHFWithDecayVerticesAux':
'xAOD::TruthVertexAuxContainer',
342 'TruthCharm':
'xAOD::TruthParticleContainer',
343 'TruthCharmAux':
'xAOD::TruthParticleAuxContainer',
344 'TruthPrimaryVertices':
'xAOD::TruthVertexContainer',
345 'TruthPrimaryVerticesAux':
'xAOD::TruthVertexAuxContainer'
348 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
350 HIGG1D1SlimmingHelper.AllVariables += [
"TruthHFWithDecayParticles",
351 "TruthHFWithDecayVertices",
353 "TruthPileupParticles",
354 "InTimeAntiKt4TruthJets",
355 "OutOfTimeAntiKt4TruthJets",
356 "AntiKt4TruthDressedWZJets",
357 "AntiKt4TruthWZJets",
359 "TruthPrimaryVertices",
363 HIGG1D1SlimmingHelper.ExtraVariables += [
"Electrons.TruthLink",
366 "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",
367 "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",
368 "TruthPrimaryVertices.t.x.y.z",
369 "EventInfo.DFCommonJetsCustomVtx_eventClean_LooseBad.DFCommonJetsCustomVtx_eventClean_TightBad.hardScatterVertexLink.timeStampNSOffset",
370 "TauJets.dRmax.etOverPtLeadTrk"]
371 if flags.Reco.EnableTrigger:
372 HIGG1D1SlimmingHelper.ExtraVariables += [
373 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET.ex.ey",
374 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_mht.ex.ey"
378 HIGG1D1SlimmingHelper.AppendToDictionary.update({
379 "AntiKt4EMPFlowCustomVtxJets":
"xAOD::JetContainer",
380 "AntiKt4EMPFlowCustomVtxJetsAux":
"xAOD::JetAuxContainer",
381 "METAssoc_AntiKt4EMPFlowCustomVtx":
"xAOD::MissingETAssociationMap",
382 "METAssoc_AntiKt4EMPFlowCustomVtxAux":
"xAOD::MissingETAuxAssociationMap",
383 "MET_Core_AntiKt4EMPFlowCustomVtx":
"xAOD::MissingETContainer",
384 "MET_Core_AntiKt4EMPFlowCustomVtxAux":
"xAOD::MissingETAuxContainer",
385 "HggPrimaryVertices":
"xAOD::VertexContainer",
386 "HggPrimaryVerticesAux":
"xAOD::ShallowAuxContainer",
387 "Kt4EMPFlowCustomVtxEventShape":
"xAOD::EventShape",
388 "Kt4EMPFlowCustomVtxEventShapeAux":
"xAOD::EventShapeAuxInfo",
389 "Kt4EMPFlowEventShape":
"xAOD::EventShape",
390 "Kt4EMPFlowEventShapeAux":
"xAOD::EventShapeAuxInfo",
391 "ZeeRefittedPrimaryVertices":
"xAOD::VertexContainer",
392 "ZeeRefittedPrimaryVerticesAux":
"xAOD::VertexAuxContainer",
393 "AFPSiHitContainer":
"xAOD::AFPSiHitContainer",
394 "AFPSiHitContainerAux":
"xAOD::AFPSiHitAuxContainer",
395 "AFPToFHitContainer":
"xAOD::AFPToFHitContainer",
396 "AFPToFHitContainerAux":
"xAOD::AFPToFHitAuxContainer",
397 "AFPVertexContainer":
"xAOD::AFPVertexContainer",
398 "AFPVertexContainerAux":
"xAOD::AFPVertexAuxContainer",
399 "AFPToFTrackContainer":
"xAOD::AFPToFTrackContainer",
400 "AFPToFTrackContainerAux":
"xAOD::AFPToFTrackAuxContainer",
401 "BTagging_AntiKt4EMPFlowCustomVtx":
"xAOD::BTaggingContainer",
402 "BTagging_AntiKt4EMPFlowCustomVtxAux":
"xAOD::BTaggingAuxContainer"
405 HIGG1D1SlimmingHelper.AllVariables += [
406 "HggPrimaryVertices",
407 "ZeeRefittedPrimaryVertices",
408 "AntiKt4EMPFlowCustomVtxJets",
409 "Kt4EMPFlowCustomVtxEventShape",
410 "Kt4EMPFlowEventShape",
411 "METAssoc_AntiKt4EMPFlowCustomVtx",
412 "MET_Core_AntiKt4EMPFlowCustomVtx"
416 HIGG1D1SlimmingHelper.AllVariables += [
"AFPSiHitContainer",
417 "AFPToFHitContainer",
418 "AFPVertexContainer",
419 "AFPToFTrackContainer"]
421 from DerivationFrameworkFlavourTag.BTaggingContent
import BTaggingStandardContent,BTaggingXbbContent
424 HIGG1D1SlimmingHelper.ExtraVariables +=
BTaggingXbbContent(
"AntiKt4EMPFlowCustomVtxJets", flags)
425 HIGG1D1SlimmingHelper.ExtraVariables +=
BTaggingXbbContent(
"AntiKt4EMPFlowJets", flags)
428 from DerivationFrameworkEGamma.PhotonsCPDetailedContent
import PhotonsCPDetailedContent
429 HIGG1D1SlimmingHelper.ExtraVariables += PhotonsCPDetailedContent
433 from DerivationFrameworkCalo.DerivationFrameworkCaloConfig
import (
434 getGainDecorations, getClusterEnergyPerLayerDecorations )
436 HIGG1D1SlimmingHelper.ExtraVariables.extend(gainDecorations)
438 acc,
'HIGG1D1Kernel' )
439 HIGG1D1SlimmingHelper.ExtraVariables.extend(clusterEnergyDecorations)
442 HIGG1D1SlimmingHelper.ExtraVariables.extend([
"EventInfo.HTXS_prodMode",
443 "EventInfo.HTXS_errorCode",
444 "EventInfo.HTXS_Stage0_Category",
445 "EventInfo.HTXS_Stage1_Category_pTjet25",
446 "EventInfo.HTXS_Stage1_Category_pTjet30",
447 "EventInfo.HTXS_Stage1_FineIndex_pTjet30",
448 "EventInfo.HTXS_Stage1_FineIndex_pTjet25",
449 "EventInfo.HTXS_Stage1_2_Category_pTjet25",
450 "EventInfo.HTXS_Stage1_2_Category_pTjet30",
451 "EventInfo.HTXS_Stage1_2_FineIndex_pTjet30",
452 "EventInfo.HTXS_Stage1_2_FineIndex_pTjet25",
453 "EventInfo.HTXS_Stage1_2_Fine_Category_pTjet25",
454 "EventInfo.HTXS_Stage1_2_Fine_Category_pTjet30",
455 "EventInfo.HTXS_Stage1_2_Fine_FineIndex_pTjet30",
456 "EventInfo.HTXS_Stage1_2_Fine_FineIndex_pTjet25",
457 "EventInfo.HTXS_Njets_pTjet25",
458 "EventInfo.HTXS_Njets_pTjet30",
459 "EventInfo.HTXS_isZ2vvDecay",
460 "EventInfo.HTXS_Higgs_eta",
461 "EventInfo.HTXS_Higgs_m",
462 "EventInfo.HTXS_Higgs_phi",
463 "EventInfo.HTXS_Higgs_pt",
464 "EventInfo.HTXS_V_jets30_eta",
465 "EventInfo.HTXS_V_jets30_m",
466 "EventInfo.HTXS_V_jets30_phi",
467 "EventInfo.HTXS_V_jets30_pt",
468 "EventInfo.HTXS_V_pt"])
471 HIGG1D1SlimmingHelper.ExtraVariables.extend([
"Electrons.maxEcell_time",
472 "Electrons.maxEcell_energy",
473 "Electrons.maxEcell_gain",
474 "Electrons.maxEcell_onlId",
475 "Photons.maxEcell_time",
476 "Photons.maxEcell_energy",
477 "Photons.maxEcell_gain",
478 "Photons.maxEcell_onlId",
481 HIGG1D1SlimmingHelper.ExtraVariables.extend([
"InDetTrackParticles.TTVA_AMVFVertices.TTVA_AMVFWeights.TTVA_AMVFVertices_forReco.TTVA_AMVFWeights_forReco.TTVA_AMVFVertices_forHiggs.TTVA_AMVFWeights_forHiggs.eProbabilityHT.numberOfTRTHits.numberOfTRTOutliers"])
484 HIGG1D1SlimmingHelper.IncludeTriggerNavigation =
False
485 HIGG1D1SlimmingHelper.IncludeJetTriggerContent =
False
486 HIGG1D1SlimmingHelper.IncludeMuonTriggerContent =
False
487 HIGG1D1SlimmingHelper.IncludeEGammaTriggerContent =
False
488 HIGG1D1SlimmingHelper.IncludeTauTriggerContent =
False
489 HIGG1D1SlimmingHelper.IncludeEtMissTriggerContent =
False
490 HIGG1D1SlimmingHelper.IncludeBJetTriggerContent =
False
491 HIGG1D1SlimmingHelper.IncludeBPhysTriggerContent =
False
492 HIGG1D1SlimmingHelper.IncludeMinBiasTriggerContent =
False
496 if flags.Trigger.EDMVersion == 2:
497 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
499 OutputContainerPrefix =
"TrigMatch_",
500 TriggerList = HIGG1D1TriggerListsHelper.Run2TriggerNamesTau)
502 OutputContainerPrefix =
"TrigMatch_",
503 TriggerList = HIGG1D1TriggerListsHelper.Run2TriggerNamesNoTau)
505 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
506 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
510 HIGG1D1ItemList = HIGG1D1SlimmingHelper.GetItemList()
511 acc.merge(
OutputStreamCfg(flags,
"DAOD_HIGG1D1", ItemList=HIGG1D1ItemList, AcceptAlgs=[
"HIGG1D1Kernel"]))
512 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_HIGG1D1", AcceptAlgs=[
"HIGG1D1Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData, MetadataCategory.TruthMetaData]))