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=
"ATLAS-P2-RUN4-04-00-00", type=str,
26 help=
"The geometry tag to use")
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
47 flags.ITk.Geometry.AllLocal =
True
49flags.GeoModel.AtlasVersion = args.geometrytag
51from AthenaConfiguration.DetectorConfigFlags
import setupDetectorsFromList
52detectors = args.detectors
if 'detectors' in args
and args.detectors
else [
'ITkPixel',
'ITkStrip',
'HGTD']
53detectors.append(
'Bpipe')
54setupDetectorsFromList(flags, detectors, toggle_geometry=
True)
56flags.IOVDb.GlobalTag =
"OFLCOND-SIM-00-00-00"
57flags.GeoModel.Align.Dynamic =
False
58flags.Acts.TrackingGeometry.MaterialSource =
"None"
60flags.Detector.GeometryCalo =
False
61flags.Detector.GeometryMuon =
False
64flags.Concurrency.NumThreads = 1
65flags.Concurrency.NumConcurrentEvents = 1
69log.debug(
'Lock config flags now.')
72from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
73cfg = MainServicesCfg(flags)
76if args.verboseAccumulators:
77 cfg.printConfig(withDetails=
True)
78if args.verboseStoreGate:
79 cfg.getService(
"StoreGateSvc").Dump =
True
81log.debug(
'Dumping of ConfigFlags now.')
84from ActsConfig.ActsGeometryConfig
import ActsWriteTrackingGeometryCfg
85cfg.merge(ActsWriteTrackingGeometryCfg(flags,
86 name=
"ActsWriteTrackingGeometry"))
88from AthenaConfiguration.FPEAndCoreDumpConfig
import FPEAndCoreDumpCfg
89cfg.merge(FPEAndCoreDumpCfg(flags))
91cfg.printConfig(withDetails =
True, summariseProps =
True)
void print(char *figname, TCanvas *c1)