ATLAS Offline Software
Loading...
Searching...
No Matches
TrackParticleCalibratorExampleConfig Namespace Reference

Functions

 TrackParticleCalibratorExampleAlgCfg (flags, **kwargs)

Variables

 flags = initConfigFlags()
 MaxEvents
 Files
 acc = MainServicesCfg(flags)

Function Documentation

◆ TrackParticleCalibratorExampleAlgCfg()

TrackParticleCalibratorExampleConfig.TrackParticleCalibratorExampleAlgCfg ( flags,
** kwargs )
Configure the example algorithm for running on a CUDA device.

Definition at line 28 of file TrackParticleCalibratorExampleConfig.py.

28def TrackParticleCalibratorExampleAlgCfg(flags, **kwargs):
29 '''Configure the example algorithm for running on a CUDA device.
30 '''
31 # Create an accumulator to hold the configuration.
32 result = ComponentAccumulator()
33 # Create the example algorithm.
34 alg = CompFactory.AthCUDAExamples.TrackParticleCalibratorExampleAlg(**kwargs)
35 hostMR = HostMemoryResourceToolCfg(flags, **kwargs)
36 alg.HostMR = hostMR.getPrimary()
37 result.merge(hostMR)
38 deviceMR = DeviceMemoryResourceToolCfg(flags, **kwargs)
39 alg.DeviceMR = deviceMR.getPrimary()
40 result.merge(deviceMR)
41 # Add the algorithm to the accumulator, so that it would eventually be
42 # scheduled to run.
43 result.addEventAlgo(alg)
44 # Return the result to the caller.
45 return result
46

Variable Documentation

◆ acc

TrackParticleCalibratorExampleConfig.acc = MainServicesCfg(flags)

Definition at line 57 of file TrackParticleCalibratorExampleConfig.py.

◆ Files

TrackParticleCalibratorExampleConfig.Files

Definition at line 52 of file TrackParticleCalibratorExampleConfig.py.

◆ flags

TrackParticleCalibratorExampleConfig.flags = initConfigFlags()

Definition at line 50 of file TrackParticleCalibratorExampleConfig.py.

◆ MaxEvents

TrackParticleCalibratorExampleConfig.MaxEvents

Definition at line 51 of file TrackParticleCalibratorExampleConfig.py.