Repository navigation
Conversation
Geant4 VMC looks a primary up in Geant4's particle table, which holds
d, t, 3He and alpha from the start but a heavier ion only once it is
created. A generated 6Li or 7Li was skipped as unknown, and the stack
then stopped the worker ("Inconsistency in primary particles").
FairMCApplication::AddIons does not define an ion that TDatabasePDG
already knows, and O2's ion table has both. O2MCApplicationBase now
defines them through DefineIon (Geant4 only: Geant3's DefineIon would
give them new isomer codes).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…us charges Geant4 defines the light hypernuclei itself (hypertriton, hyperH4, hyperalpha, hyperHe5 and their antiparticles), so O2's DefineParticle for them is ignored, and it gives them only the decay unless G4HadronicParameters::SetEnableHyperNuclei is set: no ionisation, no multiple scattering, no hadronic interactions. Their TRK hits had zero energy loss and made no digits. g4Config.C now enables them before the physics is built. O2DatabasePDG gave the four anti-hypernuclei (3LH, 4LH, 4LHe, 5LHe) a positive charge; now negative. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
@sawenzel Can you take a look if this is fine? |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Simulation: transport 6Li/7Li and give hypernuclei their physics in Geant4
6Li and 7Li were not transported. Geant4 VMC accepts a primary only if Geant4 has defined the particle. Geant4 defines d, t, 3He and alpha from the start, but a heavier ion only once it is created.
FairMCApplication::AddIonsskips ions thatTDatabasePDGalready knows, and O2's ion table lists both. So a generated 6Li/7Li was skipped and the worker aborted ("Inconsistency in primary particles").O2MCApplicationBase::AddIonsnow defines them withDefineIon, for Geant4 only: Geant3'sDefineIonwould give them a new isomer code.Hypernuclei left no signal. Geant4 11.2 defines the light hypernuclei itself (3LH, 4LH, 4LHe, 5LHe and their antiparticles), so O2's
DefineParticlecalls for them are ignored. WithoutG4HadronicParameters::SetEnableHyperNuclei(true)they get only the decay: no ionisation, no multiple scattering, no hadronic interactions. Their hits had zero energy loss and produced no digits.g4Config.Cnow enables this before the physics is built.Anti-hypernucleus charges:
O2DatabasePDGgave anti-3LH, anti-4LH, anti-4LHe and anti-5LHe a positive charge; they are now negative.