Skip to content
Snippets Groups Projects
Commit 0f2795fd authored by Dave Casper's avatar Dave Casper
Browse files

Fix hard-coding of timing pattern

parent 7e5bfd79
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,9 @@ def FaserSCT_ClusterizationCommonCfg(flags, name="FaserSCT_ClusterizationToolCom
Tracker__TrackerClusterMakerTool,Tracker__FaserSCT_ClusteringTool=CompFactory.getComps("Tracker::TrackerClusterMakerTool", "Tracker::FaserSCT_ClusteringTool")
trackerClusterMakerTool = Tracker__TrackerClusterMakerTool(name = "TrackerClusterMakerTool")
faserSCT_LorentzAngleTool=acc.popToolsAndMerge(FaserSCT_LorentzAngleCfg(flags))
clusteringTool = Tracker__FaserSCT_ClusteringTool(name, globalPosAlg = trackerClusterMakerTool, FaserSiLorentzAngleTool=faserSCT_LorentzAngleTool)
clusteringTool.timeBins = "01X"
kwargs.setdefault("timeBins", "01X")
clusteringTool = Tracker__FaserSCT_ClusteringTool(name, globalPosAlg = trackerClusterMakerTool, FaserSiLorentzAngleTool=faserSCT_LorentzAngleTool, **kwargs)
# clusteringTool.timeBins = "01X"
# attach ToolHandles
acc.setPrivateTools(clusteringTool)
return acc
......@@ -35,7 +36,13 @@ def FaserSCT_ClusterizationToolCfg(flags, name="FaserSCT_ClusterizationTool", **
def FaserSCT_ClusterizationBasicCfg(flags, **kwargs):
"""Return ComponentAccumulator for FaserSCT Clusterization"""
acc = ComponentAccumulator()
clusterTool = acc.popToolsAndMerge(FaserSCT_ClusterizationToolCfg(flags))
pattern = kwargs.pop("ClusterToolTimingPattern")
# print("ClusterToolTimingPattern = ", pattern)
if len(pattern) > 0 :
clusterTool = acc.popToolsAndMerge(FaserSCT_ClusterizationToolCfg(flags, timeBins = pattern ))
else:
clusterTool = acc.popToolsAndMerge(FaserSCT_ClusterizationToolCfg(flags))
kwargs.setdefault("SCT_ClusteringTool", clusterTool)
kwargs.setdefault("DataObjectName", "SCT_RDOs")
kwargs.setdefault("ClustersName", "SCT_ClusterContainer")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment