Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

MJGerdaLocalMaterialTable.cc

Go to the documentation of this file.
00001 /*
00002 // 11-02-2004 First Implementation, Luciano
00003 // 11-12-2004 added materials: enriched Ge76,
00004                  liquid N2, copper, water
00005 */
00006 
00007 #include "materials/MJGerdaLocalMaterialTable.hh"
00008 
00009 #include "G4Isotope.hh"
00010 #include "G4Element.hh"
00011 #include "G4Material.hh"
00012 
00013 
00014 MJGerdaLocalMaterialTable::MJGerdaLocalMaterialTable()
00015 {;}
00016 
00017 MJGerdaLocalMaterialTable::~MJGerdaLocalMaterialTable()
00018 {;}
00019 
00020 void MJGerdaLocalMaterialTable::CreateMaterials()
00021 {
00022   //here one should define the material he/she wants to use 
00023   //in the geometry, if not read from the DB
00024   G4double a;  // atomic mass
00025   G4double z;  // atomic number
00026   G4double density,fractionmass,abundance;
00027   G4int iz,in;
00028   G4String name,symbol;
00029   G4int ncomponents;
00030   G4int natoms;
00031   G4double temperature, pressure;
00032   G4State  state;
00033 
00034  
00035   G4Element *N = new G4Element (name="Nitrogen",
00036                                 symbol="N",z=7.,a=14.01*g/mole);
00037   G4Element* O  = new G4Element
00038     (name="Oxygen"  ,symbol="O" , z= 8., a=16.00*g/mole);
00039  
00040   G4Element* Si = new G4Element
00041     (name="Silicon",symbol="Si" , z= 14., a=28.09*g/mole);
00042   G4Element* Al = new G4Element
00043     (name="Aluminium"  ,symbol="Al" , z= 13., a=26.98*g/mole);
00044   G4Element* Fe = new G4Element
00045     (name="Iron"  ,symbol="Fe" , z= 26., a=55.85*g/mole);
00046   G4Element* H = new G4Element
00047     (name="Hydrogen",symbol="H" , z= 1., a=1.00794*g/mole);
00048   G4Element* Ca = new G4Element
00049     (name="Calcium",symbol="Ca" , z= 20., a=40.078*g/mole);
00050   G4Element* Cl = new G4Element
00051     (name="Chlorine",symbol="Cl", z=17., a=35.45*g/mole);
00052   G4Element* C  = new G4Element( "Carbon", "C",   6. , 12.011*g/mole);
00053   G4Element* Co = new G4Element( "Cobalt", "Co", 27. , 58.9332*g/mole);
00054  
00055   G4Isotope* Ga69 = new G4Isotope
00056     (name="Gallium69", iz= 31, in=69, a=69*g/mole);
00057   G4Isotope* Ga71 = new G4Isotope
00058     (name="Gallium71",iz=31,in=71,a=71*g/mole);
00059   G4Element* Ga = new G4Element
00060         (name="Gallium",symbol="Ga", ncomponents=2);
00061   Ga->AddIsotope(Ga69, abundance=0.61);
00062   Ga->AddIsotope(Ga71, abundance=0.39);
00063 
00064   G4Element* Cu = new G4Element
00065     (name="Copper"  ,symbol="Cu" , z= 29., a=63.55*g/mole);
00066 
00067     G4Isotope* Ge73 = new G4Isotope(name="Ge73",  32, 73, 73.0*g/mole);
00068     G4Isotope* Ge74 = new G4Isotope(name="Ge74",  32, 74, 74.0*g/mole);
00069     G4Isotope* Ge76 = new G4Isotope(name="Ge76",  32, 76, 76.0*g/mole);
00070 
00071     a = 75.71*g/mole;
00072     G4int nIsotopes=3;
00073     G4Element* Germanium=new G4Element(name="Germanium",symbol="Ge",nIsotopes);
00074     Germanium->AddIsotope(Ge73,0.01);
00075     Germanium->AddIsotope(Ge74,0.13);
00076     Germanium->AddIsotope(Ge76,0.86);
00077 
00078    G4Element* Pb = new G4Element
00079     (name="Lead",symbol="Pb" , z= 82., a=207.2*g/mole);
00080  
00081   //-- then materials
00082  
00083   density=1.290*mg/cm3;
00084   G4Material *air = new G4Material(name="Air",density,ncomponents=2,
00085                                     kStateGas,300.00*kelvin,1.0*atmosphere);
00086   air->AddElement(N,fractionmass=0.8);
00087   air->AddElement(O,fractionmass=0.2);
00088 
00089   //concrete
00090   G4Material* concrete = new G4Material
00091     (name="Concrete", density=2.3*g/cm3, ncomponents=6);
00092   concrete->AddElement(Si, 0.227915);
00093   concrete->AddElement(O, 0.60541);
00094   concrete->AddElement(H, 0.09972);
00095   concrete->AddElement(Ca, 0.04986);
00096   concrete->AddElement(Al, 0.014245);
00097   concrete->AddElement(Fe, 0.00285);
00098  
00099   //stainless steel
00100   G4Material* ssteel = new G4Material
00101     (name="Steel", density=7.7*g/cm3, ncomponents=3);
00102   ssteel->AddElement(C, 0.04);
00103   ssteel->AddElement(Fe, 0.88);
00104   ssteel->AddElement(Co, 0.08);
00105 
00106   // vacuum
00107     a= 14.000674*g/mole;
00108     density = 1.E-10*g/cm3;
00109     G4Material* vacuum = new G4Material(name="Vacuum", z=7., a, density);
00110 
00111   // liquid N2
00112     density=0.808*g/cm3;
00113     ncomponents=1;
00114     natoms=1;
00115     state=kStateLiquid;
00116     temperature=80.0*kelvin;
00117     pressure=1.0*bar;
00118     name="LiquidNitrogen";
00119     G4Material* liquidnitrogen = new G4Material(name,density,ncomponents,
00120                                      state,temperature,pressure);
00121     liquidnitrogen->AddElement(N,natoms);
00122 
00123   // enriched germanium
00124     density = 5.32*g/cm3;
00125     G4Material* ge = new G4Material(name="Ge", density, 1);
00126     G4double fraction=1.;
00127     ge->AddElement(Germanium, fraction);
00128 
00129   // copper
00130   G4Material* metalCu = new G4Material
00131     (name="MetalCopper", density=8.960*g/cm3, ncomponents=1);
00132   metalCu->AddElement(Cu, 1);
00133 
00134  //water
00135   G4Material* water = new G4Material
00136     (name="water", density=1.00*g/cm3, ncomponents=2);
00137   water->AddElement(H , 2);
00138   water->AddElement(O , 1);
00139 
00140   // lead
00141   G4Material* metalPb = new G4Material
00142     (name="MetalLead", density=11.340*g/cm3, ncomponents=1);
00143   metalPb->AddElement(Pb, 1);
00144  
00145 }

Generated on Mon Nov 29 16:58:53 2004 for Majorana Simulation by  doxygen 1.3.9.1