Message: Re: GetPostStepPoint causes segmentaion fault Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: GetPostStepPoint causes segmentaion fault  

Forum: Event and Track Management
Re: Question GetPostStepPoint causes segmentaion fault (Gergely Soti)
Date: 07 Dec, 2009
From: Gumplinger Peter <Gumplinger Peter>

> Now, if my particle misses the AngleSensor, and goes to the end or the world

> volume, I get a segmentation fault, right when I try to access the "GetName" of

> the volume.

> Is this the expected behavior?

Yes, this is the "expected behavior"! You have to protect using the pointer to the PostStep's physical volume. It is NULL for steps ending at the edge of the 'World Volume'. (Let's not discuss why this trap is in G4 - I have argued and tried to convince my collaborators for years that we should spare our users but to no avail - What it would take is an automatic "OutsideWorld" volume that is of the same shape and just a bit larger than the one instantiated by the user.)

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

1 Ok: Re: GetPostStepPoint causes segmentaion fault   (Gergely Soti - 07 Dec, 2009)
 Add Message Add Message
to: "Re: GetPostStepPoint causes segmentaion fault "

 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 ]