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' )]
24 if (
not flags.Input.isMC ):
25 dataObjects += [(
'LArDeadOTXFromSC' ,
'StoreGateSvc+DeadOTXFromSC' )]
27 precisionCaloPhotonVDV = CompFactory.AthViews.ViewDataVerifier(name)
28 precisionCaloPhotonVDV.DataObjects = dataObjects
29 acc.addEventAlgo(precisionCaloPhotonVDV)
37 log.debug(
'flags = %s',flags)
38 log.debug(
'RoIs = %s',RoIs)
42 from TrigCaloRec.TrigCaloRecConfig
import egammaTopoClusteringCfg, hltCaloTopoClusteringHICfg
46 CellsName =
"CaloCells",
50 acc.merge(topoCluster)
51 tag =
'HI' if ion
is True else ''
53 copier = CompFactory.egammaTopoClusterCopier(
'gTrigEgammaTopoClusterCopier'+ tag + RoIs,
54 InputTopoCollection=TrigEgammaKeys.precisionTopoClusterContainer,
55 OutputTopoCollection= TrigEgammaKeys.precisionCaloTopoCollection)
56 acc.addEventAlgo(copier)
60 acc.merge(trigEgammaRec)
63 'gTrigEgammaSuperClusterBuilder' + tag + RoIs,
65 TrigEgammaKeys.precisionPhotonCaloClusterContainer,
66 TrigEgammaKeys.precisionPhotonSuperClusterCollection)
67 acc.merge(trigEgammaSuperClusterBuilder)