Message: Re: segmentation fault in getting geometry name Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: segmentation fault in getting geometry name  

Forum: Geometry
Re: Question segmentation fault in getting geometry name (kitty)
Re: More Re: segmentation fault in getting geometry name (kitty)
Date: 03 Jan, 2013
From: C Mos <C Mos>

I believe you have to make sure you are not trying to operate on objects when they are in NULL state.

  if(aStep->GetTrack()->GetVolume() != NULL)
    cout << aStep->GetTrack()->GetVolume() ->GetName() << G4endl;

Try that... it is a good start. Cheers,

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

1 Feedback: Re: segmentation fault in getting geometry name   (kitty - 14 Jan, 2013)
 Add Message Add Message
to: "Re: segmentation fault in getting geometry name "

 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 ]