Time of dose deposition in example B1

Hello!
I study and modify example B1. I need information about the time in which the dose was accumulated in the scoring volume (for example Gy/h). Is there a way to get this information?
Thank you very much!

Hello,

for detailed analysis of energy deposition including time profile I would suggest to have a look into extended examples.There are many different simple analysis methods shown, unfortunately, do not remeber in which example we have specifically time profile.In any case, extended examples are more useful for this task.

VI

In example B1, at end of UserSteppingAction :
G4double timeEdep = step->GetTrack()->GetGlobalTime();

  • you can make an histogram of timeEdep, eventually weighted by edepStep
  • and/or you can pass timeEdep to RunAction in order to compute min and max values of this variable.