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
11 log = logging.getLogger(__name__)
17 dataObjects= [(
'TrigRoiDescriptorCollection' ,
'StoreGateSvc+%s'%InViewRoIs ),
18 (
'CaloBCIDAverage' ,
'StoreGateSvc+CaloBCIDAverage' ),
19 (
'SG::AuxElement' ,
'StoreGateSvc+EventInfo.averageInteractionsPerCrossing' )]
21 dataObjects += [(
'xAOD::HIEventShapeContainer' ,
'StoreGateSvc+' + TrigEgammaKeys.egEventShape ),
22 (
'CaloBCIDAverage' ,
'StoreGateSvc+CaloBCIDAverage' ),
23 (
'SG::AuxElement' ,
'StoreGateSvc+EventInfo.averageInteractionsPerCrossing' )]
25 precisionCaloPhotonVDV = CompFactory.AthViews.ViewDataVerifier(name)
26 precisionCaloPhotonVDV.DataObjects = dataObjects
27 acc.addEventAlgo(precisionCaloPhotonVDV)
35 log.debug(
'flags = %s',flags)
36 log.debug(
'RoIs = %s',RoIs)
40 from TrigCaloRec.TrigCaloRecConfig
import egammaTopoClusteringCfg, hltCaloTopoClusteringHICfg
44 CellsName =
"CaloCells",
48 acc.merge(topoCluster)
49 tag =
'HI' if ion
is True else ''
51 copier = CompFactory.egammaTopoClusterCopier(
'gTrigEgammaTopoClusterCopier'+ tag + RoIs,
52 InputTopoCollection=TrigEgammaKeys.precisionTopoClusterContainer,
53 OutputTopoCollection= TrigEgammaKeys.precisionCaloTopoCollection)
54 acc.addEventAlgo(copier)
58 acc.merge(trigEgammaRec)
61 'gTrigEgammaSuperClusterBuilder' + tag + RoIs,
63 TrigEgammaKeys.precisionPhotonCaloClusterContainer,
64 TrigEgammaKeys.precisionPhotonSuperClusterCollection)
65 acc.merge(trigEgammaSuperClusterBuilder)