3def egammaFSHIEventShapeMakerCfg(flags):
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 from TrigCaloRec.TrigCaloRecConfig import hltCaloCellMakerCfg
7 from HLTSeeding.HLTSeedingConfig import mapThresholdToL1RoICollection
8 from TriggerMenuMT.HLT.Egamma.TrigEgammaKeys import getTrigEgammaKeys
9
10 acc = ComponentAccumulator()
11 cellMakerAcc = hltCaloCellMakerCfg(flags, 'HLTCaloCellMakerEGFS',
12 roisKey = mapThresholdToL1RoICollection('FSNOSEED'),
13 CellsName = 'CaloCellsEGFS', monitorCells=False)
14
15 acc.merge(cellMakerAcc)
16
17
18 eventShapeFiller = CompFactory.HIEventShapeFillerTool(
19 EventShapeMapTool = CompFactory.HIEventShapeMapTool())
20
21 eventShapeMakerAlg = CompFactory.HIEventShapeMaker('HLTEventShapeMakerEG',
22 HIEventShapeFillerTool = eventShapeFiller,
23 InputCellKey=cellMakerAcc.getPrimary().CellsName,
24 NaviTowerKey="",
25 InputTowerKey="",
26 OutputContainerKey=getTrigEgammaKeys(flags, ion=True).egEventShape)
27
28 acc.addEventAlgo(eventShapeMakerAlg)
29 return acc
30
31
32