ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsGPUGeometry
python
ActsGPUGeometryConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
from
AthDeviceComps.AthDeviceCompsConfig
import
MemoryResourcesToolCfg, CopyToolCfg
6
7
# ============================================================
8
# Service configurations
9
# ============================================================
10
11
def
JSONDeviceDetectorDescriptionProviderSvcCfg
(flags, **kwargs) -> ComponentAccumulator:
12
13
acc = ComponentAccumulator()
14
15
16
kwargs.setdefault(
"MemoryResourcesTool"
, acc.popToolsAndMerge(MemoryResourcesToolCfg(flags)))
17
kwargs.setdefault(
"CopyProviderTool"
, acc.popToolsAndMerge(CopyToolCfg(flags)))
18
kwargs.setdefault(
"GeometryFile"
,
"dev/ACTS/detray-itk/detray_detector_geometry-for-fun.json"
)
19
kwargs.setdefault(
"DigitizationFile"
,
"dev/ACTS/detray-itk/ITk_digitization_config.json"
)
20
kwargs.setdefault(
"ConditionsFile"
,
"dev/ACTS/detray-itk/ITk_conditions_config.json"
)
21
kwargs.setdefault(
"MapFile"
,
"dev/ACTS/detray-itk/athenaIdentifierToDetrayMap.txt"
)
22
kwargs.setdefault(
"DeviceDigitizationObjectName"
,
"TracccDeviceDigitizationConfig"
)
23
kwargs.setdefault(
"HostDigitizationObjectName"
,
"TracccHostDigitizationConfig"
)
24
kwargs.setdefault(
"DeviceConditionsObjectName"
,
"TracccDeviceCondConfig"
)
25
kwargs.setdefault(
"HostConditionsObjectName"
,
"TracccHostCondConfig"
)
26
kwargs.setdefault(
"DeviceDetectorName"
,
"TracccDeviceDetectorGeometry"
)
27
kwargs.setdefault(
"HostDetectorName"
,
"TracccHostDetectorGeometry"
)
28
svc = CompFactory.ActsTrk.JSONDeviceDetectorDescriptionProviderSvc(**kwargs)
29
acc.addService(svc, primary=
True
, create=
True
)
30
return
acc
ActsGPUGeometryConfig.JSONDeviceDetectorDescriptionProviderSvcCfg
ComponentAccumulator JSONDeviceDetectorDescriptionProviderSvcCfg(flags, **kwargs)
Definition
ActsGPUGeometryConfig.py:11
Generated on
for ATLAS Offline Software by
1.17.0