10 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
11 from AthenaConfiguration.ComponentFactory
import CompFactory
12 from AthenaConfiguration.Enums
import MetadataCategory
16 """Configure the derivation framework driving algorithm (kernel) for NCB1"""
20 from DerivationFrameworkNCB.NCBCommonConfig
import NCBCommonAugmentationsCfg
24 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
32 from AthenaCommon.Logging
import logging
33 logNCB1 = logging.getLogger(
'NCB1')
34 logNCB1.info(
'****************** STARTING NCB1 *****************')
38 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
39 NCB1TriggerListsHelper = TriggerListsHelper(flags)
41 acc.merge(
NCB1KernelCfg(flags, name=
'NCB1Kernel', StreamName =
'StreamDAOD_NCB1', TriggerListsHelper = NCB1TriggerListsHelper))
48 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
49 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
50 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
52 NCB1SlimmingHelper =
SlimmingHelper(
"NCB1SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
54 NCB1SlimmingHelper.SmartCollections = [
55 "MET_Baseline_AntiKt4EMTopo",
60 NCB1SlimmingHelper.AllVariables = [
62 "InDetTrackParticles",
63 "CombinedMuonTrackParticles",
65 "CaloCalTopoClusters",
68 "MuonSpectrometerTrackParticles",
69 "ExtrapolatedMuonTrackParticles",
76 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
78 NCB1SlimmingHelper.AllVariables += [
86 NCB1SlimmingHelper.IncludeTriggerNavigation =
False
87 NCB1SlimmingHelper.IncludeJetTriggerContent =
False
88 NCB1SlimmingHelper.IncludeMuonTriggerContent =
False
89 NCB1SlimmingHelper.IncludeEGammaTriggerContent =
False
90 NCB1SlimmingHelper.IncludeTauTriggerContent =
False
91 NCB1SlimmingHelper.IncludeEtMissTriggerContent =
False
92 NCB1SlimmingHelper.IncludeBJetTriggerContent =
False
93 NCB1SlimmingHelper.IncludeBPhysTriggerContent =
False
94 NCB1SlimmingHelper.IncludeMinBiasTriggerContent =
False
97 NCB1ItemList = NCB1SlimmingHelper.GetItemList()
98 acc.merge(
OutputStreamCfg(flags,
"DAOD_NCB1", ItemList=NCB1ItemList, AcceptAlgs=[
"NCB1Kernel"]))
99 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_NCB1", AcceptAlgs=[
"NCB1Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))