132 generates chains without menu, directly adding Chain configuration to HLTConfig
133 maskbits used to enable signature-lke group of chains
135 log.info(
"generateChainsManually mask=0x%d",maskbit)
136 from TriggerMenuMT.CFtest.TestUtils
import makeChain, makeChainStep
137 from TriggerMenuMT.HLT.Config.MenuComponents
import EmptyMenuSequence
138 doMuon = maskbit & 0x1
139 doElectron = maskbit>>1 & 0x1
140 doCombo = maskbit>>2 & 0x1
146 from TriggerMenuMT.CFtest.HLTSignatureConfig
import muMenuSequence
148 mu11 = functools.partial(muMenuSequence, flags,step=
"1",reconame=
"v1", hyponame=
"v1")
149 mu12 = functools.partial(muMenuSequence,flags,step=
"1",reconame=
"v2", hyponame=
"v2")
152 mu21 = functools.partial(muMenuSequence,flags,step=
"2",reconame=
"v1", hyponame=
"v1")
153 mu22 = functools.partial(muMenuSequence,flags,step=
"2",reconame=
"v2", hyponame=
"v2")
155 mu31 = functools.partial(muMenuSequence,flags,step=
"3",reconame=
"v1", hyponame=
"v1")
156 mu32 = functools.partial(muMenuSequence,flags,step=
"3",reconame=
"v2", hyponame=
"v2")
158 mu41 = functools.partial(muMenuSequence,flags,step=
"4",reconame=
"v1", hyponame=
"v1")
160 step_mu11 = makeChainStep(
"Step1_mu11", [mu11] )
161 step_mu21 = makeChainStep(
"Step2_mu21", [mu21] )
162 step_mu22 = makeChainStep(
"Step2_mu22", [mu22] )
163 step_mu31 = makeChainStep(
"Step3_mu31", [mu31] )
164 step_mu32 = makeChainStep(
"Step3_mu32", [mu32] )
165 step_mu41 = makeChainStep(
"Step4_mu41", [mu41] )
167 step_empy= makeChainStep(
"Step2_mu1empty", multiplicity=[])
170 makeChain(flags, name=
'HLT_TestChain8_mv1step_L1MU5VF', L1Thresholds=[
"MU5VF"], ChainSteps=[step_mu11]),
171 makeChain(flags, name=
'HLT_TestChain8_mv1_L1MU8F', L1Thresholds=[
"MU8F"], ChainSteps=[step_mu11 , step_mu21 , step_mu31, step_mu41] ),
172 makeChain(flags, name=
'HLT_TestChain20_mv1_L1MU8F', L1Thresholds=[
"MU8F"], ChainSteps=[step_mu11 , step_mu21 , step_mu31, step_mu41] ),
173 makeChain(flags, name=
'HLT_TestChain10_mv2_L1MU8F', L1Thresholds=[
"MU8F"], ChainSteps=[step_mu11 , step_mu22 , step_mu31] ),
174 makeChain(flags, name=
'HLT_TestChain6_mEmpty2_L1MU5VF', L1Thresholds=[
"MU5VF"], ChainSteps=[step_mu11 , step_empy , step_mu32, step_mu41] )
178 HLTChains += MuChains
183 from TriggerMenuMT.CFtest.HLTSignatureConfig
import elMenuSequence, gamMenuSequence
184 el11 = functools.partial(elMenuSequence,flags,step=
"1",reconame=
"v1", hyponame=
"v1")
185 el21 = functools.partial(elMenuSequence,flags,step=
"2",reconame=
"v1", hyponame=
"v1")
186 el22 = functools.partial(elMenuSequence,flags,step=
"2",reconame=
"v2", hyponame=
"v2")
187 el23 = functools.partial(elMenuSequence,flags,step=
"2",reconame=
"v2", hyponame=
"v3")
188 el31 = functools.partial(elMenuSequence,flags,step=
"3",reconame=
"v1", hyponame=
"v1")
189 el41 = functools.partial(elMenuSequence,flags,step=
"4",reconame=
"v1", hyponame=
"v1")
192 gamm11 = functools.partial(gamMenuSequence,flags,
"1", reconame=
"v1", hyponame=
"v1")
195 makeChain(flags, name=
'HLT_TestChain5_ev1_L1EM3', L1Thresholds=[
"EM3"], ChainSteps=[ makeChainStep(
"Step1_em11", [el11]), makeChainStep(
"Step2_em21", [el21]), makeChainStep(
"Step3_em31", [el31])] ),
196 makeChain(flags, name=
'HLT_TestChain8_ev1_L1EM3', L1Thresholds=[
"EM3"], ChainSteps=[ makeChainStep(
"Step1_em11", [el11]), makeChainStep(
"Step2_em21", [el21]), makeChainStep(
"Step3_em31", [el31]) ] ),
197 makeChain(flags, name=
'HLT_TestChain5_ev2_L1EM7', L1Thresholds=[
"EM7"], ChainSteps=[ makeChainStep(
"Step1_em11", [el11]), makeChainStep(
"Step2_em22", [el22]) ] ),
198 makeChain(flags, name=
'HLT_TestChain5_ev3_L1EM7', L1Thresholds=[
"EM7"], ChainSteps=[ makeChainStep(
"Step1_em11", [el11]), makeChainStep(
"Step2_em23", [el23]) ] ),
199 makeChain(flags, name=
'HLT_TestChain5_gv1_L1EM7', L1Thresholds=[
"EM7"], ChainSteps=[ makeChainStep(
"Step1_gam11", [gamm11]) ] )
202 HLTChains += ElChains
208 emptySeq1 = functools.partial(EmptyMenuSequence,
"step1EmptySeqence")
209 emptySeq2 = functools.partial(EmptyMenuSequence,
"step2EmptySeqence")
212 from TriggerMenuMT.CFtest.HLTSignatureConfig
import elMenuSequence
213 el11 = functools.partial(elMenuSequence,flags,step=
"1",reconame=
"v1", hyponame=
"v1")
214 el21 = functools.partial(elMenuSequence,flags,step=
"2",reconame=
"v1", hyponame=
"v1")
215 el41 = functools.partial(elMenuSequence,flags,step=
"4",reconame=
"v1", hyponame=
"v1")
218 from TriggerMenuMT.CFtest.HLTSignatureConfig
import muMenuSequence
220 mu11 = functools.partial(muMenuSequence,flags,step=
"1",reconame=
"v1", hyponame=
"v1")
221 mu12 = functools.partial(muMenuSequence,flags,step=
"1",reconame=
"v2", hyponame=
"v2")
223 mu21 = functools.partial(muMenuSequence,flags,step=
"2",reconame=
"v1", hyponame=
"v1")
224 mu22 = functools.partial(muMenuSequence,flags,step=
"2",reconame=
"v2", hyponame=
"v2")
226 mu31 = functools.partial(muMenuSequence,flags,step=
"3",reconame=
"v1", hyponame=
"v1")
227 mu32 = functools.partial(muMenuSequence,flags,step=
"3",reconame=
"v2", hyponame=
"v2")
229 mu41 = functools.partial(muMenuSequence,flags,step=
"4",reconame=
"v1", hyponame=
"v1")
232 from TriggerMenuMT.CFtest.HLTSignatureHypoTools
import dimuDrComboHypoTool
241 makeChain(flags, name=
'HLT_TestChain6_mv1_TestChain10_ev1_L12eEM10L_MU8F', L1Thresholds=[
"MU5VF",
"EM3"], ChainSteps=[
242 makeChainStep(
"Step1_mu_em_serial", [mu11, emptySeq1], multiplicity=[1,1]),
243 makeChainStep(
"Step2_mu_em_serial", [emptySeq2, el21], multiplicity=[1,1]),
244 makeChainStep(
"Step3_mu_em_serial", multiplicity=[]),
245 makeChainStep(
"Step4_mu_em_serial", [mu41, el41], multiplicity=[1,1])] ),
247 makeChain(flags, name=
'HLT_TestChain6_mv2_TestChain8_ev2_L12eEM10L_MU8F', L1Thresholds=[
"MU5VF",
"EM3"], ChainSteps=[
248 makeChainStep(
"Step1_mu2_em", [mu12, el11], multiplicity=[1,1]),
249 makeChainStep(
"Step2_mu_em", [mu21, el21], multiplicity=[1,1])] ),
251 makeChain(flags, name=
'HLT_TestChain5_ev1_TestChain8_ev1_L12EM3', L1Thresholds=[
"EM3",
"EM3"], ChainSteps=[
252 makeChainStep(
"Step1_2emAs", [el11, el11], multiplicity=[1,1]),
253 makeChainStep(
"Step2_2emAs", [el21, el21], multiplicity=[1,1]) ]),
255 makeChain(flags, name=
'HLT_TestChain5_ev1_TestChain8_ev1_2TestChain6_mv1_L12EM8VH_MU8F', L1Thresholds=[
"EM8VH",
"EM8VH",
"MU8F"], ChainSteps=[
256 makeChainStep(
"Step1_2em_2mu", [el11,el11,mu11], multiplicity=[1,1,2]),
257 makeChainStep(
"Step2_2em_2mu", [el21,el21,mu21], multiplicity=[1,1,2]) ]),
259 makeChain(flags, name=
'HLT_2TestChain6_mv1_L12MU5VF', L1Thresholds=[
"MU5VF"], ChainSteps=[
260 makeChainStep(
"Step1_2mu", [mu11], multiplicity=[2]),
261 makeChainStep(
"Step2_2mu", [mu21], multiplicity=[2]) ]),
263 makeChain(flags, name=
'HLT_3TestChain6_mv1_L12MU5VF', L1Thresholds=[
"MU5VF"], ChainSteps=[
264 makeChainStep(
"Step1_2mu", [mu11], multiplicity=[3]),
265 makeChainStep(
"Step2_2mu", [mu21], multiplicity=[3]) ]),
267 makeChain(flags, name=
'HLT_TestChain6_mv1_TestChain10_mv1_L12MU5VF', L1Thresholds=[
"MU5VF",
"MU5VF"], ChainSteps=[
268 makeChainStep(
"Step1_2muAs", [mu11,mu11], multiplicity=[1,1]),
269 makeChainStep(
"Step2_2muAs", [mu21,mu21], multiplicity=[1,1]) ]),
271 makeChain(flags, name=
'HLT_2TestChain6_mEmpty1_L12MU5VF', L1Thresholds=[
"MU5VF"], ChainSteps=[
272 makeChainStep(
"Step1_2mu_empty", multiplicity=[]),
273 makeChainStep(
"Step2_2mu", [mu21], multiplicity=[2]) ]),
275 makeChain(flags, name=
'HLT_TestChain6_mv1_TestChain5_ev1dr_L12MU5VF', L1Thresholds=[
"MU5VF",
"EM3"], ChainSteps=[
276 makeChainStep(
"Step1_mu_em", [mu11, el11], multiplicity=[1,1], comboToolConfs=[dimuDrComboHypoTool]),
277 makeChainStep(
"Step2_mu_em", [mu21, el21], multiplicity=[1,1], comboToolConfs=[dimuDrComboHypoTool])] ),
280 makeChain(flags, name=
'HLT_2TestChain4_mv1dr_L12MU5VF', L1Thresholds=[
"MU5VF"], ChainSteps=[
281 makeChainStep(
"Step1_2mu", [mu11], multiplicity=[2], comboToolConfs=[dimuDrComboHypoTool]),
282 makeChainStep(
"Step2_2mu22", [mu22], multiplicity=[2]) ] ),
286 makeChain(flags, name=
'HLT_TestChain10_mEmpty1_TestChain6_mEmpty1_L12MU5VF', L1Thresholds=[
"MU5VF",
"MU5VF"], ChainSteps=[
287 makeChainStep(
"Step1_2muAs_empty", multiplicity=[]),
288 makeChainStep(
"Step2_2muAs", [mu21, mu21], multiplicity=[1,1]) ])
293 HLTChains += CombChains