Message: Re: detectin particles leaving a volume. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: detectin particles leaving a volume. 

Forum: Event and Track Management
Re: None detectin particles leaving a volume. (naima)
Date: 18 Feb, 2010
From: Gumplinger Peter <Gumplinger Peter>

Hi, I find it very difficult to read your message....

But ok, when a step arrives at a volume boundary, the preStepPoint is still in the volume being left, while the postStepPoint already points into the volume on the other side of the boundary.

You have to be careful with the postStepPoint because when the track arrives at the 'end of the world' - e.g. is about to leave your simulation world - pointers in the G4StepPoint class may not be assigned; e.g. they are NULL and when you use a NULL pointer to get a name, for example, you get a segmentation fault.

You find a step that arrives at a volume boundary with:

pPostStepPoint->GetStepStatus() == fGeomBoundary

For the first step in a new volume, pPreStepPoint points to identical the same object as pPostStepPoint did in the previous step.

Peter

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

1 None: Re: detectin particles leaving a volume.   (michel maire - 19 Feb, 2010)
 Add Message Add Message
to: "Re: detectin particles leaving a volume."

 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 ]