3 from pathlib
import Path
7 readDigiConfigFromJson,
8 DigitizationConfigurator,
11 GeometryHierarchyMap_DigiComponentsConfig,
15 u = acts.UnitConstants
25 digiConfigurator = DigitizationConfigurator()
26 digiConfigurator.compactify =
True
27 digiConfigurator.inputDigiComponents = inputConfig
29 trackingGeometry.visitSurfaces(digiConfigurator)
31 outputConfig = GeometryHierarchyMap_DigiComponentsConfig(
32 digiConfigurator.outputDigiComponents
38 if "__main__" == __name__:
39 detector, trackingGeometry, _ = GenericDetector.create()
42 trackingGeometry=trackingGeometry,
43 input=Path(__file__).parent
44 /
"../../Algorithms/Digitization/share/default-smearing-config-generic.json",
45 output=Path.cwd() /
"digi-config-out.json",