8 acc = ComponentAccumulator()
9 TrigEgammaKeys = getTrigEgammaKeys(flags)
10 egammaRec = CompFactory.egammaRecBuilder( name = name,
11 InputClusterContainerName = TrigEgammaKeys.precisionCaloTopoCollection,
12 egammaRecContainer = TrigEgammaKeys.precisionCaloEgammaRecCollection,
13 doTrackMatching =
False,
15 TrackMatchBuilderTool =
None,
16 ConversionBuilderTool =
None,
17 doConversions =
False)
18 acc.addEventAlgo(egammaRec)
22 acc = ComponentAccumulator()
23 TrigEgammaKeys = getTrigEgammaKeys(flags)
24 from egammaTools.egammaSwToolConfig
import egammaSwToolCfg
25 from egammaMVACalib.egammaMVACalibConfig
import egammaMVASvcCfg
26 trigMVAfolder = flags.Trigger.egamma.Calib.precCaloMVAVersion
27 TrigEgammaSuperClusterBuilder = CompFactory.egammaSuperClusterBuilder(
29 InputEgammaRecContainerName = TrigEgammaKeys.precisionCaloEgammaRecCollection,
30 SuperClusterCollectionName = superClusterCollectionName,
31 OutputEgammaRecContainerKey = superegammaRecCollectionName,
32 ClusterCorrectionTool = acc.popToolsAndMerge(egammaSwToolCfg(flags)),
33 MVACalibSvc = acc.getPrimaryAndMerge(egammaMVASvcCfg(flags,name=
"trigPrecCaloEgammaMVASvc",folder = trigMVAfolder)),
34 CalibrationType = calibrationType,
35 EtThresholdCut = 1000,
36 LinkToConstituents =
False)
37 acc.addEventAlgo(TrigEgammaSuperClusterBuilder)
41 acc = ComponentAccumulator()
42 TrigEgammaKeys = getTrigEgammaKeys(flags, ion =ion)
44 name =
"TrigCaloClustersInConeToolHI"
46 name =
"TrigCaloClustersInConeTool"
47 tool = CompFactory.xAOD.CaloClustersInConeTool(name = name,
48 CaloClusterLocation = TrigEgammaKeys.precisionTopoClusterContainer)
49 acc.setPrivateTools(tool)
67 acc = ComponentAccumulator()
68 name =
"TrigCaloIsolationToolHI"
69 from CaloIdentifier
import SUBCALO
70 tool = CompFactory.xAOD.CaloIsolationTool(name = name,
73 FlowElementsInConeTool =
None,
74 ParticleCaloExtensionTool =
None,
76 ParticleCaloCellAssociationTool =
None,
77 saveOnlyRequestedCorrections =
True,
78 InitializeReadHandles =
False,
79 doEnergyDensityCorrection =
True,
81 EMCaloNums = [SUBCALO.LAREM],
82 HadCaloNums = [SUBCALO.LARHEC, SUBCALO.TILE])
83 acc.setPrivateTools(tool)
87 acc = ComponentAccumulator()
88 name =
"TrigCaloIsolationTool"
89 from CaloIdentifier
import SUBCALO
90 tool = CompFactory.xAOD.CaloIsolationTool(name = name,
93 FlowElementsInConeTool =
None,
94 ParticleCaloExtensionTool =
None,
96 ParticleCaloCellAssociationTool =
None,
97 saveOnlyRequestedCorrections =
True,
98 InitializeReadHandles =
True,
99 TopoClusterEDCentralContainer =
'TrigIsoEventShape',
100 TopoClusterEDForwardContainer =
'TrigIsoEventShape',
101 EFlowEDCentralContainer =
'TrigIsoEventShape',
102 EFlowEDForwardContainer =
'TrigIsoEventShape',
103 EMCaloNums = [SUBCALO.LAREM],
104 HadCaloNums = [SUBCALO.LARHEC, SUBCALO.TILE])
105 acc.setPrivateTools(tool)
110 acc = ComponentAccumulator()
111 TrigEgammaKeys = getTrigEgammaKeys(flags, ion=ion)
113 name =
'TrigPhotonIsolationBuilderHI'
116 name =
'TrigPhotonIsolationBuilder'
119 from xAODPrimitives.xAODIso
import xAODIso
as isoPar
120 TrigPhotonIsolationBuilder = CompFactory.IsolationBuilder(name = name,
121 PhotonCollectionContainerName = TrigEgammaKeys.precisionPhotonContainer,
122 CaloCellIsolationTool =
None,
123 CaloTopoIsolationTool = acc.popToolsAndMerge(TrigCaloIsolationTool),
124 PFlowIsolationTool =
None,
125 TrackIsolationTool =
None,
126 PhIsoTypes = [[isoPar.topoetcone20, isoPar.topoetcone30, isoPar.topoetcone40]],
127 PhCorTypes = [[isoPar.core57cells, isoPar.pileupCorrection]],
128 PhCorTypesExtra = [[]],
130 acc.addEventAlgo(TrigPhotonIsolationBuilder)
135 acc = ComponentAccumulator()
137 TrigEgammaPseudoJetAlgBuilder = CompFactory.PseudoJetAlgorithm(name = name,
139 InputContainer =
"HLT_TopoCaloClustersFS",
140 OutputContainer =
"PseudoJetTrigEMTopo",
141 SkipNegativeEnergy =
True)
142 acc.addEventAlgo(TrigEgammaPseudoJetAlgBuilder)
161 acc = ComponentAccumulator()
162 TrigIsoEventShapeAlg = CompFactory.EventDensityAthAlg(name = name,
164 acc.addEventAlgo(TrigIsoEventShapeAlg)