7from TriggerMenuMT.HLT.Egamma.TrigEgammaFactoriesCfg
import TrigEgammaRecCfg, TrigEgammaSuperClusterBuilderCfg
15 acc = ComponentAccumulator()
16 TrigEgammaKeys = getTrigEgammaKeys(flags, ion=ion)
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)
34 acc = ComponentAccumulator()
36 TrigEgammaKeys = getTrigEgammaKeys(flags, ion = ion)
37 log.debug(
'flags = %s',flags)
38 log.debug(
'RoIs = %s',RoIs)
42 from TrigCaloRec.TrigCaloRecConfig
import egammaTopoClusteringCfg, hltCaloTopoClusteringHICfg
45 topoCluster = hltCaloTopoClusteringHICfg(flags,
46 CellsName =
"CaloCells",
49 topoCluster = egammaTopoClusteringCfg(flags, RoIs)
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)
58 trigEgammaRec = TrigEgammaRecCfg(flags, name =
'gTrigEgammaRec'+tag + RoIs)
60 acc.merge(trigEgammaRec)
62 trigEgammaSuperClusterBuilder = TrigEgammaSuperClusterBuilderCfg(flags,
63 'gTrigEgammaSuperClusterBuilder' + tag + RoIs,
65 TrigEgammaKeys.precisionPhotonCaloClusterContainer,
66 TrigEgammaKeys.precisionPhotonSuperClusterCollection)
67 acc.merge(trigEgammaSuperClusterBuilder)