Message: Re: Change in G4EmStandardPhysics interface Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Change in G4EmStandardPhysics interface 

Forum: Physics List
Re: Sad Change in G4EmStandardPhysics interface (Emanuele Leonardi)
Date: 17 Oct, 2007
From: Vladimir IVANTCHENKO <vnivanch@mail.cern.ch>

On Wed, 17 Oct 2007, Emanuele Leonardi wrote:

> *** Discussion title: Physics List
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/phys-list/414"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> I just noticed that the initialization method for class
> G4EmStandardPhysics changed between version 8.3 and 9.0:
> 
> v.8.3:
> 
>  G4EmStandardPhysics(const G4String& name = "G4standard", G4int ver = 0);
> 
> v.9.0:
> 
>  G4EmStandardPhysics(G4int ver = 0, const G4String& name = "G4EmStandard");
> 
> This is different from other physics_lists classes (e.g.
> G4HadronElasticPhysics) and creates a problem when writing applications
> that may be used under both v.8.3 and v.9.0. Also, I could not find any
> note about this change in the Release Notes nor in physics_lists/History
> or G4EmStandardPhysics.hh
> 
> What is the reason for this change?
> 
> How can I write code that uses G4EmStandardPhysics and can be compiled
> both on 8.3 and 9.0?
> 
> Thanks
> 
>                   Emanuele Leonardi
> 

Hello Emanuele,

Please, use G4EmStandardPhysics() for both - because of default 
implementation input parameters are optional. 

VI 

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

 Add Message Add Message
to: "Re: Change in G4EmStandardPhysics interface"

 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 ]