Skip to content

Commit

Permalink
Merge branch 'main' into feat/obj-objects
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Oct 7, 2024
2 parents 6187dbc + 26a4a8f commit 8535403
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Examples/Python/src/Geant4Component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ PYBIND11_MODULE(ActsPythonBindingsGeant4, mod) {
const std::vector<std::string>&
sensitiveMatches,
const std::vector<std::string>&
passiveMatches) {
passiveMatches,
bool convertMaterial) {
// Initiate the detector construction & retrieve world
ActsExamples::GdmlDetectorConstruction gdmlContruction(gdmlFileName);
const auto* world = gdmlContruction.Construct();
Expand All @@ -351,6 +352,7 @@ PYBIND11_MODULE(ActsPythonBindingsGeant4, mod) {
Acts::Geant4DetectorSurfaceFactory::Options options;
options.sensitiveSurfaceSelector = sensitiveSelectors;
options.passiveSurfaceSelector = passiveSelectors;
options.convertMaterial = convertMaterial;

G4Transform3D nominal;
Acts::Geant4DetectorSurfaceFactory factory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Geant4DetectorSurfaceFactory {
/// Convert the length scale
ActsScalar scaleConversion = 1.;
/// Convert the material
bool convertMaterial = true;
bool convertMaterial = false;
/// Converted material thickness (< 0 indicates keeping original thickness)
ActsScalar convertedMaterialThickness = -1;
/// A selector for sensitive surfaces
Expand Down

0 comments on commit 8535403

Please sign in to comment.