8 flags, name="CaloClusterROIPhiRZContainerMaker", **kwargs):
9 from egammaAlgs.egammaTopoClusterCopierConfig
import (
10 indetTopoClusterCopierCfg)
13 if "CaloSurfaceBuilder" not in kwargs:
14 from CaloTrackingGeometry.CaloTrackingGeometryConfig
import (
15 CaloSurfaceBuilderEntranceCfg)
16 kwargs.setdefault(
"CaloSurfaceBuilder", result.popToolsAndMerge(
19 kwargs.setdefault(
"InputClusterContainerName",
20 flags.Tracking.EgammaTopoClusters)
21 kwargs.setdefault(
"EMEnergyOnly",
True)
23 OutputROIContainerName = []
27 if flags.Tracking.BackTracking.doRoISeeded:
30 pt_cut = flags.Tracking.BackTracking.minRoIClusterEt
31 OutputROIContainerName.append(
32 'InDetCaloClusterROIPhiRZ%.0fGeVBackTracking' % (pt_cut/Units.GeV))
37 if flags.Tracking.doCaloSeededBrem:
38 OutputROIContainerName.append(
'InDetCaloClusterROIPhiRZ0GeV')
41 phiWidth.append(flags.Tracking.phiWidthBrem)
43 OutputROIContainerName.append(
'InDetCaloClusterROIPhiRZ5GeV')
46 phiWidth.append(0.075)
48 if flags.Tracking.doCaloSeededAmbi:
49 OutputROIContainerName.append(
'InDetCaloClusterROIPhiRZ10GeV')
54 kwargs.setdefault(
"OutputROIContainerName", OutputROIContainerName)
55 kwargs.setdefault(
"minPt", minPt)
56 kwargs.setdefault(
"phiWidth", phiWidth)
58 if "egammaCaloClusterSelector" not in kwargs:
59 from egammaCaloTools.egammaCaloToolsConfig
import (
60 egammaCaloClusterSelectorCfg)
61 kwargs.setdefault(
"egammaCaloClusterSelector", result.popToolsAndMerge(
64 result.addEventAlgo(CompFactory.InDet.CaloClusterROIPhiRZContainerMaker(
65 name, **kwargs), primary=
True)