ATLAS Offline Software
Loading...
Searching...
No Matches
ActsReadoutGeoDump.py
Go to the documentation of this file.
1#!/usr/bin/env python
2# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
5 from argparse import ArgumentParser
6 from AthenaConfiguration.TestDefaults import defaultConditionsTags, defaultGeometryTags, defaultTestFiles
7 parser = ArgumentParser()
8 parser.add_argument("--inputFile", "-i", default= defaultTestFiles.EVNT,
9 help="Input file to run on ", nargs="+")
10 parser.add_argument("--geoModelFile", default = "", help="GeoModel SqLite file containing the muon geometry.")
11 parser.add_argument("--outRootFile", default="NewGeoModelDump.root", help="Output ROOT file to dump the geomerty")
12 parser.add_argument("--geoTag", default=defaultGeometryTags.RUN3, help="Geometry tag to use", choices=[defaultGeometryTags.RUN4,
13 defaultGeometryTags.RUN3])
14 return parser
15
16if __name__ == "__main__":
17
18 args = setupArgParser().parse_args()
19
20 from AthenaConfiguration.AllConfigFlags import initConfigFlags
21 flags = initConfigFlags()
22 flags.Concurrency.NumThreads = 1
23 flags.Concurrency.NumConcurrentEvents = 1 # Might change this later, but good enough for the moment.
24 flags.Input.Files = args.inputFile
25 flags.GeoModel.AtlasVersion = args.geoTag
26 flags.Scheduler.ShowDataDeps = True
27 flags.Scheduler.ShowDataFlow = True
28 flags.Exec.MaxEvents = 1
29
30 if len(args.geoModelFile) > 0:
31 flags.GeoModel.SQLiteDBFullPath = args.geoModelFile
32 flags.GeoModel.SQLiteDB = True
33 from MuonGeoModelTestR4.testGeoModel import configureDefaultTagsCfg
34 configureDefaultTagsCfg(flags)
35 else:
36 from MuonConfig.MuonConfigUtils import configureCondTag
37 configureCondTag(flags)
38 flags.lock()
39 flags.dump(evaluate = True)
40
41
42
43 from MuonConfig.MuonConfigUtils import executeTest, SetupMuonStandaloneCA
44 cfg = SetupMuonStandaloneCA(flags)
45
46 cfg.getService("MessageSvc").verboseLimit = 10000000
47 cfg.getService("MessageSvc").debugLimit = 10000000
48
49 from ActsConfig.ActsAnalysisConfig import ActsGeoDumpCfg
50 cfg.merge(ActsGeoDumpCfg(flags, outFile = args.outRootFile))
51
52 executeTest(cfg)
53
54
55