20 sequenceName: str = DEFAULT_SEQUENCE_NAME) -> dict:
21 """Configure and initialize the embedded Athena application.
25 @param nSlots number of event-store slots to create, one per Triton model instance
26 @param sequenceName name of the AthSequencer holding the device chain; the
27 C++ TracccTritonRunner looks this up and executes it per request
28 @return the StoreGate keys the C++ side needs, as configured above.
29 TracccTritonInitializer copies these into its Config, so the names
30 live only in TracccTritonBackendConfig and cannot drift.
35 f
"TracccTritonBootstrap.bootstrap: nSlots must be >= 1, got {nSlots}"
38 flags = initConfigFlags()
41 flags.Device.Backend = DeviceBackend.CUDA
42 flags.Acts.Device.doClusterization =
True
43 flags.Acts.Device.doSpacePointFormation =
True
44 flags.Acts.Device.doSeeding =
True
45 flags.Acts.Device.doTrackReconstruction =
True
46 flags.CUDA.Stream = CUDAStream.PerEvent
49 flags.Acts.TrackingGeometry.UseBlueprint =
True
50 flags.Acts.TrackingGeometry.BuildDetrayGeometry =
True
53 flags.Input.Files = []
54 flags.Exec.MaxEvents = 0
56 flags.Input.isMC =
True
57 flags.GeoModel.AtlasVersion =
"ATLAS-P2-RUN4-03-00-01"
58 flags.IOVDb.GlobalTag =
"COND-MC21-SDR-RUN4-06"
61 from InDetConfig.ConfigurationHelpers
import OnlyTrackingPreInclude
62 OnlyTrackingPreInclude(flags)
63 flags.Detector.EnableHGTD =
False
67 for flag
in os.environ.get(
"TRACCC_TRITON_FLAGS",
"").
split(
";"):
69 flags.fillFromString(flag)
73 acc = MainServicesCfg(flags)
77 CompFactory.SG.HiveMgrSvc(
"EventDataSvc", NSlots=nSlots), create=
True
80 from TracccTritonBackend.TracccTritonBackendConfig
import (
81 TracccTritonDeviceRecoCfg,
83 acc.merge(TracccTritonDeviceRecoCfg(flags, sequenceName=sequenceName))
91 pps = acc.getService(
"ProxyProviderSvc")
92 pps.ProviderNames = [name
for name
in pps.ProviderNames
93 if "MetaDataSvc" not in name]
98 acc.addService(acc.getService(
"AthenaPoolCnvSvc"), create=
True)
101 app = acc.createApp()
102 sc = app.initialize()
103 if not sc.isSuccess():
105 "TracccTritonBootstrap.bootstrap: ApplicationMgr.initialize() failed"
109 if not sc.isSuccess():
111 "TracccTritonBootstrap.bootstrap: ApplicationMgr.start() failed"
114 return dict(STOREGATE_KEYS)