6 Dump ACTS tracking geometry.
9 from AthenaCommon.Logging
import log
10 from argparse
import ArgumentParser
11 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
14 parser = ArgumentParser(
"RunActsWriteTrackingGeometry.py")
15 parser.add_argument(
"detectors", metavar=
"detectors", type=str, nargs=
"*",
16 help=
"Specify the list of detectors")
17 parser.add_argument(
"--localgeo", default=
False, action=
"store_true",
18 help=
"Use local geometry Xml files")
19 parser.add_argument(
"-V",
"--verboseAccumulators", default=
False,
21 help=
"Print full details of the AlgSequence")
22 parser.add_argument(
"-S",
"--verboseStoreGate", default=
False,
24 help=
"Dump the StoreGate(s) each event iteration")
25 parser.add_argument(
"--geometrytag",default=
"ATLAS-P2-RUN4-03-00-00", type=str,
26 help=
"The geometry tag to use")
27 args = parser.parse_args()
30 print(
"----Dumping ACTS Tracking Geometry----")
32 print(
"Using Geometry Tag: "+args.geometrytag)
34 print(
"...overridden by local Geometry Xml files")
35 if not args.detectors:
36 print(
"Running complete detector")
43 flags.Input.isMC =
True
44 flags.Input.Files = []
47 flags.ITk.Geometry.AllLocal =
True
49 from AthenaConfiguration.DetectorConfigFlags
import setupDetectorsFromList
50 detectors = args.detectors
if 'detectors' in args
and args.detectors
else [
'ITkPixel',
'ITkStrip',
'HGTD']
51 detectors.append(
'Bpipe')
54 flags.GeoModel.AtlasVersion = args.geometrytag
55 flags.IOVDb.GlobalTag =
"OFLCOND-SIM-00-00-00"
56 flags.GeoModel.Align.Dynamic =
False
57 flags.Acts.TrackingGeometry.MaterialSource =
"None"
59 flags.Detector.GeometryCalo =
False
60 flags.Detector.GeometryMuon =
False
63 flags.Concurrency.NumThreads = 1
64 flags.Concurrency.NumConcurrentEvents = 1
68 log.debug(
'Lock config flags now.')
71 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
75 if args.verboseAccumulators:
76 cfg.printConfig(withDetails=
True)
77 if args.verboseStoreGate:
78 cfg.getService(
"StoreGateSvc").Dump =
True
80 log.debug(
'Dumping of ConfigFlags now.')
83 from ActsConfig.ActsGeometryConfig
import ActsAlignmentCondAlgCfg
84 cfg.merge(ActsAlignmentCondAlgCfg(flags,
85 name=
"ActsAlignmentCondAlg"))
87 from ActsConfig.ActsGeometryConfig
import ActsWriteTrackingGeometryCfg
89 name=
"ActsWriteTrackingGeometry"))
91 from AthenaConfiguration.FPEAndCoreDumpConfig
import FPEAndCoreDumpCfg
94 cfg.printConfig(withDetails =
True, summariseProps =
True)