6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory
import CompFactory
8 from AthenaConfiguration.Enums
import MetadataCategory
12 """Configure the skimming tool"""
15 JETM10MetTrigSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool( name =
"JETM10MetTrigSkimmingTool1",
16 TriggerListOR = [
"HLT_noalg_L1XE.*",
"HLT_noalg_L1jXE.*",
"HLT.*ZeroBias",
"HLT.*zb.*",
"HLT.*_eb_.*",
"HLT.*noPS.*",
"HLT_noalg_L1RD3.*"] )
17 acc.addPublicTool(JETM10MetTrigSkimmingTool, primary =
True)
22 """Configure the trigger skimming tool"""
25 from DerivationFrameworkJetEtMiss
import TriggerLists
26 singleMuTriggers = TriggerLists.single_mu_Trig(flags)
28 JETM10MuTrigSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool( name =
"JETM10MuTrigSkimmingTool1",
29 TriggerListOR = singleMuTriggers)
31 acc.addPublicTool(JETM10MuTrigSkimmingTool, primary =
True)
36 """Configure the string skimming tool"""
40 cutExpression =
"(count(Muons.DFCommonMuonPassPreselection && Muons.pt > (20*GeV) && abs(Muons.eta) < 2.7) ) >= 2"
42 JETM10StringSkimmingTool = CompFactory.DerivationFramework.xAODStringSkimmingTool(name =
"JETM10StringSkimmingTool",
43 expression = cutExpression)
45 acc.addPublicTool(JETM10StringSkimmingTool, primary =
True)
52 """Configure the derivation framework driving algorithm (kernel) for JETM10"""
60 JETM10MuTrigStringSkimmingTool = CompFactory.DerivationFramework.FilterCombinationAND(name=
"JETM10MuTrigStringSkimmingTool", FilterList=[JETM10MuTrigSkimmingTool, JETM10StringSkimmingTool] )
61 acc.addPublicTool(JETM10MuTrigStringSkimmingTool)
62 JETM10SkimmingTool = CompFactory.DerivationFramework.FilterCombinationOR(name=
"JETM10SkimmingTool",
63 FilterList=[JETM10MuTrigStringSkimmingTool, JETM10MetTrigSkimmingTool])
64 acc.addPublicTool(JETM10SkimmingTool, primary =
True)
67 from DerivationFrameworkPhys.PhysCommonConfig
import PhysCommonAugmentationsCfg
71 from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig
import LooseMETTriggerDerivationKernelCfg
85 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
86 JETM10TriggerListsHelper = TriggerListsHelper(flags)
89 acc.merge(
JETM10KernelCfg(flags, name=
"JETM10Kernel", StreamName =
'StreamDAOD_JETM10', TriggerListsHelper = JETM10TriggerListsHelper))
94 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
95 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
96 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
98 JETM10SlimmingHelper =
SlimmingHelper(
"JETM10SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
100 from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig
import addMETTriggerDerivationContent
104 JETM10SlimmingHelper.IncludeTriggerNavigation =
False
105 JETM10SlimmingHelper.IncludeJetTriggerContent =
False
106 JETM10SlimmingHelper.IncludeMuonTriggerContent =
False
107 JETM10SlimmingHelper.IncludeEGammaTriggerContent =
False
108 JETM10SlimmingHelper.IncludeTauTriggerContent =
False
109 JETM10SlimmingHelper.IncludeEtMissTriggerContent =
False
110 JETM10SlimmingHelper.IncludeBJetTriggerContent =
False
111 JETM10SlimmingHelper.IncludeBPhysTriggerContent =
False
112 JETM10SlimmingHelper.IncludeMinBiasTriggerContent =
False
114 JETM10SlimmingHelper.AllVariables += [
'HLT_MET_tcpufit',
'HLT_MET_cell',
'HLT_MET_trkmht',
'HLT_MET_cvfpufit',
'HLT_MET_pfopufit',
'HLT_MET_mhtpufit_em',
'HLT_MET_mhtpufit_pf',
'HLT_MET_pfsum',
'HLT_MET_pfsum_vssk',
'HLT_MET_pfsum_cssk',
'HLT_MET_nn',
'L1_jFexMETRoI',
'L1_jFexMETxRoI',
'L1_gMETComponentsJwoj',
'L1_gMETComponentsRms',
'L1_gMETComponentsNoiseCut']
117 JETM10ItemList = JETM10SlimmingHelper.GetItemList()
118 acc.merge(
OutputStreamCfg(flags,
"DAOD_JETM10", ItemList=JETM10ItemList, AcceptAlgs=[
"JETM10Kernel"]))
119 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_JETM10", AcceptAlgs=[
"JETM10Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))