Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Materials Class Reference

#include <Materials.hh>

Public Member Functions

 Materials ()
 
 ~Materials ()
 
G4MaterialGetMaterial (const G4String &)
 
 Materials ()
 
 ~Materials ()
 
void Construct ()
 

Static Public Member Functions

static MaterialsGetInstance ()
 

Detailed Description

Definition at line 49 of file Materials.hh.

Constructor & Destructor Documentation

Materials::Materials ( )

Definition at line 61 of file Materials.cc.

62 {
63  fgInstance = this;
64  Initialise();
65 }

Here is the caller graph for this function:

Materials::~Materials ( )

Definition at line 67 of file Materials.cc.

68 {}
Materials::Materials ( )
Materials::~Materials ( )

Member Function Documentation

void Materials::Construct ( void  )

Definition at line 47 of file Materials.cc.

48 {
49  G4double A, Z;
50 
51  // ------------------------------------------------------------------------
52  // Elements
53  // ------------------------------------------------------------------------
54  G4Element* elH = new G4Element("Hydrogen","H", Z=1., A=1.00794*g/mole);
55  G4Element* elC = new G4Element("Carbon", "C", Z=6., A= 12.011 *g/mole);
56  G4Element* elN = new G4Element("Nitrogen","N", Z=7., A= 14.00674*g/mole);
57  G4Element* elO = new G4Element("Oxygen", "O", Z=8., A= 15.9994*g/mole);
58  G4Element* elNa = new G4Element("Sodium", "Na", Z=11., A= 22.989768*g/mole);
59  G4Element* elSi = new G4Element("Silicon", "Si", Z=14., A= 28.0855*g/mole);
60  G4Element* elAr = new G4Element("Argon", "Ar", Z=18., A= 39.948*g/mole);
61  G4Element* elI = new G4Element("Iodine", "I", Z=53., A= 126.90447*g/mole);
62  G4Element* elCs = new G4Element("Cesium", "Cs", Z=55., A= 132.90543*g/mole);
63 
64  // ------------------------------------------------------------------------
65  // Materials
66  // ------------------------------------------------------------------------
67  G4double density, massfraction;
68  G4int natoms, nel;
69 
70  // temperature of experimental hall is controlled at 20 degree.
71  const G4double expTemp = STP_Temperature+20.*kelvin;
72 
73  // vacuum
74  density = universe_mean_density;
75  G4Material* Vacuum = new G4Material("Vacuum", density, nel=2);
76  Vacuum-> AddElement(elN, .7);
77  Vacuum-> AddElement(elO, .3);
78 
79  // air
80  density = 1.2929e-03 *g/cm3; // at 20 degree
81  G4Material* Air = new G4Material("Air", density, nel=3,
82  kStateGas, expTemp);
83  G4double ttt = 75.47+23.20+1.28;
84  Air-> AddElement(elN, massfraction= 75.47/ttt);
85  Air-> AddElement(elO, massfraction= 23.20/ttt);
86  Air-> AddElement(elAr, massfraction= 1.28/ttt);
87 
88  // Ar gas
89  A = 39.948 *g/mole;
90  const G4double denAr = 1.782e-03 *g/cm3 * STP_Temperature/expTemp;
91  G4Material* Ar= new G4Material("ArgonGas", Z=18., A, denAr,
92  kStateGas, expTemp);
93 
94  // ethane (C2H6)
95  const G4double denEthane = 1.356e-3 *g/cm3 * STP_Temperature/expTemp;
96  G4Material* Ethane= new G4Material("Ethane", denEthane, nel=2,
97  kStateGas, expTemp);
98  Ethane-> AddElement(elC, natoms=2);
99  Ethane-> AddElement(elH, natoms=6);
100 
101  // Ar(50%) + ethane(50%) mixture
102  density = (denAr+denEthane)/2.;
103  G4Material* ArEthane = new G4Material("ArEthane", density, nel=2,
104  kStateGas, expTemp);
105  ArEthane-> AddMaterial(Ar, massfraction= denAr/density/2.);
106  ArEthane-> AddMaterial(Ethane, massfraction= denEthane/density/2.);
107 
108  // silicon
109  A = 28.0855 *g/mole;
110  density = 2.33 *g/cm3;
111  new G4Material("SiliconWafer", Z=14., A, density);
112 
113  // alminium
114  A = 26.98 *g/mole;
115  density = 2.70 *g/cm3;
116  new G4Material("Al", Z=13., A, density);
117 
118  // iron
119  A = 55.847 *g/mole;
120  density = 7.87 *g/cm3;
121  new G4Material("Iron", Z=26., A, density);
122 
123  // lead
124  A = 207.2 *g/mole;
125  density = 11.35 *g/cm3;
126  new G4Material("Lead", Z=82., A, density);
127 
128  // scintillator (Polystyene(C6H5CH=CH2))
129  density = 1.032 *g/cm3;
130  G4Material* Scinti = new G4Material("Scinti", density, nel=2);
131  Scinti-> AddElement(elC, natoms=8);
132  Scinti-> AddElement(elH, natoms=8);
133 
134  // quartz (SiO2, crystalline)
135  density = 2.64 *g/cm3;
136  G4Material* Quartz = new G4Material("Quartz", density, nel= 2);
137  Quartz-> AddElement(elSi, natoms=1);
138  Quartz-> AddElement(elO, natoms=2);
139 
140  // NaI crystal
141  density = 3.67 *g/cm3;
142  G4Material* NaI = new G4Material("NaI", density, nel= 2);
143  NaI-> AddElement(elNa, natoms=1);
144  NaI-> AddElement(elI, natoms=1);
145 
146  // CsI crystal
147  density = 4.51 *g/cm3;
148  G4Material* CsI = new G4Material("CsI", density, nel= 2);
149  CsI-> AddElement(elCs, natoms=1);
150  CsI-> AddElement(elI, natoms=1);
151 
152 }
int universe_mean_density
Definition: hepunit.py:307
float STP_Temperature
Definition: hepunit.py:302
int G4int
Definition: G4Types.hh:78
function g(Y1, Y2, PT2)
Definition: hijing1.383.f:5205
double A(double temperature)
static constexpr double kelvin
Definition: G4SIunits.hh:281
static constexpr double cm3
Definition: G4SIunits.hh:121
double G4double
Definition: G4Types.hh:76
static constexpr double mole
Definition: G4SIunits.hh:286

Here is the call graph for this function:

Materials * Materials::GetInstance ( void  )
static

Definition at line 52 of file Materials.cc.

53 {
54  if ( ! fgInstance ) {
55  fgInstance = new Materials();
56  }
57  return fgInstance;
58 }

Here is the call graph for this function:

Here is the caller graph for this function:

G4Material * Materials::GetMaterial ( const G4String name)

Definition at line 460 of file Materials.cc.

461 {
462 
463  // const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
464 
466 
467  G4cout << "Material is selected: " << ma->GetName() << G4endl;
468  return ma;
469 }
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
Definition: G4Material.cc:602
const G4String & GetName() const
Definition: G4Material.hh:178
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: