Message: Re: GetGlobalTime returns a constant value throughout event. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: GetGlobalTime returns a constant value throughout event. 

Forum: Event and Track Management
Re: Question GetGlobalTime returns a constant value throughout event. (Matt Taggart)
Re: None Re: GetGlobalTime returns a constant value throughout event. (Matt Taggart)
Date: 27 May, 2013
From: Gumplinger Peter <Gumplinger Peter>

Hello Matt,

I am still not sure exactly what hadronic process you are using but my guess is it is the G4NeutronHPFissionFS. This code seems to set the time of the secondary correctly, either at:

http://www-geant4.kek.jp/lxr/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPFissionFS.cc#L196

for delayed, or for prompt:

http://www-geant4.kek.jp/lxr/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPFissionFS.cc#L222

If you have access to the G4 source, you may want to check whether this code is executed in your case.

Anyway, something is VERY strange, but it must have to do with your code for it is so fundamentally wrong. None of your particles change global time and the primaries don't start out with 0 global time either (event # 4 has a neutron starting out at 12.8798 - seconds I presume!) but with some time that seems to depend on the event number. WHY? That is your doing in PrimaryGeneratorAction!

I understand now - what is going on - the printing of the global time doesn't change because the precision of the printing is such that the little time change on top of the 12s are not part of the significant digits that are printed out. That's all!

Peter

 Add Message Add Message
to: "Re: GetGlobalTime returns a constant value throughout event."

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]