Message: Re: Al vs. G4_Al Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Al vs. G4_Al 

Forum: Geometry
Re: Question Al vs. G4_Al (Neil Fazel)
Date: 27 Oct, 2013
From: Michael H. Kelsey <Michael H. Kelsey>

On Sun, 27 Oct 2013 20:23:04 GMT, Neil Fazel wrote:
> Does it make a difference whether I create an element such as Al using
> "Al" or "G4_Al"?
> 
> G4Element* Al_element1 = man->FindOrBuildElement("Al");
> G4Element* Al_element2 = man->FindOrBuildElement("G4_Al");
> 
> G4Material* Al_material1 = man->FindOrBuildMaterial("Al");
> G4Material* Al_material2 = man->FindOrBuildMaterial("G4_Al");
> 
> Thanks in advance.

Technically, the name string is arbitrary. You could call it "FLOOPY" if you wanted to :-) However, we have tried to consistently use the "G4_" prefix for all of the predefined materials we provide through the G4NistMaterialManager.

In order for you, and anyone with whom you share your code, to avoid confusion, I would recommend that you avoid the "G4_" prefix for materials you create yourself.

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

1 Question: Re: Al vs. G4_Al   (Neil Fazel - 27 Oct, 2013)
 Add Message Add Message
to: "Re: Al vs. G4_Al"

 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 ]