ATLAS Offline Software
Calo.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.Calo, 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  if flags.RecExRecoTest.doESD:
29  from CaloRec.CaloTopoClusterConfig import CaloTopoClusterConfigTest
31  else:
32  from CaloRec.CaloRecoConfig import CaloRecoConfigTest
33  CaloRecoConfigTest(flags)
calibdata.exit
exit
Definition: calibdata.py:236
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
python.CaloTopoClusterConfig.CaloTopoClusterConfigTest
def CaloTopoClusterConfigTest(flags=None)
Definition: CaloTopoClusterConfig.py:491
python.CaloRecoConfig.CaloRecoConfigTest
def CaloRecoConfigTest(flags=None)
Definition: CaloRecoConfig.py:99