3 from AthenaCommon.Logging
import logging
4 logging.getLogger().
info(
"Importing %s",__name__)
5 log = logging.getLogger(__name__)
8 from ..Config.ChainConfigurationBase
import ChainConfigurationBase
10 from TriggerMenuMT.CFtest.HLTSignatureConfig
import muMenuSequence, elMenuSequence, gamMenuSequence
11 from TriggerMenuMT.CFtest.HLTSignatureHypoTools
import dimuDrComboHypoTool
12 from TriggerMenuMT.HLT.Config.MenuComponents
import EmptyMenuSequenceCfg
20 def muCfg(flags,step,reconame, hyponame):
24 return muCfg(flags,step=
"1",reconame=
"v1", hyponame=
"v1")
27 return muCfg(flags,step=
"2",reconame=
"v1", hyponame=
"v1")
30 return muCfg(flags,step=
"3",reconame=
"v1", hyponame=
"v1")
33 return muCfg(flags,step=
"3",reconame=
"v2", hyponame=
"v2")
36 return muCfg(flags,step=
"4",reconame=
"v1", hyponame=
"v1")
39 return muCfg(flags,step=
"2",reconame=
"v2", hyponame=
"v2")
43 def elCfg(flags,step,reconame, hyponame):
46 def gamCfg(flags,step,reconame, hyponame):
50 return elCfg(flags,step=
"1",reconame=
"v1", hyponame=
"v1")
53 return elCfg(flags,step=
"2",reconame=
"v1", hyponame=
"v1")
56 return elCfg(flags,step=
"2",reconame=
"v2", hyponame=
"v2")
59 return elCfg(flags,step=
"2",reconame=
"v2", hyponame=
"v3")
62 return elCfg(flags,step=
"3",reconame=
"v1", hyponame=
"v1")
65 return gamCfg(flags,step=
"1",reconame=
"v1", hyponame=
"v1")
75 ChainConfigurationBase.__init__(self,chainDict)
83 key = self.chainPart[
'extra']
85 log.debug(
'testChain key = %s', key)
86 if key
in stepDictionary:
87 steps=stepDictionary[key]
89 raise RuntimeError(
"Chain configuration unknown for electron chain with key: " + key )
92 chainstep = getattr(self, step)(flags)
93 chainSteps+=[chainstep]
96 myChain = self.buildChain(chainSteps)
108 'mv1step': [
'Step_mu11'],
109 'mv1': [
'Step_mu11',
'Step_mu21',
'Step_mu31',
'Step_mu41'],
110 'mv2': [
'Step_mu11',
'Step_mu22',
'Step_mu31'],
111 'mEmpty1': [
'Step_empty1',
'Step_mu21'],
113 'mEmpty2': [
'Step_mu11' ,
'Step_empty2' ,
'Step_mu31',
'Step_mu41'],
114 'mEmpty3': [
'Step_mu11' ,
'Step_empty2' ,
'Step_empty3',
'Step_mu41'],
115 'mv1dr' : [
'Step_mu11Dr',
'Step_mu21',
'Step_mu31',
'Step_mu41'],
117 'ev1': [
'Step_em11',
'Step_em21',
'Step_em31'],
118 'ev2': [
'Step_em11',
'Step_em22'],
119 'ev3': [
'Step_em11',
'Step_em23'],
120 'gv1': [
'Step_gam11'],
121 'ev1dr' : [
'Step_em11Dr',
'Step_em21Dr',
'Step_em31']
123 return stepDictionary
128 return self.getStep(flags,
"mu11",[ muCfg111 ])
131 return self.getStep(flags,
"mu21",[ muCfg211 ])
134 return self.getStep(flags,
"mu11",[ muCfg111 ], comboTools=[dimuDrComboHypoTool])
137 return self.getStep(flags,
"mu21",[ muCfg211 ], comboTools=[dimuDrComboHypoTool])
140 return self.getStep(flags,
"mu22",[ muCfg222 ])
143 return self.getStep(flags,
"mu31",[ muCfg311 ])
146 return self.getStep(flags,
"mu32",[ muCfg322 ])
149 return self.getStep(flags,
"mu41",[ muCfg411 ])
152 return self.getEmptyStep(
'empty')
155 return self.getEmptyStep(
'empty')
158 return self.getStep(flags,
'emptySeq', [EmptyMenuSequenceCfg], name=
"EmptySequence")
163 return self.getStep(flags,
"em11",[ elCfg111 ])
166 return self.getStep(flags,
"em11",[ elCfg111 ], comboTools=[dimuDrComboHypoTool])
169 return self.getStep(flags,
"em21",[ elCfg211 ])
172 return self.getStep(flags,
"em21",[ elCfg211 ], comboTools=[dimuDrComboHypoTool])
175 return self.getStep(flags,
"em22",[ elCfg222 ])
178 return self.getStep(flags,
"em23",[ elCfg223 ])
181 return self.getStep(flags,
"em31",[ elCfg311 ])
184 return self.getStep(flags,
"gam11",[ gamCfg111 ])