Skip to content
Snippets Groups Projects
Commit 06627b56 authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* Adding time correction to beam reaction

parent b4cba7ad
No related branches found
No related tags found
No related merge requests found
Pipeline #75839 passed
...@@ -189,7 +189,9 @@ void NPS::BeamReaction::DoIt(const G4FastTrack& fastTrack, ...@@ -189,7 +189,9 @@ void NPS::BeamReaction::DoIt(const G4FastTrack& fastTrack,
->GetMaterial(); ->GetMaterial();
double energy = PrimaryTrack->GetKineticEnergy(); double energy = PrimaryTrack->GetKineticEnergy();
double time = PrimaryTrack->GetGlobalTime(); double speed = PrimaryTrack->GetVelocity();
double time = PrimaryTrack->GetGlobalTime()+m_length/speed;
double reac_energy = SlowDownBeam ( double reac_energy = SlowDownBeam (
PrimaryTrack->GetParticleDefinition(), PrimaryTrack->GetParticleDefinition(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment