Message: Re: puzzled by exrdmPhysicsList in "extended examples" Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: puzzled by exrdmPhysicsList in "extended examples" 

Forum: Documentation and Examples
Re: Question puzzled by exrdmPhysicsList in "extended examples" (Alain Ferragut)
Date: 05 Jan, 2005
From: Vladimir IVANTCHENKO <>

On Wed, 5 Jan 2005, Alain Ferragut wrote:

> *** Discussion title: Documentation and Examples
> Email replies to must include:
>   In-Reply-To: <"/docsexamples/123">
>   Subject: ...change this to be about your reply.
> Hi, I do not understand some code lines in exrdm example. It is located
> in the physics list , SelectPhysicsList() method.
> 1/ "if (!hadPhysicsList) delete hadPhysicsList;" . What is the purpose
> of deleting a NULL pointer ? We need to delete it if the corresponding
> object already exists, so that a new one can be created...Or do I miss
> something.....
> 2/ "if (!hadPhysicsList) delete emPhysicsList;". I get even more
> confused here. Why deleting emPhysicsList if hadPhysicsList is NULL ?
> Isn't it "if (emPhysicsList) delete emPhysicsList;"
> Thanks,
>               Alain


In which example you find this line? I cannot find out.


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

 Add Message Add Message
to: "Re: puzzled by exrdmPhysicsList in "extended examples""

 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 ]