Skip to content

feat: Pass the detector construction options to the addGeant4 function#5296

Open
pbutti wants to merge 5 commits intoacts-project:mainfrom
pbutti:feat-g4-option
Open

feat: Pass the detector construction options to the addGeant4 function#5296
pbutti wants to merge 5 commits intoacts-project:mainfrom
pbutti:feat-g4-option

Conversation

@pbutti
Copy link
Copy Markdown
Contributor

@pbutti pbutti commented Mar 27, 2026

Add the possibility to pass the Geant4ConstructionOptions to the addGeant4 function and extend the options to toggle the gdml validation on/off.
Some experiments (ALICE) are using an older version of G4 where the validation of the gdml is still set to true by default, while in newer version is set to false. One might want to run the g4 simulation with or without validation for example, so I would propose to add an option (false by default to be in line with the newer g4 versions) to toggle the parser validation functionality. I've extended the addGeant4 function to take custom options in. It defaults to empty region list and false validation (which should be the nominal behaviour).
This also allow now to pass a region list to the constructor, which wasn't wired before.

--- END COMMIT MESSAGE ---

@altsybee

@github-actions github-actions bot added the Component - Examples Affects the Examples module label Mar 27, 2026
@github-actions github-actions bot added this to the next milestone Mar 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2026

📊: Physics performance monitoring for c6d8173

Full contents

physmon summary

paulgessinger
paulgessinger previously approved these changes Mar 27, 2026
…onstructionOptions.hpp

Co-authored-by: Paul Gessinger <hello@paulgessinger.com>
@sonarqubecloud
Copy link
Copy Markdown

@andiwand
Copy link
Copy Markdown
Contributor

CsvVertexWriter,
)
import acts.examples.hepmc3
import acts.examples.geant4
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import acts.examples.geant4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component - Examples Affects the Examples module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants