Skip to content

feat!(sim): Use g4Config.yaml instead of deprecated .C#841

Open
olantwin wants to merge 8 commits intomasterfrom
gconfig_yaml
Open

feat!(sim): Use g4Config.yaml instead of deprecated .C#841
olantwin wants to merge 8 commits intomasterfrom
gconfig_yaml

Conversation

@olantwin
Copy link
Contributor

@olantwin olantwin commented Aug 7, 2025

Add YAML config including all settings from .C. Set ShipStack and its options explicitly in simulation scripts.

Thorough testing needed.

Fixes #543

@olantwin olantwin requested a review from a team as a code owner August 7, 2025 22:35
@olantwin
Copy link
Contributor Author

olantwin commented Aug 8, 2025

Fails because fairtools/MCConfigurator isn't built when GEANT3 isn't found...

I'll return to this when I'm back (or left as exercise for the reader).

@olantwin
Copy link
Contributor Author

Build failure should be fixed once we switch the CI to a config using ShipSoft/shipdist#115

@olantwin olantwin force-pushed the gconfig_yaml branch 5 times, most recently from 71d6cf4 to 7fc8a1c Compare August 28, 2025 14:05
@olantwin
Copy link
Contributor Author

First results look ok. More detailed testing needed, but particle and hit distributions look normal.

@olantwin
Copy link
Contributor Author

@siilieva Probably also of interest for SND@(HL-)LHC

@olantwin
Copy link
Contributor Author

olantwin commented Feb 2, 2026

It should be possible to test whether the same set of options reach geant4 and that the stack is the same.

@olantwin olantwin force-pushed the gconfig_yaml branch 2 times, most recently from ff2dad8 to 34f994f Compare February 4, 2026 09:52
olantwin and others added 6 commits February 6, 2026 10:48
Add YAML config including all settings from .C. Set ShipStack and its
options explicitly in simulation scripts.

Thorough testing needed.

Fixed #543
- Physics list: QGSP_BERT_HP_PEN → FTFP_BERT_HP_EMZ
- Restore /process/em/UseGeneralProcess false
- Restore /mcPhysics/setExtDecayerSelection J/psi
- Comment out Geant4_MaxNStep (keep default 30000)
- Remove /mcPhysics/g4NeutronHPVerbose (removed in newer Geant4)
VMCConfig inherits from FairYamlVMCConfig but the MCConfigurator
library was missing from the link dependencies, causing undefined
symbol errors.
pre-commit-ci bot and others added 2 commits February 6, 2026 09:58
FairRoot::MCConfigurator has transitive dependencies on Geant4 CMake
targets (via FairRoot::FastSim -> Geant4::G4processes). Call native
find_package(Geant4) before FairRoot to ensure these targets exist.
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.

Using gConfig.C macro DEPRACATED

1 participant