Message: Re: Globaltime always equals to zero Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Globaltime always equals to zero 

Forum: Event and Track Management
Re: Question Globaltime always equals to zero (Diane Dore)
Date: 03 Dec, 2010
From: Marc Verderi <Marc Verderi>

Hello Diane,

This is strange, indeed...

Could you try to print the global time of the PreStepPoint and of the 
G4Track : aStep->GetTrack()->Get(Global ?)Time()  ?

Cheers,
Marc

Le 03/12/2010 10:03, Diane Dore a écrit :
> *** Discussion title: Event and Track Management
>
> I want to obtain the characteristics of a particle when it passes through a new layer. I need to know the position, the time, the energy...So I get the information from a step. It works for position and other variables but not for the time (global, local, proper).
> Here is a part of the code :
>    G4StepPoint*  PostStepPoint= aStep->GetPostStepPoint();
>    G4StepPoint*  PreStepPoint= aStep->GetPreStepPoint();
>
>    G4double time = (PostStepPoint->GetGlobalTime() ) / nanosecond;
>    G4cout<<"time in stepping action = "<<  time<<  G4endl;
>
> We compile with different versions of GEANT4 and the result is always 0
> !!! Someone could help me please Diane
>
> -------------------------------------------------------------
> Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at:
> http://hypernews.slac.stanford.edu/HyperNews/geant4/get/eventtrackmanage/979.html

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Globaltime always equals to zero   (Diane Dore - 03 Dec, 2010)
1 Feedback: Re: Globaltime always equals to zero   (Gumplinger Peter - 03 Dec, 2010)
2 None: Re: Globaltime always equals to zero   (michel maire - 04 Dec, 2010)
 Add Message Add Message
to: "Re: Globaltime always equals to zero"

 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 ]