ATLAS Offline Software
Loading...
Searching...
No Matches
FPGAClusterSortingConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentFactory import CompFactory
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5
6def FPGAClusterSortingAlgCfg(flags, name="FPGAClusterSortingAlg", **kwargs):
7 """Return a ComponentAccumulator configured for FPGAClusterSorting"""
8 acc = ComponentAccumulator()
9
10 kwargs.setdefault('xAODPixelClusterContainer', 'FPGAPixelClusters')
11 kwargs.setdefault('xAODStripClusterContainer', 'FPGAStripClusters')
12 kwargs.setdefault('sortedxAODPixelClusterContainer', 'SortedFPGAPixelClusters')
13 kwargs.setdefault('sortedxAODStripClusterContainer', 'SortedFPGAStripClusters')
14
15 ClustrerSorting = CompFactory.FPGAClusterSortingAlg(name,**kwargs)
16
17 # Add the algorithm to the accumulator
18 acc.addEventAlgo(ClustrerSorting)
19
20 return acc
21
22
23def FPGAClusterDataVectorSortingAlgCfg(flags, name="FPGAClusterDataVectorSortingAlg", **kwargs):
24 """Return a ComponentAccumulator configured for FPGAClusterDataVectorSortingAlg"""
25 acc = ComponentAccumulator()
26
27 kwargs.setdefault('xAODPixelClusterContainer', 'FPGAPixelClusters')
28 kwargs.setdefault('xAODStripClusterContainer', 'FPGAStripClusters')
29 kwargs.setdefault('sortedxAODPixelClusterContainer', 'SortedFPGAPixelClusters')
30 kwargs.setdefault('sortedxAODStripClusterContainer', 'SortedFPGAStripClusters')
31
32 ClustrerSorting = CompFactory.FPGAClusterDataVectorSortingAlg(name,**kwargs)
33
34 # Add the algorithm to the accumulator
35 acc.addEventAlgo(ClustrerSorting)
36
37 return acc
FPGAClusterDataVectorSortingAlgCfg(flags, name="FPGAClusterDataVectorSortingAlg", **kwargs)
FPGAClusterSortingAlgCfg(flags, name="FPGAClusterSortingAlg", **kwargs)