11 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
12 from AthenaConfiguration.ComponentFactory
import CompFactory
13 from AthenaConfiguration.Enums
import MetadataCategory
17 """Configure the derivation framework driving algorithm (kernel) for NCB1"""
21 from DerivationFrameworkNCB.NCBCommonConfig
import NCBCommonAugmentationsCfg
25 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
33 from AthenaCommon.Logging
import logging
34 logNCB1 = logging.getLogger(
'NCB1')
35 logNCB1.info(
'****************** STARTING NCB1 *****************')
39 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
40 NCB1TriggerListsHelper = TriggerListsHelper(flags)
42 acc.merge(
NCB1KernelCfg(flags, name=
'NCB1Kernel', StreamName =
'StreamDAOD_NCB1', TriggerListsHelper = NCB1TriggerListsHelper))
49 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
50 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
51 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
53 NCB1SlimmingHelper =
SlimmingHelper(
"NCB1SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
55 NCB1SlimmingHelper.SmartCollections = [
56 "MET_Baseline_AntiKt4EMTopo",
61 NCB1SlimmingHelper.AllVariables = [
63 "InDetTrackParticles",
64 "CombinedMuonTrackParticles",
66 "CaloCalTopoClusters",
69 "MuonSpectrometerTrackParticles",
70 "ExtrapolatedMuonTrackParticles",
77 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
79 NCB1SlimmingHelper.AllVariables += [
87 NCB1SlimmingHelper.IncludeTriggerNavigation =
False
88 NCB1SlimmingHelper.IncludeJetTriggerContent =
False
89 NCB1SlimmingHelper.IncludeMuonTriggerContent =
False
90 NCB1SlimmingHelper.IncludeEGammaTriggerContent =
False
91 NCB1SlimmingHelper.IncludeTauTriggerContent =
False
92 NCB1SlimmingHelper.IncludeEtMissTriggerContent =
False
93 NCB1SlimmingHelper.IncludeBJetTriggerContent =
False
94 NCB1SlimmingHelper.IncludeBPhysTriggerContent =
False
95 NCB1SlimmingHelper.IncludeMinBiasTriggerContent =
False
98 NCB1ItemList = NCB1SlimmingHelper.GetItemList()
99 acc.merge(
OutputStreamCfg(flags,
"DAOD_NCB1", ItemList=NCB1ItemList, AcceptAlgs=[
"NCB1Kernel"]))
100 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_NCB1", AcceptAlgs=[
"NCB1Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))