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 singleElTriggers = TriggerLists.single_el_Trig(flags)
18 singleMuTriggers = TriggerLists.single_mu_Trig(flags)
20 JETM11TrigSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool( name =
"JETM11TrigSkimmingTool1",
21 TriggerListOR = singleElTriggers + singleMuTriggers)
23 acc.addPublicTool(JETM11TrigSkimmingTool, primary=
True)
28 """Configure the string skimming tool"""
32 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"
34 JETM11StringSkimmingTool = CompFactory.DerivationFramework.xAODStringSkimmingTool(name =
"JETM11StringSkimmingTool",
35 expression = cutExpression)
37 acc.addPublicTool(JETM11StringSkimmingTool, primary=
True)
44 """Configure the derivation framework driving algorithm (kernel) for JETM11"""
53 from DerivationFrameworkPhys.PhysCommonConfig
import PhysCommonAugmentationsCfg
57 from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig
import TightMETTriggerDerivationKernelCfg
71 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
72 JETM11TriggerListsHelper = TriggerListsHelper(flags)
75 acc.merge(
JETM11KernelCfg(flags, name=
"JETM11Kernel", StreamName =
'StreamDAOD_JETM11', TriggerListsHelper = JETM11TriggerListsHelper))
80 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
81 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
82 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
84 JETM11SlimmingHelper =
SlimmingHelper(
"JETM11SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
86 from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig
import addMETTriggerDerivationContent
90 JETM11SlimmingHelper.IncludeTriggerNavigation =
False
91 JETM11SlimmingHelper.IncludeJetTriggerContent =
False
92 JETM11SlimmingHelper.IncludeMuonTriggerContent =
False
93 JETM11SlimmingHelper.IncludeEGammaTriggerContent =
False
94 JETM11SlimmingHelper.IncludeTauTriggerContent =
False
95 JETM11SlimmingHelper.IncludeEtMissTriggerContent =
False
96 JETM11SlimmingHelper.IncludeBJetTriggerContent =
False
97 JETM11SlimmingHelper.IncludeBPhysTriggerContent =
False
98 JETM11SlimmingHelper.IncludeMinBiasTriggerContent =
False
101 JETM11ItemList = JETM11SlimmingHelper.GetItemList()
102 acc.merge(
OutputStreamCfg(flags,
"DAOD_JETM11", ItemList=JETM11ItemList, AcceptAlgs=[
"JETM11Kernel"]))
103 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_JETM11", AcceptAlgs=[
"JETM11Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))