3 from AthenaConfiguration.ComponentFactory
import CompFactory
4 from TriggerMenuMT.HLT.Config.ChainConfigurationBase
import ChainConfigurationBase
5 from TriggerMenuMT.HLT.Config.MenuComponents
import MenuSequence, SelectionCA, InEventRecoCA
7 from AthenaCommon.Logging
import logging
8 logging.getLogger().
info(
"Importing %s",__name__)
9 log = logging.getLogger(__name__)
29 'L1_BTAG-MU5VFjJ20_2jJ40p0ETA25_jJ50p0ETA25',\
30 'L1_BPH-0M9-eEM9-eEM7_MU5VF',\
31 'L1_BPH-2M9-2DR15-2MU5VF',\
32 'L1_BPH-2M9-0DR15-C-MU5VFMU3V',\
33 'L1_BPH-7M11-25DR99-2MU3VF',\
34 'L1_BPH-8M15-0DR22-2MU5VF',\
35 'L1_BPH-8M15-0DR22-MU5VFMU3V-BO',\
36 'L1_cTAU30M_2cTAU20M_DR-eTAU30eTAU20',\
43 'L1_jJ80p0ETA25_2jJ40p30ETA49',\
45 'L1_jJ90_DETA20-jJ90J',\
48 'L1_cTAU30M_3DR35-MU8F-eTAU30',\
52 'L1_2cTAU50M_DPHI-2eTAU50',
59 inputMakerAlg = CompFactory.InputMakerForRoI(
"IM_enhancedBias")
60 inputMakerAlg.RoITool = CompFactory.ViewCreatorInitialROITool()
61 inputMakerAlg.RoIs=
"enhancedBiasInputRoIs"
63 reco = InEventRecoCA(
"EnhancedBiasReco", inputMaker=inputMakerAlg)
69 tool = CompFactory.L1InfoHypoTool(chainDict[
'chainName'],
70 CTPUnpackingTool = CompFactory.CTPUnpackingTool(UseTBPBits =
True))
72 key = chainDict[
'chainParts'][0][
'algType']
73 if key
not in l1seeds:
74 log.error(
"No configuration exist for EB chain: %s", key)
76 tool.L1ItemNames = l1seeds[key]
84 selAcc = SelectionCA(
"enhancedBiasSequence")
85 selAcc.mergeReco(reco)
86 selAcc.addHypoAlgo(CompFactory.L1InfoHypo(
"EnhancedBiasHypo"))
88 return MenuSequence(flags,
90 HypoToolGen = EnhancedBiasHypoToolGen)
95 ChainConfigurationBase.__init__(self, chainDict)
100 log.debug(
"Assembling chain for %s", self.chainName)
102 chainSteps.append( self.getStep(flags,
"EnhancedBias", [enhancedBiasMenuSequenceGenCfg]) )
104 return self.buildChain(chainSteps)