Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for smartless configuration of volumes in Geant4 #1367

Merged
merged 5 commits into from
Dec 10, 2024

Conversation

MarkusFrankATcernch
Copy link
Contributor

@MarkusFrankATcernch MarkusFrankATcernch commented Dec 10, 2024

BEGINRELEASENOTES

  • If memory is an issue, the Geant4 memory consumption can be reduced using the smartless option of
    G4LogicalVolume entities. This MR exposes this feature of Geant4 to dd4hep.
    Example fragment of the code:
      Volume vol = ....;
      // 2 is the Geant4 voxelization default. 0 means no voxelization,
      // values bigger than 2 will need more memory.
      int value =  0 .... 5; 
      vol.setSmartlessValue(value);
    
    Fixes Controlling Geant4 smart voxelization from the detector constructor #1361
    • An example (+test) is supplied as well:
      • ClientTests/compact/DriftChamber.xml
      • ClientTests/scripts/DriftChamber.py
        where the voxelization is reduced.

ENDRELEASENOTES

Copy link

github-actions bot commented Dec 10, 2024

Test Results

   14 files     14 suites   5h 49m 53s ⏱️
  369 tests   367 ✅ 0 💤 2 ❌
2 538 runs  2 536 ✅ 0 💤 2 ❌

For more details on these failures, see this check.

Results for commit 42879c7.

♻️ This comment has been updated with latest results.

@andresailer andresailer merged commit 474ce71 into AIDASoft:master Dec 10, 2024
12 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Controlling Geant4 smart voxelization from the detector constructor
2 participants