6Dumping ACTS tracking geometry
9from AthenaCommon.Logging
import log
10from argparse
import ArgumentParser
11from AthenaConfiguration.AllConfigFlags
import initConfigFlags
14parser = ArgumentParser(
"RunActsWriteTrackingGeometry.py")
15parser.add_argument(
"detectors", metavar=
"detectors", type=str, nargs=
"*",
16 help=
"Specify the list of detectors")
17parser.add_argument(
"--localgeo", default=
False, action=
"store_true",
18 help=
"Use local geometry Xml files")
19parser.add_argument(
"-V",
"--verboseAccumulators", default=
False,
21 help=
"Print full details of the AlgSequence")
22parser.add_argument(
"-S",
"--verboseStoreGate", default=
False,
24 help=
"Dump the StoreGate(s) each event iteration")
25parser.add_argument(
"--geometrytag",default=
"", type=str,
26 help=
"The geometry tag to use. If not specified, the default RUN4 tag will be used.")
27args = parser.parse_args()
30print(
"----Dumping ACTS Tracking Geometry----")
32print(
"Using Geometry Tag: "+args.geometrytag)
34 print(
"...overridden by local Geometry Xml files")
36 print(
"Running complete detector")
38 print(
"Running with: {}".format(
", ".join(args.detectors)))
41flags = initConfigFlags()
43flags.Input.isMC =
True
46from AthenaConfiguration.TestDefaults
import defaultGeometryTags
47flags.GeoModel.AtlasVersion = args.geometrytag
if args.geometrytag
else defaultGeometryTags.RUN4
50 flags.ITk.Geometry.AllLocal =
True
52flags.Acts.TrackingGeometry.UseBlueprint =
True
53flags.Acts.TrackingGeometry.KeepGoingOnMaterialMergeFailure =
True
56 from AthenaConfiguration.DetectorConfigFlags
import setupDetectorsFromList
57 detectors = args.detectors
58 detectors.append(
'Bpipe')
59 setupDetectorsFromList(flags, detectors, toggle_geometry=
True)
61 flags.Detector.GeometryBpipe =
True
62 flags.Detector.GeometryHGTD =
True
63 flags.Detector.GeometryITkPixel =
True
64 flags.Detector.GeometryITkStrip =
False
66flags.IOVDb.GlobalTag =
"OFLCOND-SIM-00-00-00"
67flags.GeoModel.Align.Dynamic =
False
68flags.Acts.TrackingGeometry.MaterialSource =
"None"
70flags.Detector.GeometryCalo =
False
71flags.Detector.GeometryMuon =
False
74flags.Concurrency.NumThreads = 1
75flags.Concurrency.NumConcurrentEvents = 1
79log.debug(
'Lock config flags now.')
82from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
83cfg = MainServicesCfg(flags)
86if args.verboseAccumulators:
87 cfg.printConfig(withDetails=
True)
88if args.verboseStoreGate:
89 cfg.getService(
"StoreGateSvc").Dump =
True
91log.debug(
'Dumping of ConfigFlags now.')
94from ActsConfig.ActsGeometryConfig
import ActsWriteTrackingGeometryCfg
95cfg.merge(ActsWriteTrackingGeometryCfg(flags,
96 name=
"ActsWriteTrackingGeometry"))
98from AthenaConfiguration.FPEAndCoreDumpConfig
import FPEAndCoreDumpCfg
99cfg.merge(FPEAndCoreDumpCfg(flags))
101cfg.printConfig(withDetails =
True, summariseProps =
True)
void print(char *figname, TCanvas *c1)