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' )]
25 if (
not flags.Input.isMC ):
26 dataObjects += [(
'LArDeadOTXFromSC' ,
'StoreGateSvc+DeadOTXFromSC' )]
28 precisionCaloElectronVDV = CompFactory.AthViews.ViewDataVerifier(name)
29 precisionCaloElectronVDV.DataObjects = dataObjects
30 acc.addEventAlgo(precisionCaloElectronVDV)
38 log.debug(
'flags = %s',flags)
39 log.debug(
'RoIs = %s',RoIs)
43 from TrigCaloRec.TrigCaloRecConfig
import egammaTopoClusteringCfg, egammaTopoClusteringCfg_LRT, hltCaloTopoClusteringHICfg
47 CellsName =
"CaloCells",
56 acc.merge(topoCluster)
57 tag =
'HI' if ion
is True else ''
59 copier = CompFactory.egammaTopoClusterCopier(
'eTrigEgammaTopoClusterCopier'+ tag + RoIs,
60 InputTopoCollection=TrigEgammaKeys.precisionTopoClusterContainer,
61 OutputTopoCollection= TrigEgammaKeys.precisionCaloTopoCollection)
62 acc.addEventAlgo(copier)
64 trigEgammaRec =
TrigEgammaRecCfg(flags, name =
'eTrigEgammaRec'+tag + RoIs +variant)
66 acc.merge(trigEgammaRec)
69 'eTrigEgammaSuperClusterBuilder' + tag + RoIs,
71 TrigEgammaKeys.precisionElectronCaloClusterContainer,
72 TrigEgammaKeys.precisionEgammaSuperClusterRecCollection)
73 acc.merge(trigEgammaSuperClusterBuilder)