ATLAS Offline Software
Muons.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  from AthenaConfiguration.AllConfigFlags import initConfigFlags
6  flags = initConfigFlags()
7  flags.addFlag('RecExRecoTest.doMC', False, help='custom option for RexExRecoText to run data or MC test')
8  flags.fillFromArgs()
9 
10  # Use latest Data or MC
11  from AthenaConfiguration.TestDefaults import defaultTestFiles, defaultConditionsTags, defaultGeometryTags
12  if flags.RecExRecoTest.doMC:
13  # Currently not working on latest ESD, see ATLASRECTS-8111
14  #flags.Input.Files = defaultTestFiles.ESD_RUN3_MC
15  #flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_MC
16 
17  flags.Input.Files = ["/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/RecExRecoTest/ESD.16747874._000011_100events.pool.root"]
18  from AthenaConfiguration.DetectorConfigFlags import setupDetectorFlags
19  setupDetectorFlags(flags)
20 
21  else:
22  flags.Input.Files = defaultTestFiles.RAW_RUN3_DATA24
23  flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_DATA
24  flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
25  flags.lock()
26 
27  from MuonConfig.MuonReconstructionConfig import MuonReconstructionConfigTest
python.DetectorConfigFlags.setupDetectorFlags
def setupDetectorFlags(flags, custom_list=None, use_metadata=False, toggle_geometry=False, validate_only=False, keep_beampipe=False)
Definition: DetectorConfigFlags.py:289
python.MuonReconstructionConfig.MuonReconstructionConfigTest
def MuonReconstructionConfigTest(flags=None)
Definition: MuonReconstructionConfig.py:236
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19