ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExSYCL
python
AthExSYCL/python/LinearTransformExampleConfig.py
Go to the documentation of this file.
1
#!/usr/bin/env python3
2
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
#
4
# Simple ComponentAccumulator configuration for running
5
# LinearTransformExampleAlg
6
7
8
9
from
AthenaConfiguration.ComponentFactory
import
CompFactory
10
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
11
12
import
sys
13
14
def
LinearTransformExampleCfg(flags):
15
result = ComponentAccumulator()
16
result.addEventAlgo(CompFactory.AthSYCL.LinearTransformExampleAlg())
17
return
result
18
19
20
if
__name__ ==
"__main__"
:
21
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
22
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
23
# Set up the job's flags.
24
flags = initConfigFlags()
25
flags.Exec.MaxEvents = 10
26
flags.Input.Files = []
27
flags.fillFromArgs()
28
flags.lock()
29
30
# Set up the main services.
31
acc = MainServicesCfg(flags)
32
33
# Merge example algorithm config
34
acc.merge(LinearTransformExampleCfg(flags))
35
36
# Run the configuration.
37
sys.exit(acc.run().isFailure())
Generated on
for ATLAS Offline Software by
1.17.0