Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Nov 20, 2024
1 parent a917f1c commit 6be1b04
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#pragma once

#include "Acts/Geometry/GeometryHierarchyMap.hpp"
#include "ActsExamples/Digitization/GeometricConfig.hpp"
#include "ActsExamples/Digitization/SmearingConfig.hpp"

Expand All @@ -23,4 +24,6 @@ struct DigiComponentsConfig {
SmearingConfig smearingDigiConfig;
};

using DigiConfigContainer = Acts::GeometryHierarchyMap<DigiComponentsConfig>;

} // namespace ActsExamples
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ void writeDigiConfigToJson(
const Acts::GeometryHierarchyMap<DigiComponentsConfig>& cfg,
const std::string& path);

using DigiConfigContainer = Acts::GeometryHierarchyMap<DigiComponentsConfig>;
using DigiConfigConverter =
Acts::GeometryHierarchyMapJsonConverter<DigiComponentsConfig>;

Expand Down
3 changes: 1 addition & 2 deletions Examples/Python/src/Digitization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ void addDigitization(Context& ctx) {
ACTS_PYTHON_MEMBER(smearingDigiConfig);
ACTS_PYTHON_STRUCT_END();

py::class_<Acts::GeometryHierarchyMap<ActsExamples::DigiComponentsConfig>>(
mex, "GeometryHierarchyMap_DigiComponentsConfig")
py::class_<DigiConfigContainer>(mex, "DigiConfigContainer")
.def(py::init<std::vector<
std::pair<GeometryIdentifier, DigiComponentsConfig>>>());
}
Expand Down
6 changes: 2 additions & 4 deletions Examples/Scripts/Python/digitization_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
DigitizationConfigurator,
writeDigiConfigToJson,
GenericDetector,
GeometryHierarchyMap_DigiComponentsConfig,
DigiConfigContainer,
)


Expand All @@ -27,9 +27,7 @@ def runDigitizationConfig(

trackingGeometry.visitSurfaces(digiConfigurator)

outputConfig = GeometryHierarchyMap_DigiComponentsConfig(
digiConfigurator.outputDigiComponents
)
outputConfig = DigiConfigContainer(digiConfigurator.outputDigiComponents)

writeDigiConfigToJson(outputConfig, str(output))

Expand Down

0 comments on commit 6be1b04

Please sign in to comment.