Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Detectors/TPC/simulation/src/Detector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ Bool_t Detector::ProcessHits(FairVolume* vol)
// I.H. - the type expected in addHit is float

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