Message: Re: RadioactiveDecay and *** G4Exception: Aborting execution *** Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: RadioactiveDecay and *** G4Exception: Aborting execution *** 

Forum: Physics List
Re: Warning RadioactiveDecay and *** G4Exception: Aborting execution *** (sdreda)
Re: None Re: RadioactiveDecay and *** G4Exception: Aborting execution *** (Vladimir IVANTCHENKO )
Re: None Re: RadioactiveDecay and *** G4Exception: Aborting execution *** (sdreda)
Date: 04 Apr, 2008
From: Vladimir IVANTCHENKO <vnivanch@mail.cern.ch>

On Fri, 4 Apr 2008, sdreda wrote:

> *** Discussion title: Physics List
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/phys-list/470/1/1"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 

Hello,

> Thanks for your help. But there is a question and I haven't the answer:
> 
> When I want to have the particle Radioactive Decay product and I make:
> if(s->GetPostStepPoint()->GetProcessDefinedStep() != NULL){
> if(s->GetPostStepPoint()->GetProcessDefinedStep()->GetProcessName()==
> "RadioactiveDecay") {...}, it run quitly, there isn't problem ,
>

This construction is safe.
 
> but when I make : if(track->GetCreatorProcess()->GetProcessName() ==
> "RadioactiveDecay") {...} It make me segmentation violation
> 

It is not safe, because you assume that track->GetCreatorProcess() never
NULL. For clarification you may post the question in corresponding forum, 
not in Physics List.

VI

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

1 None: Re: RadioactiveDecay and *** G4Exception: Aborting execution ***   (sdreda - 10 Apr, 2008)
 Add Message Add Message
to: "Re: RadioactiveDecay and *** G4Exception: Aborting execution ***"

 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 ]