14 from AthenaConfiguration.Enums
import LHCPeriod
15 isRun3 = flags.GeoModel.Run == LHCPeriod.Run3
20 from DerivationFrameworkTools.DerivationFrameworkToolsConfig
import TriggerSkimmingToolCfg
22 name =
"MuonNoAlgTrig_TriggerSkimmingTool",
23 TriggerListOR = [
"HLT_noalg_L1MU.*",
25 "HLT_noalg_L1TGC_BURST",
26 "HLT_noalg_L1XE.*" ]
if isRun3
else [
35 "HLT_noalg_L12MU10"]))
42 name =
"OrthoTrig_TriggerSkimmingTool",
43 TriggerListOR = [
"HLT_xe.*",
45 "HLT_j[0-9]*_(jes|lcw|nojcalib|sub|L1RD0|280eta320|320eta490).*",
46 "HLT_[0-9]?j[0-9]*_b.*|j[0-9]*_[0-9]j[0-9]*_b.*",
48 "HLT_[0-9]?e[0-9]*_(iloose|loose|medium|lhloose|lhmedium|lhtight|etcut)",
49 "HLT_[0-9]?e[0-9]*_(iloose|loose|medium|lhloose|lhmedium|lhtight|etcut)_(iloose|nod0|HLTCalo|cu\
50 td0dphideta|smooth|L1EM[0-9]*VH|L1EM[0-9]*)",
51 "HLT_[0-9]?e[0-9]*_(iloose|loose|medium|lhloose|lhmedium|lhtight)_(iloose|nod0|HLTCalo|cutd0dph\
52 ideta|smooth)_(HLTCalo|iloose|L1EM[0-9]*VH|L1EM[0-9]*)",
53 "HLT_[0-9]?g[0-9]*_(loose|medium|tight|etcut)",
54 "HLT_g[0-9]*_(loose|etcut)_(L1EM[0-9]*|L1EM[0-9]*VH)",
55 "HLT_(e|g)[0-9]*_(loose|medium|lhmedium|tight)_g.*",
59 "HLT_mb.*"]
if not isRun3
else [
63 "HLT_j[0-9]*_(pf_ftf|a10).*",
64 "HLT_[0-9]?j[0-9]*_b.*|j[0-9]*_[0-9]j[0-9]*_b.*",
66 "HLT_[0-9]?e[0-9]*_(lhvloose|lhloose|lhmedium|lhtight|etcut)",
67 "HLT_[0-9]?g[0-9]*_(loose|medium|tight|etcut)",
68 "HLT_(e|g)[0-9]*_(loose|medium|lhmedium|tight)_g.*",
76 "HLT_noalg_L1XE.*"] ))
80 from DerivationFrameworkTools.DerivationFrameworkToolsConfig
import xAODStringSkimmingToolCfg
82 name =
"OrthoTrig_LowpTMuonEventStringSkimmingTool",
83 expression =
"(count(Muons.muonType == 0 && Muons.pt > 4*GeV && Muons.pt < 15*GeV) > 0)"))
86 from DerivationFrameworkTools.DerivationFrameworkToolsConfig
import PrescaleToolCfg
87 OrthoTrig_LowpTMuonPrescaleSkimmingTool = result.getPrimaryAndMerge(
PrescaleToolCfg(flags,
88 name =
"OrthoTrig_LowpTMuonPrescaleSkimmingTool",
91 from DerivationFrameworkTools.DerivationFrameworkToolsConfig
import FilterCombinationANDCfg
93 name=
"OrthoTrig_LowpTMuonEventSkimmingTool",
94 FilterList=[OrthoTrig_LowpTMuonEventStringSkimmingTool,
95 OrthoTrig_LowpTMuonPrescaleSkimmingTool]))
102 name =
"OrthoTrig_MidpTMuonEventSkimmingTool",
103 expression =
"(count(Muons.muonType == 0 && Muons.pt >= 15*GeV) > 0)"))
109 from DerivationFrameworkTools.DerivationFrameworkToolsConfig
import FilterCombinationORCfg
111 name=
"OrthoTrig_pTMuonEventSkimmingTool",
112 FilterList=[OrthoTrig_LowpTMuonEventSkimmingTool,
113 OrthoTrig_MidpTMuonEventSkimmingTool]))
116 name=
"OrthoTrig_EventSkimmingTool",
117 FilterList=[OrthoTrig_pTMuonEventSkimmingTool, OrthoTrig_TriggerSkimmingTool]))
123 name =
"JPsiTrig_TriggerSkimmingTool",
124 TriggerListOR = [
"HLT_mu20_2mu0noL1_JpsimumuFS",
125 "HLT_mu18_2mu0noL1_JpsimumuFS",
126 "HLT_mu20_2mu4_JpsimumuL2",
127 "HLT_mu18_2mu4_JpsimumuL2",
128 "HLT_mu6_bJpsi_Trkloose",
129 "HLT_mu18_bJpsi_Trkloose",
130 "HLT_mu4_bJpsi_Trkloose",
131 "HLT_mu20_msonly_mu6noL1_msonly_nscan05"]
if not isRun3
else [
133 "HLT_2mu10_bJpsimumu",
134 "HLT_mu11_mu6_bJpsimumu",
136 "HLT_2mu6_bJpsimumu" ]))
140 JPsiTrig_PrescaleSkimmingTool = result.getPrimaryAndMerge(
PrescaleToolCfg(flags,
141 name =
"JPsiTrig_PrescaleSkimmingTool",
148 name=
"JpsiTrig_EventSkimmingTool",
149 FilterList=[JPsiTrig_PrescaleSkimmingTool,
150 JPsiTrig_TriggerSkimmingTool]))
156 name =
"MuonHLTTrig_TriggerSkimmingTool",
157 TriggerListOR = [
"HLT_mu.*"] ))
163 name =
"MuonHLTTrig_DiMuonEventSkimmingTool",
164 expression =
"( (count(Muons.muonType == 0 && Muons.pt > 25*GeV) > 0) && (count(Muons.muonType == 0 && Muons.pt > 10*GeV) > 1) )"))
170 name =
"MuonHLTTrig_MidpTEventStringSkimmingTool",
171 expression =
"(count(Muons.muonType == 0 && Muons.pt > 25*GeV) > 0)"))
174 MuonHLTTrig_MidpTMuonPrescaleSkimmingTool = result.getPrimaryAndMerge(
PrescaleToolCfg(flags,
175 name =
"MuonHLTTrig_MidpTMuonPrescaleSkimmingTool",
180 name=
"MuonHLTTrig_MidpTMuonEventSkimmingTool",
181 FilterList=[MuonHLTTrig_MidpTEventStringSkimmingTool,
182 MuonHLTTrig_MidpTMuonPrescaleSkimmingTool]))
186 name=
"MuonHLTTrig_pTMuonEventSkimmingTool",
187 FilterList=[MuonHLTTrig_MidpTMuonEventSkimmingTool,
188 MuonHLTTrig_DiMuonEventSkimmingTool]))
190 name=
"MuonHLTTrig_EventSkimmingTool",
191 FilterList=[MuonHLTTrig_pTMuonEventSkimmingTool,
192 MuonHLTTrig_TriggerSkimmingTool]))
196 name=
"DESDM_MCPEventFilterTool",
197 FilterList=[MuonNoAlgTrig_EventSkimmingTool,
198 OrthoTrig_EventSkimmingTool,
199 JpsiTrig_EventSkimmingTool,
200 MuonHLTTrig_EventSkimmingTool]))
201 result.addPublicTool(EventFilterTool, primary =
True)