Message: Re: Get information at any point of a step Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Get information at any point of a step 

Forum: Event and Track Management
Re: Question Get information at any point of a step (andreas battaglia)
Date: 26 Oct, 2005
From: Gumplinger Peter <Gumplinger Peter>

Andreas,

> and suppose there is a step, which begins in volume 1 and ends in 

> volume 2.

This, as you wrote it, never happens in Geant4! The stepping is always such that the last step in a volume ends at the volume's boundary. However, for this last step, the PreStepPoint is in the old volume, while the PostStepPoint 'is' in the new volume, where the PostStepPoint coordinates are of a point exactly on the boundary.

You can test for this:

G4StepPoint* pPostStepPoint = aStep.GetPostStepPoint();
if (pPostStepPoint->GetStepStatus() == fGeomBoundary){
 G4StepPoint* pPreStepPoint = aStep.GetPreStepPoint();
 If(pPreStepPoint ->GetVolume()->GetName == Volume1 &&
    pPostStepPoint->GetVolume()->GetName == Volume2){

> Another question which confuses me is:  from a Track get I the same 

> information than from PostStepPoint? 

Yes, see G4Step::UpdateTrack

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

 Add Message Add Message
to: "Re: Get information at any point of a step"

 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 ]