1 | // |
---|
2 | // ******************************************************************** |
---|
3 | // * License and Disclaimer * |
---|
4 | // * * |
---|
5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
7 | // * conditions of the Geant4 Software License, included in the file * |
---|
8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
9 | // * include a list of copyright holders. * |
---|
10 | // * * |
---|
11 | // * Neither the authors of this software system, nor their employing * |
---|
12 | // * institutes,nor the agencies providing financial support for this * |
---|
13 | // * work make any representation or warranty, express or implied, * |
---|
14 | // * regarding this software system or assume any liability for its * |
---|
15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
16 | // * for the full disclaimer and the limitation of liability. * |
---|
17 | // * * |
---|
18 | // * This code implementation is the result of the scientific and * |
---|
19 | // * technical work of the GEANT4 collaboration. * |
---|
20 | // * By using, copying, modifying or distributing the software (or * |
---|
21 | // * any work based on the software) you agree to acknowledge its * |
---|
22 | // * use in resulting scientific publications, and indicate your * |
---|
23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
24 | // ******************************************************************** |
---|
25 | // |
---|
26 | // |
---|
27 | // $Id: G4MaterialSetup.cc,v 1.4 2006/06/29 19:48:46 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-03-cand-01 $ |
---|
29 | // |
---|
30 | // Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch) |
---|
31 | // |
---|
32 | // History: |
---|
33 | // ----------- |
---|
34 | // 07 Oct 2001 MGP Created |
---|
35 | // |
---|
36 | // ------------------------------------------------------------------- |
---|
37 | |
---|
38 | #include "globals.hh" |
---|
39 | #include "G4MaterialSetup.hh" |
---|
40 | #include "G4Material.hh" |
---|
41 | #include "G4Element.hh" |
---|
42 | |
---|
43 | void G4MaterialSetup::makeMaterials() |
---|
44 | { |
---|
45 | |
---|
46 | G4Material* Be = new G4Material("Beryllium", 4., 9.01*g/mole, 1.848*g/cm3); |
---|
47 | G4Material* graphite = new G4Material("Graphite",6., 12.00*g/mole, 2.265*g/cm3 ); |
---|
48 | G4Material* Al = new G4Material("Aluminium", 13., 26.98*g/mole, 2.7 *g/cm3); |
---|
49 | G4Material* Si = new G4Material("Silicon", 14., 28.055*g/mole, 2.33*g/cm3); |
---|
50 | G4Material* lAr = new G4Material("LArgon", 18., 39.95*g/mole, 1.393*g/cm3); |
---|
51 | G4Material* Fe = new G4Material("Iron", 26., 55.85*g/mole, 7.87*g/cm3); |
---|
52 | G4Material* Cu = new G4Material("Copper", 29., 63.55*g/mole, 8.96*g/cm3); |
---|
53 | G4Material* W = new G4Material("Tungsten", 74., 183.85*g/mole, 19.30*g/cm3); |
---|
54 | G4Material* Pb = new G4Material("Lead", 82., 207.19*g/mole, 11.35*g/cm3); |
---|
55 | G4Material* U = new G4Material("Uranium", 92., 238.03*g/mole, 18.95*g/cm3); |
---|
56 | |
---|
57 | G4Element* H = new G4Element ("Hydrogen", "H", 1. , 1.01*g/mole); |
---|
58 | G4Element* O = new G4Element ("Oxygen" , "O", 8. , 16.00*g/mole); |
---|
59 | G4Element* C = new G4Element ("Carbon" , "C", 6. , 12.00*g/mole); |
---|
60 | G4Element* Cs = new G4Element ("Cesium" , "Cs", 55. , 132.905*g/mole); |
---|
61 | G4Element* N = new G4Element("Nitrogen", "N" , 7., 14.01*g/mole); |
---|
62 | G4Element* I = new G4Element ("Iodide" , "I", 53. , 126.9044*g/mole); |
---|
63 | |
---|
64 | G4Material* maO = new G4Material("Oxygen", 8., 16.00*g/mole, 1.1*g/cm3); |
---|
65 | |
---|
66 | G4Material* water = new G4Material ("Water" , 1.*g/cm3, 2); |
---|
67 | water->AddElement(H,2); |
---|
68 | water->AddElement(O,1); |
---|
69 | |
---|
70 | G4Material* ethane = new G4Material ("Ethane" , 0.4241*g/cm3, 2); |
---|
71 | ethane->AddElement(H,6); |
---|
72 | ethane->AddElement(C,2); |
---|
73 | |
---|
74 | G4Material* CsI = new G4Material ("CsI" , 4.53*g/cm3, 2); |
---|
75 | CsI->AddElement(Cs,1); |
---|
76 | CsI->AddElement(I,1); |
---|
77 | |
---|
78 | G4Material* air = new G4Material("Air" , 1.290*mg/cm3, 2); |
---|
79 | air->AddElement(N,0.7); |
---|
80 | air->AddElement(O,0.3); |
---|
81 | |
---|
82 | // Dump the material table |
---|
83 | G4int nMaterials = G4Material::GetNumberOfMaterials(); |
---|
84 | |
---|
85 | G4cout << nMaterials << " materials created" << G4endl; |
---|
86 | |
---|
87 | // Dummy calls to avoid compilation warnings |
---|
88 | G4int i; |
---|
89 | i = Be->GetIndex(); |
---|
90 | i = graphite->GetIndex(); |
---|
91 | i = Al->GetIndex(); |
---|
92 | i = Si->GetIndex(); |
---|
93 | i = lAr->GetIndex(); |
---|
94 | i = Fe->GetIndex(); |
---|
95 | i = Cu->GetIndex(); |
---|
96 | i = W->GetIndex(); |
---|
97 | i = Pb->GetIndex(); |
---|
98 | i = U->GetIndex(); |
---|
99 | i = H->GetIndex(); |
---|
100 | i = O->GetIndex(); |
---|
101 | i = C->GetIndex(); |
---|
102 | i = Cs->GetIndex(); |
---|
103 | i = N->GetIndex(); |
---|
104 | i = I->GetIndex(); |
---|
105 | i = maO->GetIndex(); |
---|
106 | i = water->GetIndex(); |
---|
107 | i = ethane->GetIndex(); |
---|
108 | i = air->GetIndex(); |
---|
109 | i = CsI->GetIndex(); |
---|
110 | |
---|
111 | |
---|
112 | } |
---|