Skip to content

Commit

Permalink
adressing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
asalzburger committed May 13, 2024
1 parent 8a8ff14 commit cb2d49d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
#include <algorithm>
#include <cstddef>
#include <functional>
#include <unordered_map>
#include <map>
#include <memory>
#include <stdexcept>
#include <string>
#include <system_error>
#include <unordered_map>
#include <utility>
#include <vector>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "ActsFatras/Digitization/Channelizer.hpp"

#include <array>
#include <unordered_map>
#include <memory>
#include <mutex>
#include <string>
Expand Down
14 changes: 7 additions & 7 deletions Examples/Python/python/acts/examples/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ def getG4DetectorConstructionFactory(
def addGeant4(
s: acts.examples.Sequencer,
detector: Optional[Any],
recoGeometry: Union[acts.TrackingGeometry, acts.Detector],
trackingGeometry: Union[acts.TrackingGeometry, acts.Detector],
field: acts.MagneticFieldProvider,
rnd: acts.examples.RandomNumbers,
g4DetectorConstructionFactory: Optional[Any] = None,
Expand Down Expand Up @@ -645,7 +645,7 @@ def addGeant4(
----------
s: Sequencer
the sequencer module to which we add the Geant4 steps (returned from addGeant4)
recoGeometry : tracking geometry or detector
trackingGeometry : tracking geometry or detector
field : magnetic field
rnd : RandomNumbers, None
random number generator
Expand Down Expand Up @@ -696,7 +696,7 @@ def addGeant4(
smmConfig.volumeMappings = volumeMappings
smmConfig.materialMappings = materialMappings
sensitiveMapper = SensitiveSurfaceMapper.create(
smmConfig, acts.logging.INFO, recoGeometry
smmConfig, acts.logging.INFO, trackingGeometry
)

# Simulation
Expand Down Expand Up @@ -766,7 +766,7 @@ def addGeant4(

def addDigitization(
s: acts.examples.Sequencer,
recoGeometry: Union[acts.TrackingGeometry, acts.Detector],
trackingGeometry: Union[acts.TrackingGeometry, acts.Detector],
field: acts.MagneticFieldProvider,
digiConfigFile: Union[Path, str],
outputDirCsv: Optional[Union[Path, str]] = None,
Expand All @@ -782,7 +782,7 @@ def addDigitization(
----------
s: Sequencer
the sequencer module to which we add the Digitization steps (returned from addDigitization)
recoGeometry : tracking geometry or detector
trackingGeometry : tracking geometry or detector
field : magnetic field
digiConfigFile : Path|str, path
Configuration (.json) file for digitization or smearing description
Expand All @@ -804,7 +804,7 @@ def addDigitization(
acts.examples.readDigiConfigFromJson(
str(digiConfigFile),
),
surfaceByIdentifier=recoGeometry.geoIdSurfaceMap(),
surfaceByIdentifier=trackingGeometry.geoIdSurfaceMap(),
randomNumbers=rnd,
inputSimHits="simhits",
outputSourceLinks="sourcelinks",
Expand Down Expand Up @@ -832,7 +832,7 @@ def addDigitization(
inputSimHits=digiAlg.config.inputSimHits,
inputMeasurementSimHitsMap=digiAlg.config.outputMeasurementSimHitsMap,
filePath=str(outputDirRoot / f"{digiAlg.config.outputMeasurements}.root"),
surfaceByIdentifier=recoGeometry.geoIdSurfaceMap(),
surfaceByIdentifier=trackingGeometry.geoIdSurfaceMap(),
)
rmwConfig.addBoundIndicesFromDigiConfig(digiAlg.config)
s.addWriter(acts.examples.RootMeasurementWriter(rmwConfig, customLogLevel()))
Expand Down
2 changes: 1 addition & 1 deletion Examples/Python/src/Geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
#include "ActsExamples/Geometry/VolumeAssociationTest.hpp"

#include <array>
#include <unordered_map>
#include <memory>
#include <unordered_map>
#include <vector>

#include <pybind11/pybind11.h>
Expand Down

0 comments on commit cb2d49d

Please sign in to comment.