138 generates chains without menu, directly adding Chain configuration to HLTConfig
139 maskbits used to enable signature-lke group of chains
141 log.info(
"generateChainsManually mask=0x%d",maskbit)
142 from TriggerMenuMT.CFtest.TestUtils
import makeChain, makeChainStep
143 from TriggerMenuMT.HLT.Config.MenuComponents
import EmptyMenuSequence
144 doMuon = maskbit & 0x1
145 doElectron = maskbit>>1 & 0x1
146 doCombo = maskbit>>2 & 0x1
152 from TriggerMenuMT.CFtest.HLTSignatureConfig
import muMenuSequence
154 mu11 = functools.partial(muMenuSequence, flags,step=
"1",reconame=
"v1", hyponame=
"v1")
155 mu12 = functools.partial(muMenuSequence,flags,step=
"1",reconame=
"v2", hyponame=
"v2")
158 mu21 = functools.partial(muMenuSequence,flags,step=
"2",reconame=
"v1", hyponame=
"v1")
159 mu22 = functools.partial(muMenuSequence,flags,step=
"2",reconame=
"v2", hyponame=
"v2")
161 mu31 = functools.partial(muMenuSequence,flags,step=
"3",reconame=
"v1", hyponame=
"v1")
162 mu32 = functools.partial(muMenuSequence,flags,step=
"3",reconame=
"v2", hyponame=
"v2")
164 mu41 = functools.partial(muMenuSequence,flags,step=
"4",reconame=
"v1", hyponame=
"v1")
166 step_mu11 = makeChainStep(
"Step1_mu11", [mu11] )
167 step_mu21 = makeChainStep(
"Step2_mu21", [mu21] )
168 step_mu22 = makeChainStep(
"Step2_mu22", [mu22] )
169 step_mu31 = makeChainStep(
"Step3_mu31", [mu31] )
170 step_mu32 = makeChainStep(
"Step3_mu32", [mu32] )
171 step_mu41 = makeChainStep(
"Step4_mu41", [mu41] )
173 step_empy= makeChainStep(
"Step2_mu1empty", isEmpty=
True)
176 makeChain(flags, name=
'HLT_TestChain8_mv1step_L1MU8F', L1Thresholds=[
"MU5VF"], ChainSteps=[step_mu11]),
177 makeChain(flags, name=
'HLT_TestChain8_mv1_L1MU8F', L1Thresholds=[
"MU8F"], ChainSteps=[step_mu11 , step_mu21 , step_mu31, step_mu41] ),
178 makeChain(flags, name=
'HLT_TestChain20_mv1_L1MU8F', L1Thresholds=[
"MU8F"], ChainSteps=[step_mu11 , step_mu21 , step_mu31, step_mu41] ),
179 makeChain(flags, name=
'HLT_TestChain10_mv2_L1MU8F', L1Thresholds=[
"MU8F"], ChainSteps=[step_mu11 , step_mu22 , step_mu31] ),
180 makeChain(flags, name=
'HLT_TestChain8_mEmpty2_L1MU8F', L1Thresholds=[
"MU5VF"], ChainSteps=[step_mu11 , step_empy , step_mu32, step_mu41] )
184 HLTChains += MuChains
189 from TriggerMenuMT.CFtest.HLTSignatureConfig
import elMenuSequence, gamMenuSequence
190 el11 = functools.partial(elMenuSequence,flags,step=
"1",reconame=
"v1", hyponame=
"v1")
191 el21 = functools.partial(elMenuSequence,flags,step=
"2",reconame=
"v1", hyponame=
"v1")
192 el22 = functools.partial(elMenuSequence,flags,step=
"2",reconame=
"v2", hyponame=
"v2")
193 el23 = functools.partial(elMenuSequence,flags,step=
"2",reconame=
"v2", hyponame=
"v3")
194 el31 = functools.partial(elMenuSequence,flags,step=
"3",reconame=
"v1", hyponame=
"v1")
195 el41 = functools.partial(elMenuSequence,flags,step=
"4",reconame=
"v1", hyponame=
"v1")
198 gamm11 = functools.partial(gamMenuSequence,flags,
"1", reconame=
"v1", hyponame=
"v1")
201 makeChain(flags, name=
'HLT_TestChain5_ev1_L1EM3', L1Thresholds=[
"EM3"], ChainSteps=[ makeChainStep(
"Step1_em11", [el11]), makeChainStep(
"Step2_em21", [el21]), makeChainStep(
"Step3_em31", [el31])] ),
202 makeChain(flags, name=
'HLT_TestChain8_ev1_L1EM3', L1Thresholds=[
"EM3"], ChainSteps=[ makeChainStep(
"Step1_em11", [el11]), makeChainStep(
"Step2_em21", [el21]), makeChainStep(
"Step3_em31", [el31]) ] ),
203 makeChain(flags, name=
'HLT_TestChain5_ev2_L1EM7', L1Thresholds=[
"EM7"], ChainSteps=[ makeChainStep(
"Step1_em11", [el11]), makeChainStep(
"Step2_em22", [el22]) ] ),
204 makeChain(flags, name=
'HLT_TestChain5_ev3_L1EM7', L1Thresholds=[
"EM7"], ChainSteps=[ makeChainStep(
"Step1_em11", [el11]), makeChainStep(
"Step2_em23", [el23]) ] ),
205 makeChain(flags, name=
'HLT_TestChain5_gv1_L1EM7', L1Thresholds=[
"EM7"], ChainSteps=[ makeChainStep(
"Step1_gam11", [gamm11]) ] )
208 HLTChains += ElChains
214 emptySeq1 = functools.partial(EmptyMenuSequence,
"step1EmptySeqence")
215 emptySeq2 = functools.partial(EmptyMenuSequence,
"step2EmptySeqence")
218 from TriggerMenuMT.CFtest.HLTSignatureConfig
import elMenuSequence
219 el11 = functools.partial(elMenuSequence,flags,step=
"1",reconame=
"v1", hyponame=
"v1")
220 el21 = functools.partial(elMenuSequence,flags,step=
"2",reconame=
"v1", hyponame=
"v1")
221 el41 = functools.partial(elMenuSequence,flags,step=
"4",reconame=
"v1", hyponame=
"v1")
224 from TriggerMenuMT.CFtest.HLTSignatureConfig
import muMenuSequence
226 mu11 = functools.partial(muMenuSequence,flags,step=
"1",reconame=
"v1", hyponame=
"v1")
227 mu12 = functools.partial(muMenuSequence,flags,step=
"1",reconame=
"v2", hyponame=
"v2")
229 mu21 = functools.partial(muMenuSequence,flags,step=
"2",reconame=
"v1", hyponame=
"v1")
230 mu22 = functools.partial(muMenuSequence,flags,step=
"2",reconame=
"v2", hyponame=
"v2")
232 mu31 = functools.partial(muMenuSequence,flags,step=
"3",reconame=
"v1", hyponame=
"v1")
233 mu32 = functools.partial(muMenuSequence,flags,step=
"3",reconame=
"v2", hyponame=
"v2")
235 mu41 = functools.partial(muMenuSequence,flags,step=
"4",reconame=
"v1", hyponame=
"v1")
238 from TriggerMenuMT.CFtest.HLTSignatureHypoTools
import dimuDrComboHypoTool
243 makeChain(flags, name=
'HLT_TestChain6_mv1_TestChain10_ev1_L12eEM10L_MU8F', L1Thresholds=[
"MU5VF",
"EM3"], ChainSteps=[
244 makeChainStep(
"Step1_mu_em_serial", [mu11, emptySeq1]),
245 makeChainStep(
"Step2_mu_em_serial", [emptySeq2, el21]),
246 makeChainStep(
"Step3_mu_em_serial", isEmpty=
True),
247 makeChainStep(
"Step4_mu_em_serial", [mu41, el41])] ),
249 makeChain(flags, name=
'HLT_TestChain6_mv2_TestChain8_ev2_L12eEM10L_MU8F', L1Thresholds=[
"MU5VF",
"EM3"], ChainSteps=[
250 makeChainStep(
"Step1_mu2_em", [mu12, el11]),
251 makeChainStep(
"Step2_mu_em", [mu21, el21])] ),
253 makeChain(flags, name=
'HLT_TestChain5_ev1_TestChain8_ev1_L12EM3', L1Thresholds=[
"EM3",
"EM3"], ChainSteps=[
254 makeChainStep(
"Step1_2emAs", [el11, el11]),
255 makeChainStep(
"Step2_2emAs", [el21, el21]) ]),
257 makeChain(flags, name=
'HLT_TestChain5_ev1_TestChain8_ev1_2TestChain6_mv1_L12EM8VH_MU8F', L1Thresholds=[
"EM8VH",
"EM8VH",
"MU8F"], ChainSteps=[
258 makeChainStep(
"Step1_2em_2mu", [el11,el11,mu11]),
259 makeChainStep(
"Step2_2em_2mu", [el21,el21,mu21]) ]),
261 makeChain(flags, name=
'HLT_2TestChain6_mv1_L12MU5VF', L1Thresholds=[
"MU5VF"], ChainSteps=[
262 makeChainStep(
"Step1_2mu", [mu11]),
263 makeChainStep(
"Step2_2mu", [mu21]) ]),
265 makeChain(flags, name=
'HLT_3TestChain6_mv1_L12MU5VF', L1Thresholds=[
"MU5VF"], ChainSteps=[
266 makeChainStep(
"Step1_2mu", [mu11]),
267 makeChainStep(
"Step2_2mu", [mu21]) ]),
269 makeChain(flags, name=
'HLT_TestChain6_mv1_TestChain10_mv1_L12MU5VF', L1Thresholds=[
"MU5VF",
"MU5VF"], ChainSteps=[
270 makeChainStep(
"Step1_2muAs", [mu11,mu11]),
271 makeChainStep(
"Step2_2muAs", [mu21,mu21]) ]),
273 makeChain(flags, name=
'HLT_2TestChain6_mEmpty1_L12MU5VF', L1Thresholds=[
"MU5VF"], ChainSteps=[
274 makeChainStep(
"Step1_2mu_empty", isEmpty=
True),
275 makeChainStep(
"Step2_2mu", [mu21]) ]),
277 makeChain(flags, name=
'HLT_TestChain6_mv1_TestChain5_ev1dr_L12MU5VF', L1Thresholds=[
"MU5VF",
"EM3"], ChainSteps=[
278 makeChainStep(
"Step1_mu_em", [mu11, el11], comboToolConfs=[dimuDrComboHypoTool]),
279 makeChainStep(
"Step2_mu_em", [mu21, el21], comboToolConfs=[dimuDrComboHypoTool])] ),
282 makeChain(flags, name=
'HLT_2TestChain4_mv1dr_L12MU5VF', L1Thresholds=[
"MU5VF"], ChainSteps=[
283 makeChainStep(
"Step1_2mu", [mu11], comboToolConfs=[dimuDrComboHypoTool]),
284 makeChainStep(
"Step2_2mu22", [mu22]) ] ),
288 makeChain(flags, name=
'HLT_TestChain10_mEmpty1_TestChain6_mEmpty1_L12MU5VF', L1Thresholds=[
"MU5VF",
"MU5VF"], ChainSteps=[
289 makeChainStep(
"Step1_2muAs_empty", isEmpty=
True),
290 makeChainStep(
"Step2_2muAs", [mu21, mu21]) ])
293 HLTChains += CombChains