Skip to content

Commit 5926374

Browse files
Yuan-Ru-Linoschulz
authored andcommitted
Add timing information
See also #507 (comment)
1 parent c666e07 commit 5926374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/Geant4/g4jl_application.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function _processHits(step::G4Step, ::G4TouchableHistory, data::SDData{T})::Bool
3737
# detno
3838
detno = Int32(1), #step |> GetPostStepPoint |> GetPhysicalVolume, # get ID?
3939
# thit
40-
thit = T(0)*u"s", #step |> GetPostStepPoint |> GetGlobalTime,
40+
thit = (step |> GetPostStepPoint |> GetGlobalTime) / Geant4.SystemOfUnits.nanosecond * u"ns",
4141
# edep
4242
edep = T(edep * 1000u"keV"),
4343
# pos

0 commit comments

Comments
 (0)