ATLAS Offline Software
Loading...
Searching...
No Matches
FullReco_RDO_Run2.py
Go to the documentation of this file.
1#!/usr/bin/env athena.py --CA
2# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
4# Example of configuring full reconstruction from RDO for Run2.
5
6from AthenaConfiguration.AllConfigFlags import initConfigFlags
7flags = initConfigFlags()
8
9from AthenaConfiguration.TestDefaults import defaultTestFiles
10flags.Input.Files = defaultTestFiles.RDO_RUN2
11
12flags.Output.AODFileName = 'myAOD.pool.root'
13flags.Output.ESDFileName = 'myESD.pool.root'
14flags.Exec.MaxEvents = 10
15
16from AthenaConfiguration.DetectorConfigFlags import setupDetectorFlags
17setupDetectorFlags(flags, None,
18 use_metadata=True,
19 toggle_geometry=True,
20 keep_beampipe=True)
21flags.fillFromArgs()
22flags.lock()
23
24from RecJobTransforms.RecoSteering import RecoSteering
25cfg = RecoSteering(flags)
26
27cfg.run (flags.Exec.MaxEvents)