Message: Re: Is it safe to copy a G4VUserPhysicsList ? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Is it safe to copy a G4VUserPhysicsList ? 

Forum: Physics List
Re: Question Is it safe to copy a G4VUserPhysicsList ? (Iurii Sorokin)
Re: None Re: Is it safe to copy a G4VUserPhysicsList ? (Iurii Sorokin)
Re: None Re: Is it safe to copy a G4VUserPhysicsList ? (Iurii Sorokin)
Date: Dec 18, 07:37
From: Vladimir Ivanchenko <Vladimir Ivanchenko>

Hello Iurii,

I would not advise to do any of your proposed exercises even if sometime this will work for your. The purpose of Geant4 reference Physics List is different. It is not foreseen any copy, inheritance or other trick. Are these Physics Lists ideal or the best, what one can propose? Of course, not. We cannot guarantee, that for any application the reference Physics List will be optimal. We only guarantee, that all users will get the same configuration. In this sense your manipulations break this guarantee.

If a user needs physics list different or "slightly" different from the reference one there are several methods:

1) it is possible to have a custom physics using components from Geant4 physics list sub-library.

2) it is possible to have a custom physics list using components from Geant4 physics list library and custom physics constructors.

3) it is possible to instantiate physics list via G4PhysListFactory but use a method void ReplacePhysics(G4VPhysicsConstructor* ); the replacement will done for type of the constructor.

4) it is possible to have fully custom physics.

Needless to say, that any custom physics list is under full responsibility of a user. 

VI

VI

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

1 None: Re: Is it safe to copy a G4VUserPhysicsList ?   (Iurii Sorokin - Dec 18, 07:46)
 Add Message Add Message
to: "Re: Is it safe to copy a G4VUserPhysicsList ?"

 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 ]