Velocity distribution of particle in scintillator


Is there a method in GEANT4 where I am able to describe the velocity distribution of particles inside of the Scintillator bar?

Cheers, and thank you.

You could do that with a sensitive detector or a stepping action, via the G4StepPoint::GetVelocity() function (i.e., aStep->GetPostStepPoint()->GetVelocity()).

Look at G4Step.hh and G4StepPoint.hh.

Hi thank you, is there an example that I can also refer to?