ATLAS Offline Software
Tracking.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 if __name__=="__main__":
5  # Setup flags with custom input-choice
6  from AthenaConfiguration.AllConfigFlags import initConfigFlags
7  flags = initConfigFlags()
8  flags.addFlag('RecExRecoTest.doMC', False, help='custom option for RexExRecoText to run data or MC test')
9  flags.addFlag('RecExRecoTest.doESD', False, help='custom option for RexExRecoText to run on ESD. Not a recommended workflow')
10  flags.fillFromArgs()
11 
12  # Use latest Data or MC
13  from AthenaConfiguration.TestDefaults import defaultTestFiles, defaultConditionsTags, defaultGeometryTags
14  if flags.RecExRecoTest.doMC:
15  flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_MC
16  if flags.RecExRecoTest.doESD:
17  flags.Input.Files = defaultTestFiles.ESD_RUN3_MC
18  else:
19  flags.Input.Files = defaultTestFiles.RDO_RUN3
20  print("MC RDO inputs not currently supported for RecExRecoTest.Tracking, see ATLASRECTS-8110")
21  exit(1)
22  else:
23  flags.Input.Files = defaultTestFiles.RAW_RUN3_DATA24
24  flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_DATA
25  flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
26  flags.lock()
27 
28  from InDetConfig.TrackRecoConfig import TrackRecoConfigTest
29  TrackRecoConfigTest(flags)
30 
calibdata.exit
exit
Definition: calibdata.py:236
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
dbg::print
void print(std::FILE *stream, std::format_string< Args... > fmt, Args &&... args)
Definition: SGImplSvc.cxx:70
python.TrackRecoConfig.TrackRecoConfigTest
def TrackRecoConfigTest(flags=None)
Definition: TrackRecoConfig.py:992