I’m trying to understand something about setting a maximum step size. Following example B2, I could set a maximum step size.
In my DetectorConstruction.cc I wrote added:
In my case, in the run.mac file, the step size is 0.05mm. I wanted to confirm this and thus checked in my SteppingAction.cc what they step sizes were. I had the following line written:
G4cout << fStepLimit->GetMaxAllowedStep(*step->GetTrack()) / CLHEP::mm << " " << step->GetTrack()->GetStepLength() / CLHEP::mm << G4endl;
I noticed that if I’m in the volume of “logic_silicon” that the step length exceeds limit. However, as the output shows, it is properly set.
StepMax StepLength 0.05 0.161304 0.05 0.166283 0.05 0.17639 0.05 0.169074 0.05 0.175563 ... ...
Could someone explain why this is the case? I am assuming that the track is a “snapshot of a particle” and the step the “delta information between tracks”.
Am I missing something about the underlying machinery?