5 from AthenaCommon.Logging
import logging
6 from TriggerMenuMT.HLT.Egamma.TrigEgammaKeys
import getTrigEgammaKeys
7 from TriggerMenuMT.HLT.Egamma.TrigEgammaFactoriesCfg
import TrigEgammaRecCfg, TrigEgammaSuperClusterBuilderCfg
8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
12 log = logging.getLogger(__name__)
18 dataObjects= [(
'TrigRoiDescriptorCollection' ,
'StoreGateSvc+%s'%InViewRoIs ),
19 (
'CaloBCIDAverage' ,
'StoreGateSvc+CaloBCIDAverage' ),
20 (
'SG::AuxElement' ,
'StoreGateSvc+EventInfo.averageInteractionsPerCrossing' )]
22 dataObjects += [(
'xAOD::HIEventShapeContainer' ,
'StoreGateSvc+' + TrigEgammaKeys.egEventShape ),
23 (
'CaloBCIDAverage' ,
'StoreGateSvc+CaloBCIDAverage' ),
24 (
'SG::AuxElement' ,
'StoreGateSvc+EventInfo.averageInteractionsPerCrossing' )]
26 precisionCaloElectronVDV = CompFactory.AthViews.ViewDataVerifier(name)
27 precisionCaloElectronVDV.DataObjects = dataObjects
28 acc.addEventAlgo(precisionCaloElectronVDV)
36 log.debug(
'flags = %s',flags)
37 log.debug(
'RoIs = %s',RoIs)
41 from TrigCaloRec.TrigCaloRecConfig
import egammaTopoClusteringCfg, egammaTopoClusteringCfg_LRT, hltCaloTopoClusteringHICfg
45 CellsName =
"CaloCells",
54 acc.merge(topoCluster)
55 tag =
'HI' if ion
is True else ''
57 copier = CompFactory.egammaTopoClusterCopier(
'eTrigEgammaTopoClusterCopier'+ tag + RoIs,
58 InputTopoCollection=TrigEgammaKeys.precisionTopoClusterContainer,
59 OutputTopoCollection= TrigEgammaKeys.precisionCaloTopoCollection)
60 acc.addEventAlgo(copier)
62 trigEgammaRec =
TrigEgammaRecCfg(flags, name =
'eTrigEgammaRec'+tag + RoIs +variant)
64 acc.merge(trigEgammaRec)
67 'eTrigEgammaSuperClusterBuilder' + tag + RoIs,
69 TrigEgammaKeys.precisionElectronCaloClusterContainer,
70 TrigEgammaKeys.precisionEgammaSuperClusterRecCollection)
71 acc.merge(trigEgammaSuperClusterBuilder)