ATLAS Offline Software
Loading...
Searching...
No Matches
SpacepointsConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentFactory import CompFactory
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5from AthenaCommon.Constants import DEBUG
6
7def SpacepointsCfg(flags, **kwarg):
8 acc=ComponentAccumulator()
9
10 kwarg.setdefault('xclbin', '')
11 kwarg.setdefault('KernelName', 'dut')
12 kwarg.setdefault('InputTV', '')
13 kwarg.setdefault('RefTV', '')
14
15 acc.addEventAlgo(CompFactory.Spacepoints(**kwarg))
16
17 return acc
18
19if __name__=="__main__":
20 from AthenaConfiguration.AllConfigFlags import initConfigFlags
21 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
22
23 ConfigFlags = initConfigFlags()
24 ConfigFlags.Concurrency.NumThreads = 1
25 ConfigFlags.lock()
26
27 cfg=MainServicesCfg(ConfigFlags)
28
29 acc=SpacepointsCfg(ConfigFlags, OutputLevel=DEBUG)
30 cfg.merge(acc)
31
32 cfg.run(1)
SpacepointsCfg(flags, **kwarg)