Message: Re: Atomic number not well defined in G4Material Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Atomic number not well defined in G4Material 

Forum: Geometry
Re: None Atomic number not well defined in G4Material (Paola Ferrario)
Date: 03 Aug, 2016
From: michel maire <michel maire>

On Wed, 03 Aug 2016 11:18:05 GMT, Paola Ferrario wrote:
> Hi all,
> 
> I'm trying to build a gas mixture as a material for my detector, so I've
> tried first to use an example of gas mixture of the Geant4 manual (air),
> to understand how it works. My code is the following:
> 
>  G4double a = 14.01*g/mole;
>  G4Element* elN  = new G4Element("Nitrogen", "N", 7, a);
> 
>  a = 16.00*g/mole;
>   G4Element* elO  = new G4Element("Oxygen", "O", 8, a);
> 
>
    For some (good ? or historical) reasons, atomic number must be given in float in the constructor of G4Element :
    G4Element("Nitrogen", 7., a);   etc ...

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

1 None: Re: Atomic number not well defined in G4Material   (Paola Ferrario - 03 Aug, 2016)
(_ None: Re: Atomic number not well defined in G4Material   (michel maire - 03 Aug, 2016)
(_ None: Re: Atomic number not well defined in G4Material   (Paola Ferrario - 04 Aug, 2016)
 Add Message Add Message
to: "Re: Atomic number not well defined in G4Material"

 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 ]