9from AthenaConfiguration.AllConfigFlags
import initConfigFlags
10from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
11from AthenaConfiguration.ComponentFactory
import CompFactory
12from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
13from AthenaConfiguration.TestDefaults
import defaultTestFiles
17from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
23 '''Configure the example algorithm for running on a CUDA device.
26 result = ComponentAccumulator()
28 alg = CompFactory.AthCUDAExamples.TrackParticleCalibratorExampleAlg(**kwargs)
29 result.addEventAlgo(alg)
33if __name__ ==
'__main__':
36 flags = initConfigFlags()
37 flags.Exec.MaxEvents = 100
38 flags.Input.Files = defaultTestFiles.AOD_RUN3_DATA
43 acc = MainServicesCfg(flags)
46 acc.merge(PoolReadCfg(flags))
52 sys.exit(acc.run().isFailure())
TrackParticleCalibratorExampleAlgCfg(flags, **kwargs)