6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory
import CompFactory
8 from AthenaConfiguration.Enums
import MetadataCategory
12 """Configure the trigger skimming tool"""
15 from DerivationFrameworkJetEtMiss
import TriggerLists
16 singleMuTriggers = TriggerLists.single_mu_Trig(flags)
18 JETM14TrigSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool( name =
"JETM14TrigSkimmingTool1",
19 TriggerListOR = singleMuTriggers)
21 acc.addPublicTool(JETM14TrigSkimmingTool, primary=
True)
26 """Configure the string skimming tool"""
30 cutExpression =
"(count(Muons.DFCommonMuonPassPreselection && Muons.pt > (20*GeV) && abs(Muons.eta) < 2.7) ) >= 2"
32 JETM14StringSkimmingTool = CompFactory.DerivationFramework.xAODStringSkimmingTool(name =
"JETM14StringSkimmingTool",
33 expression = cutExpression)
35 acc.addPublicTool(JETM14StringSkimmingTool, primary=
True)
42 """Configure the derivation framework driving algorithm (kernel) for JETM14"""
51 from DerivationFrameworkPhys.PhysCommonConfig
import PhysCommonAugmentationsCfg
55 from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig
import LooseMETTriggerDerivationKernelCfg
69 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
70 JETM14TriggerListsHelper = TriggerListsHelper(flags)
73 acc.merge(
JETM14KernelCfg(flags, name=
"JETM14Kernel", StreamName =
'StreamDAOD_JETM14', TriggerListsHelper = JETM14TriggerListsHelper))
78 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
79 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
80 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
82 JETM14SlimmingHelper =
SlimmingHelper(
"JETM14SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
84 from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig
import addMETTriggerDerivationContent
88 JETM14SlimmingHelper.IncludeTriggerNavigation =
False
89 JETM14SlimmingHelper.IncludeJetTriggerContent =
False
90 JETM14SlimmingHelper.IncludeMuonTriggerContent =
False
91 JETM14SlimmingHelper.IncludeEGammaTriggerContent =
False
92 JETM14SlimmingHelper.IncludeTauTriggerContent =
False
93 JETM14SlimmingHelper.IncludeEtMissTriggerContent =
False
94 JETM14SlimmingHelper.IncludeBJetTriggerContent =
False
95 JETM14SlimmingHelper.IncludeBPhysTriggerContent =
False
96 JETM14SlimmingHelper.IncludeMinBiasTriggerContent =
False
99 JETM14ItemList = JETM14SlimmingHelper.GetItemList()
100 acc.merge(
OutputStreamCfg(flags,
"DAOD_JETM14", ItemList=JETM14ItemList, AcceptAlgs=[
"JETM14Kernel"]))
101 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_JETM14", AcceptAlgs=[
"JETM14Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))