7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8 from AthenaConfiguration.ComponentFactory
import CompFactory
13 """Configure the event/jet cleaning tool for SUSY20 derivations"""
17 from JetSelectorTools.JetSelectorToolsConfig
import EventCleaningToolCfg, JetCleaningToolCfg
21 name =
"SUSY20JetCleaningTool_" + cleaningLevel +
"_EMTopo",
22 jetdef =
"AntiKt4EMTopo",
23 cleaningLevel = cleaningLevel,
24 useDecorations =
False
26 acc.addPublicTool(JetCleaningTool)
30 name =
"SUSY20EventCleaningTool_" + cleaningLevel +
"_EMTopo",
31 cleaningLevel = cleaningLevel
33 EventCleaningTool.JetCleanPrefix =
"DFCommonJets_"
34 EventCleaningTool.JetContainer =
"AntiKt4EMTopoJets"
35 EventCleaningTool.JetCleaningTool = JetCleaningTool
36 EventCleaningTool.DoDecorations =
True
37 acc.addPublicTool(EventCleaningTool)
39 EventCleanAlg = CompFactory.EventCleaningTestAlg(
40 name =
"SUSY20EventCleaningTestAlg_" + cleaningLevel +
"_EMTopo",
41 EventCleaningTool = EventCleaningTool,
42 JetCollectionName =
"AntiKt4EMTopoJets",
43 EventCleanPrefix =
"DFCommonJets_",
44 CleaningLevel = cleaningLevel,
47 acc.addEventAlgo(EventCleanAlg)
54 """Configure the DT trigger skimming tool for SUSY20 derivations"""
57 if flags.Trigger.EDMVersion <= 2:
59 from TriggerMenuMT.TriggerAPI.TriggerAPI
import TriggerAPI
60 from TriggerMenuMT.TriggerAPI.TriggerEnums
import TriggerPeriod, TriggerType
62 allperiods = TriggerPeriod.y2015 | TriggerPeriod.y2016 | TriggerPeriod.y2017 | TriggerPeriod.y2018 | TriggerPeriod.future2e34
64 TriggerAPI.setConfigFlags(flags)
65 el_trig = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType = TriggerType.el_single, livefraction = 0.8)
66 mu_trig = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType = TriggerType.mu_single, livefraction = 0.8)
67 g_trig = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType = TriggerType.g_single, livefraction = 0.8)
68 xe_trig = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType = TriggerType.xe, livefraction = 0.8)
71 xe_trig += [
'HLT_xe70',
'HLT_xe70_tc_lcw',
'HLT_noalg_L1J400',
'HLT_noalg_L1J420',
'HLT_noalg_L1J450']
74 triggers = el_trig + mu_trig + g_trig + xe_trig
80 from TriggerMenuMT.TriggerAPI.TriggerEnums
import TriggerType
81 from DerivationFrameworkPhys.TriggerListsHelper
import getTapisSession
86 triggers = session.getLowestUnprescaled(triggerType = TriggerType.el_single, livefraction = 0.8).union(triggers)
87 triggers = session.getLowestUnprescaled(triggerType = TriggerType.mu_single, livefraction = 0.8).union(triggers)
88 triggers = session.getLowestUnprescaled(triggerType = TriggerType.g_single, livefraction = 0.8).union(triggers)
89 triggers = session.getLowestUnprescaled(triggerType = TriggerType.xe, livefraction = 0.8).union(triggers)
92 triggers.update( [
'HLT_e26_lhtight_ivarloose_L1EM22VHI',
'HLT_e60_lhmedium_L1EM22VHI',
'HLT_e140_lhloose_L1EM22VHI',
'HLT_e300_etcut_L1EM22VHI'] )
93 triggers.update( [
'HLT_g140_loose_L1EM22VHI',
'HLT_g300_etcut_L1EM22VHI'] )
94 triggers.update( [
'HLT_mu60_L1MU14FCH'] )
95 triggers.update( [
'HLT_xe55_cell_xe70_tcpufit_xe90_pfsum_vssk_L1XE50',
'HLT_xe55_cell_xe70_tcpufit_xe95_pfsum_cssk_L1XE50',
'HLT_xe60_cell_xe95_pfsum_cssk_L1XE50',
'HLT_xe65_cell_xe100_mhtpufit_pf_L1XE50',
'HLT_xe65_cell_xe105_mhtpufit_em_L1XE50',
'HLT_xe75_cell_xe65_tcpufit_xe90_trkmht_L1XE50'] )
101 TriggerSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool
102 acc.addPublicTool(TriggerSkimmingTool
106 TriggerListOR = triggers,