Message: Re: how to define lexan in detectorConstructor.cc ? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: how to define lexan in detectorConstructor.cc ? 

Forum: Geometry
Re: Question how to define lexan in detectorConstructor.cc ? (navid hosseini)
Date: 01 Dec, 2011
From: Matej Batic <Matej Batic>

I hope this example (from the http://geant4.cern.ch/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch02s03.html) will help:

a = 1.01*g/mole;
z = 1.;
G4Element* elH  = new G4Element("Hydrogen","H" , z , a);

a = 16.00*g/mole;
z = 8.;
G4Element* elO  = new G4Element("Oxygen","O" ,z, a);

density = 1.000*g/cm3;
ncomponents=2;
G4Material* H2O = new G4Material("Water",density,ncomponents);
H2O->AddElement(elH, natoms=2);
H2O->AddElement(elO, natoms=1);

Good luck and best regards,
Matej

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

1 None: Re: how to define lexan in detectorConstructor.cc ?   (navid hosseini - 02 Dec, 2011)
 Add Message Add Message
to: "Re: how to define lexan in detectorConstructor.cc ?"

 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 ]