Skip to content

Commit ef74e4d

Browse files
sawenzelclaude
andcommitted
Take the TPC ionisation of a stopping step from the energy deposit
This fixes a problem in the TPC ionisation of the step that ends a track. - The collision model takes beta*gamma from the momentum after the step, which is zero for a stopping track and is then clamped at 7e-3. - A 1 mm step of a stopping electron could then produce up to 3.5e4 ionisation electrons, more than its energy allows. - With G4HepEm this happened about once per primary particle. - Such steps now use the Geant4 energy deposit, as already done for Kr-83m simulations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 7f86b5e commit ef74e4d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Detectors/TPC/simulation/src/Detector.cxx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ Bool_t Detector::ProcessHits(FairVolume* vol)
211211
// I.H. - the type expected in addHit is float
212212

213213
// use Geant4 energy deposit directly for ionisation (Kr-83m calibration simulations)
214-
if (detParam.UseGeant4Edep) {
214+
// and for the step that ends a track, whose post-step momentum cannot describe the step
215+
if (detParam.UseGeant4Edep || fMC->IsTrackStop()) {
215216
// We have multiple collisions and add fluctuations: smear nel using
216217
// gamma distr with mean = meanIon and variance = meanIon*FanoFactorG4.
217218
// These parameters were tuned for GEANT4.

0 commit comments

Comments
 (0)