Message: Re: Use a dynamic choice for material (2nd argument) of G4LogicalVolume ? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Use a dynamic choice for material (2nd argument) of G4LogicalVolume ? 

Forum: Geometry
Re: Question Use a dynamic choice for material (2nd argument) of G4LogicalVolume ? (Jacques Goldberg)
Date: 09 Sep, 2013
From: John Allison <John Allison>

I would use

  G4NistManager* man = G4NistManager::Instance();
  G4Material* mat  = man->FindOrBuildMaterial(rmat);
  ...
  box1_log = new G4LogicalVolume(box1,mat,"box1_log",0,0,0);

See Application Developers Guide Section 4.2.3, Recipes for Building Elements and Materials and where the string typed on your data card is one of those in Section 10, Geant4 Material Database.

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

1 Ok: Re: Use a dynamic choice for material (2nd argument) of G4LogicalVolume ?   (Jacques Goldberg - 09 Sep, 2013)
 Add Message Add Message
to: "Re: Use a dynamic choice for material (2nd argument) of G4LogicalVolume ?"

 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 ]