Repository navigation
Sim: add light ions and hypernuclei - #16191
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>
|
@sawenzel Can you take a look if this is fine? |
|
Thanks for fixing the anti-hypernucleus charges. Could you consider also checking the other places that have the same sign problem, so that the PR is consistent? AliceO2/Steer/src/O2MCApplication.cxx Lines 505 to 544 in b22cf41 In AliceO2/DataFormats/simulation/include/SimulationDataFormat/O2DatabasePDG.h Lines 384 to 385 in b22cf41 AliceO2/DataFormats/simulation/include/SimulationDataFormat/O2DatabasePDG.h Lines 402 to 409 in b22cf41 AliceO2/DataFormats/simulation/include/SimulationDataFormat/O2DatabasePDG.h Lines 435 to 436 in b22cf41 |
addSpecialParticles gave every anti-nucleus and anti-exotic the charge of its particle (anti-3LH, anti-4LH, anti-4LHe, anti-4Li, anti-5LHe, anti-LL4H, anti-4XiH, anti-4XiHe, anti-4SigmaHe, anti-Xi0p, anti-Omega n, anti-Lambda(1405)p, anti-c-deuteron, anti-c-triton); now negative. Geant3 uses these, and Geant4 for every particle it does not define itself. O2DatabasePDG: anti-4Li, anti-4SigmaHe, anti-Xi0p, anti-Omega n and anti-Lambda(1405)p now negative; LL4H has charge +1 (it decays to 4LHe pi-), not +2, its antiparticle -1; Omega Omega has -2, as in addSpecialParticles and its decays. Both tables now give every particle the same charge and every antiparticle the opposite one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @sawenzel, fixed them up. Should this also be 'corrected'? |
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.