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 singleElTriggers = TriggerLists.single_el_Trig(flags)
17 singleMuTriggers = TriggerLists.single_mu_Trig(flags)
19 JETM11TrigSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool( name =
"JETM11TrigSkimmingTool1",
20 TriggerListOR = singleElTriggers + singleMuTriggers)
22 acc.addPublicTool(JETM11TrigSkimmingTool, primary=
True)
27 """Configure the string skimming tool"""
31 cutExpression =
"(count(Electrons.DFCommonElectronsLHLoose && Electrons.pt > (24 * GeV) && abs(Electrons.eta) < 2.47) + count(Muons.DFCommonMuonPassPreselection && Muons.pt > (24*GeV) && abs(Muons.eta) < 2.47) ) >= 1"
33 JETM11StringSkimmingTool = CompFactory.DerivationFramework.xAODStringSkimmingTool(name =
"JETM11StringSkimmingTool",
34 expression = cutExpression)
36 acc.addPublicTool(JETM11StringSkimmingTool, primary=
True)
43 """Configure the derivation framework driving algorithm (kernel) for JETM11"""
52 from DerivationFrameworkPhys.PhysCommonConfig
import PhysCommonAugmentationsCfg
56 from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig
import TightMETTriggerDerivationKernelCfg
70 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
71 JETM11TriggerListsHelper = TriggerListsHelper(flags)
74 acc.merge(
JETM11KernelCfg(flags, name=
"JETM11Kernel", StreamName =
'StreamDAOD_JETM11', TriggerListsHelper = JETM11TriggerListsHelper))
79 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
80 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
81 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
83 JETM11SlimmingHelper =
SlimmingHelper(
"JETM11SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
85 from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig
import addMETTriggerDerivationContent
89 JETM11SlimmingHelper.IncludeTriggerNavigation =
False
90 JETM11SlimmingHelper.IncludeJetTriggerContent =
False
91 JETM11SlimmingHelper.IncludeMuonTriggerContent =
False
92 JETM11SlimmingHelper.IncludeEGammaTriggerContent =
False
93 JETM11SlimmingHelper.IncludeTauTriggerContent =
False
94 JETM11SlimmingHelper.IncludeEtMissTriggerContent =
False
95 JETM11SlimmingHelper.IncludeBJetTriggerContent =
False
96 JETM11SlimmingHelper.IncludeBPhysTriggerContent =
False
97 JETM11SlimmingHelper.IncludeMinBiasTriggerContent =
False
100 JETM11ItemList = JETM11SlimmingHelper.GetItemList()
101 acc.merge(
OutputStreamCfg(flags,
"DAOD_JETM11", ItemList=JETM11ItemList, AcceptAlgs=[
"JETM11Kernel"]))
102 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_JETM11", AcceptAlgs=[
"JETM11Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))