7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from AthenaConfiguration.Enums
import MetadataCategory
13 """Configure the trigger skimming tool"""
16 from DerivationFrameworkJetEtMiss
import TriggerLists
17 singleMuTriggers = TriggerLists.single_mu_Trig(flags)
19 JETM14TrigSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool( name =
"JETM14TrigSkimmingTool1",
20 TriggerListOR = singleMuTriggers)
22 acc.addPublicTool(JETM14TrigSkimmingTool, primary=
True)
27 """Configure the string skimming tool"""
31 cutExpression =
"(count(Muons.DFCommonMuonPassPreselection && Muons.pt > (20*GeV) && abs(Muons.eta) < 2.7) ) >= 2"
33 JETM14StringSkimmingTool = CompFactory.DerivationFramework.xAODStringSkimmingTool(name =
"JETM14StringSkimmingTool",
34 expression = cutExpression)
36 acc.addPublicTool(JETM14StringSkimmingTool, primary=
True)
43 """Configure the derivation framework driving algorithm (kernel) for JETM14"""
52 from DerivationFrameworkPhys.PhysCommonConfig
import PhysCommonAugmentationsCfg
56 from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig
import LooseMETTriggerDerivationKernelCfg
70 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
71 JETM14TriggerListsHelper = TriggerListsHelper(flags)
74 acc.merge(
JETM14KernelCfg(flags, name=
"JETM14Kernel", StreamName =
'StreamDAOD_JETM14', TriggerListsHelper = JETM14TriggerListsHelper))
79 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
80 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
81 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
83 JETM14SlimmingHelper =
SlimmingHelper(
"JETM14SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
85 from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig
import addMETTriggerDerivationContent
89 JETM14SlimmingHelper.IncludeTriggerNavigation =
False
90 JETM14SlimmingHelper.IncludeJetTriggerContent =
False
91 JETM14SlimmingHelper.IncludeMuonTriggerContent =
False
92 JETM14SlimmingHelper.IncludeEGammaTriggerContent =
False
93 JETM14SlimmingHelper.IncludeTauTriggerContent =
False
94 JETM14SlimmingHelper.IncludeEtMissTriggerContent =
False
95 JETM14SlimmingHelper.IncludeBJetTriggerContent =
False
96 JETM14SlimmingHelper.IncludeBPhysTriggerContent =
False
97 JETM14SlimmingHelper.IncludeMinBiasTriggerContent =
False
100 JETM14ItemList = JETM14SlimmingHelper.GetItemList()
101 acc.merge(
OutputStreamCfg(flags,
"DAOD_JETM14", ItemList=JETM14ItemList, AcceptAlgs=[
"JETM14Kernel"]))
102 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_JETM14", AcceptAlgs=[
"JETM14Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))