ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecExample
RecExRecoTest
python
FullReco_RDO_Run4_GPU.py
Go to the documentation of this file.
1
#!/usr/bin/env athena.py
2
#
3
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
4
#
5
# Example of configuring full reconstruction from RDO for Run4, using GPUs
6
# for as much of the reconstruction as possible.
7
#
8
9
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
10
flags = initConfigFlags()
11
12
from
AthenaConfiguration.TestDefaults
import
defaultTestFiles
13
flags.Input.Files = defaultTestFiles.RDO_RUN4
14
15
flags.Output.AODFileName =
'myAOD.pool.root'
16
flags.Output.ESDFileName =
'myESD.pool.root'
17
flags.Exec.MaxEvents = 10
18
19
from
AthenaConfiguration.TestDefaults
import
defaultConditionsTags
20
from
AthenaConfiguration.DetectorConfigFlags
import
setupDetectorFlags
21
setupDetectorFlags(flags,
None
,
22
use_metadata=
True
,
23
toggle_geometry=
True
,
24
keep_beampipe=
True
)
25
flags.IOVDb.GlobalTag = defaultConditionsTags.RUN4_MC
26
27
# Construct the tracking geometry for the GPU.
28
flags.Detector.GeometryMuon =
False
29
flags.Detector.GeometryCalo =
False
30
flags.Acts.TrackingGeometry.UseBlueprint =
True
31
flags.Acts.TrackingGeometry.BuildDetrayGeometry =
True
32
33
# Enable full GPU based track reconstruction.
34
flags.Acts.Device.doClusterization =
True
35
flags.Acts.Device.doSeeding =
True
36
flags.Acts.Device.doTrackReconstruction =
True
37
38
# Enable GPU memory caching, and monitoring.
39
flags.Device.Memory.Cache =
True
40
flags.Device.Memory.Monitor =
True
41
42
flags.fillFromArgs()
43
flags.lock()
44
45
from
RecJobTransforms.RecoSteering
import
RecoSteering
46
cfg = RecoSteering(flags)
47
48
# Run the configuration.
49
import
sys
50
sys.exit(cfg.run().isFailure())
Generated on
for ATLAS Offline Software by
1.17.0