58def TrigTopoEgammaPhotonCfg_HI(flags):
59 acc = ComponentAccumulator()
60 from TriggerMenuMT.HLT.Egamma.TrigEgammaKeys import getTrigEgammaKeys
61 TrigEgammaKeys = getTrigEgammaKeys(flags,ion=True)
62 from egammaTools.EMShowerBuilderConfig import EMShowerBuilderCfg
63 from egammaTools.EMPIDBuilderConfig import EMPIDBuilderPhotonCfg
64 TrigTopoEgammaPhotons = CompFactory.xAODEgammaBuilder( name = 'TrigTopoEgammaPhotons_HI',
65 InputElectronRecCollectionName = TrigEgammaKeys.precisionElectronSuperClusterRecCollection,
66 InputPhotonRecCollectionName = TrigEgammaKeys.precisionPhotonSuperClusterCollection,
67 ElectronOutputName = TrigEgammaKeys.precisionElectronContainer,
68 PhotonOutputName = TrigEgammaKeys.precisionPhotonContainer,
69 EMClusterTool = acc.popToolsAndMerge(TrigEMClusterToolCfg(flags, ion=True)),
70 EMShowerTool = acc.popToolsAndMerge(EMShowerBuilderCfg(flags,name='TrigEMShowerBuilder_HI',CellsName="CorrectedRoICaloCells")),
71 PhotonTools = [acc.popToolsAndMerge(EMPIDBuilderPhotonCfg(flags,name='TrigEMPIDBuilderPhotonCfg_HI'))],
72 doPhotons = True,
73 doElectrons = False,
74 )
75 acc.addEventAlgo(TrigTopoEgammaPhotons)
76 return acc
77