ATLAS Offline Software
Loading...
Searching...
No Matches
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
9from AthenaConfiguration.AllConfigFlags import initConfigFlags
10flags = initConfigFlags()
11
12from AthenaConfiguration.TestDefaults import defaultTestFiles
13flags.Input.Files = defaultTestFiles.RDO_RUN4
14
15flags.Output.AODFileName = 'myAOD.pool.root'
16flags.Output.ESDFileName = 'myESD.pool.root'
17flags.Exec.MaxEvents = 10
18
19from AthenaConfiguration.TestDefaults import defaultConditionsTags
20from AthenaConfiguration.DetectorConfigFlags import setupDetectorFlags
21setupDetectorFlags(flags, None,
22 use_metadata=True,
23 toggle_geometry=True,
24 keep_beampipe=True)
25flags.IOVDb.GlobalTag = defaultConditionsTags.RUN4_MC
26
27# Construct the tracking geometry for the GPU.
28flags.Detector.GeometryMuon = False
29flags.Detector.GeometryCalo = False
30flags.Acts.TrackingGeometry.UseBlueprint = True
31flags.Acts.TrackingGeometry.BuildDetrayGeometry = True
32
33# Enable full GPU based track reconstruction.
34flags.Acts.Device.doClusterization = True
35flags.Acts.Device.doSeeding = True
36flags.Acts.Device.doTrackReconstruction = True
37
38# Enable GPU memory caching, and monitoring.
39flags.Device.Memory.Cache = True
40flags.Device.Memory.Monitor = True
41
42flags.fillFromArgs()
43flags.lock()
44
45from RecJobTransforms.RecoSteering import RecoSteering
46cfg = RecoSteering(flags)
47
48# Run the configuration.
49import sys
50sys.exit(cfg.run().isFailure())