From 565cb2b3cedf6f30c9c004d61e384d02e9f4fa14 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Mon, 4 Mar 2024 04:50:59 +0100 Subject: [PATCH] RecExRecoTest: Add examples of configuring full reconstruction. Add examples of configuring full reconstruction from RDO. --- .../RecExRecoTest/python/FullReco_RDO_Run2.py | 27 +++++++++++++++++++ .../RecExRecoTest/python/FullReco_RDO_Run4.py | 27 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 Reconstruction/RecExample/RecExRecoTest/python/FullReco_RDO_Run2.py create mode 100644 Reconstruction/RecExample/RecExRecoTest/python/FullReco_RDO_Run4.py diff --git a/Reconstruction/RecExample/RecExRecoTest/python/FullReco_RDO_Run2.py b/Reconstruction/RecExample/RecExRecoTest/python/FullReco_RDO_Run2.py new file mode 100644 index 000000000000..b8a194ba7a69 --- /dev/null +++ b/Reconstruction/RecExample/RecExRecoTest/python/FullReco_RDO_Run2.py @@ -0,0 +1,27 @@ +#!/usr/bin/env athena.py --CA +# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration + +# Example of configuring full reconstruction from RDO for Run2. + +from AthenaConfiguration.AllConfigFlags import initConfigFlags +flags = initConfigFlags() + +from AthenaConfiguration.TestDefaults import defaultTestFiles +flags.Input.Files = defaultTestFiles.RDO_RUN2 + +flags.Output.AODFileName = 'myAOD.pool.root' +flags.Output.ESDFileName = 'myESD.pool.root' +flags.Exec.MaxEvents = 10 + +from AthenaConfiguration.DetectorConfigFlags import setupDetectorFlags +setupDetectorFlags(flags, None, + use_metadata=True, + toggle_geometry=True, + keep_beampipe=True) +flags.fillFromArgs() +flags.lock() + +from RecJobTransforms.RecoSteering import RecoSteering +cfg = RecoSteering(flags) + +cfg.run (flags.Exec.MaxEvents) diff --git a/Reconstruction/RecExample/RecExRecoTest/python/FullReco_RDO_Run4.py b/Reconstruction/RecExample/RecExRecoTest/python/FullReco_RDO_Run4.py new file mode 100644 index 000000000000..4f6a62c59fd5 --- /dev/null +++ b/Reconstruction/RecExample/RecExRecoTest/python/FullReco_RDO_Run4.py @@ -0,0 +1,27 @@ +#!/usr/bin/env athena.py --CA +# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration + +# Example of configuring full reconstruction from RDO for Run4. + +from AthenaConfiguration.AllConfigFlags import initConfigFlags +flags = initConfigFlags() + +from AthenaConfiguration.TestDefaults import defaultTestFiles +flags.Input.Files = defaultTestFiles.RDO_RUN4 + +flags.Output.AODFileName = 'myAOD.pool.root' +flags.Output.ESDFileName = 'myESD.pool.root' +flags.Exec.MaxEvents = 10 + +from AthenaConfiguration.DetectorConfigFlags import setupDetectorFlags +setupDetectorFlags(flags, None, + use_metadata=True, + toggle_geometry=True, + keep_beampipe=True) +flags.fillFromArgs() +flags.lock() + +from RecJobTransforms.RecoSteering import RecoSteering +cfg = RecoSteering(flags) + +cfg.run (flags.Exec.MaxEvents) -- GitLab