ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExCUDA
python
LinearTransformStandaloneExampleConfig.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
# AthCUDAExamples::LinearTransformStandaloneExampleAlg
6
7
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
8
from
AthenaConfiguration.ComponentFactory
import
CompFactory
9
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
10
11
import
sys
12
13
# Set up the job's flags.
14
flags = initConfigFlags()
15
flags.Exec.MaxEvents = 10
16
flags.Input.Files = []
17
flags.fillFromArgs()
18
flags.lock()
19
20
# Set up the main services.
21
acc = MainServicesCfg(flags)
22
23
# Set up the example algorithm.
24
acc.addEventAlgo(CompFactory.AthCUDAExamples.LinearTransformStandaloneExampleAlg())
25
26
# Run the configuration.
27
sys.exit(acc.run().isFailure())
Generated on
for ATLAS Offline Software by
1.17.0