Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // 26 // 27 /// \file electromagnetic/TestEm10/src/Materia 27 /// \file electromagnetic/TestEm10/src/Materials.cc 28 /// \brief Implementation of the Materials cla 28 /// \brief Implementation of the Materials class 29 // 29 // 30 // 30 // 31 // << 31 // 32 // GEANT 4 class << 32 // GEANT 4 class 33 // 33 // 34 // History: based on object model of 34 // History: based on object model of 35 // Materials 35 // Materials 36 // Originally Created in Test30 by Vladimi << 36 // Originally Created in Test30 by Vladimir Ivanchenko, 12 March 2002 37 // << 37 // 38 // Modified for Test by V. Grichine, 29 Jan 38 // Modified for Test by V. Grichine, 29 Jan 2006 39 // is filled with XTR related materials, pl 39 // is filled with XTR related materials, plastics, gas mixtures, etc 40 40 >> 41 41 #include "Materials.hh" 42 #include "Materials.hh" 42 43 >> 44 #include "G4UnitsTable.hh" 43 #include "G4Material.hh" 45 #include "G4Material.hh" 44 #include "G4MaterialTable.hh" 46 #include "G4MaterialTable.hh" 45 #include "G4SystemOfUnits.hh" 47 #include "G4SystemOfUnits.hh" 46 #include "G4UnitsTable.hh" << 47 << 48 //....oooOO0OOooo........oooOO0OOooo........oo << 49 48 50 Materials* Materials::fgInstance = 0; 49 Materials* Materials::fgInstance = 0; 51 50 52 //....oooOO0OOooo........oooOO0OOooo........oo << 53 << 54 Materials* Materials::GetInstance() 51 Materials* Materials::GetInstance() 55 { 52 { 56 if (!fgInstance) { << 53 if ( ! fgInstance ) { 57 fgInstance = new Materials(); 54 fgInstance = new Materials(); 58 } 55 } 59 return fgInstance; 56 return fgInstance; 60 } 57 } 61 58 62 //....oooOO0OOooo........oooOO0OOooo........oo << 63 59 64 Materials::Materials() 60 Materials::Materials() 65 { 61 { 66 fgInstance = this; 62 fgInstance = this; 67 Initialise(); 63 Initialise(); 68 } 64 } 69 65 70 //....oooOO0OOooo........oooOO0OOooo........oo << 66 Materials::~Materials() 71 << 67 {} 72 Materials::~Materials() {} << 73 << 74 //....oooOO0OOooo........oooOO0OOooo........oo << 75 68 76 void Materials::Initialise() 69 void Materials::Initialise() 77 { 70 { 78 G4String name, symbol; << 71 G4String name, symbol; 79 G4double a, z; << 72 G4double a, z; 80 G4double density, fractionmass; << 73 G4double density, fractionmass; 81 G4int nel, ncomponents; 74 G4int nel, ncomponents; 82 75 83 // define Elements 76 // define Elements >> 77 >> 78 a = 1.01*g/mole; >> 79 G4Element* elH = new G4Element(name="Hydrogen",symbol="H" , z= 1., a); 84 80 85 a = 1.01 * g / mole; << 81 a = 6.94*g/mole; 86 G4Element* elH = new G4Element(name = "Hydro << 82 G4Element* elLi = new G4Element(name="Lithium",symbol="Li" , z= 3., a); 87 83 88 a = 6.94 * g / mole; << 84 a = 9.01*g/mole; 89 G4Element* elLi = new G4Element(name = "Lith << 85 G4Element* elBe = new G4Element(name="Berillium",symbol="Be" , z= 4., a); 90 86 91 a = 9.01 * g / mole; << 87 a = 12.01*g/mole; 92 G4Element* elBe = new G4Element(name = "Beri << 88 G4Element* elC = new G4Element(name="Carbon", symbol="C", z=6., a); 93 89 94 a = 12.01 * g / mole; << 90 a = 14.01*g/mole; 95 G4Element* elC = new G4Element(name = "Carbo << 91 G4Element* elN = new G4Element(name="Nitrogen",symbol="N" , z= 7., a); 96 92 97 a = 14.01 * g / mole; << 93 a = 16.00*g/mole; 98 G4Element* elN = new G4Element(name = "Nitro << 94 G4Element* elO = new G4Element(name="Oxygen" ,symbol="O" , z= 8., a); 99 95 100 a = 16.00 * g / mole; << 96 a = 39.948*g/mole; 101 G4Element* elO = new G4Element(name = "Oxyge << 97 G4Element* elAr = new G4Element(name="Argon", symbol="Ar", z=18., a); 102 << 103 a = 39.948 * g / mole; << 104 G4Element* elAr = new G4Element(name = "Argo << 105 98 106 /* 99 /* 107 a = 131.29*g/mole; 100 a = 131.29*g/mole; 108 G4Element* elXe = new G4Element(name="Xenon" 101 G4Element* elXe = new G4Element(name="Xenon", symbol="Xe", z=54., a); 109 102 110 a = 19.00*g/mole; 103 a = 19.00*g/mole; 111 G4Element* elF = new G4Element(name="Fluori 104 G4Element* elF = new G4Element(name="Fluorine", symbol="F", z=9., a); 112 */ 105 */ 113 106 114 ////////////// 107 ////////////// 115 // 108 // 116 // Detector windows, electrodes 109 // Detector windows, electrodes 117 // Al for electrodes 110 // Al for electrodes 118 111 119 density = 2.700 * g / cm3; << 112 density = 2.700*g/cm3; 120 a = 26.98 * g / mole; << 113 a = 26.98*g/mole; 121 new G4Material(name = "Al", z = 13., a, dens << 114 new G4Material(name="Al", z=13., a, density); >> 115 122 116 123 ///////// 117 ///////// 124 // 118 // 125 // Materials for popular X-ray TR radiators 119 // Materials for popular X-ray TR radiators 126 // 120 // 127 121 128 // TRT_CH2 122 // TRT_CH2 129 123 130 density = 0.935 * g / cm3; << 124 density = 0.935*g/cm3; 131 G4Material* TRT_CH2 = new G4Material(name = << 125 G4Material* TRT_CH2 = new G4Material(name="TRT_CH2",density, nel=2); 132 TRT_CH2->AddElement(elC, 1); << 126 TRT_CH2->AddElement(elC,1); 133 TRT_CH2->AddElement(elH, 2); << 127 TRT_CH2->AddElement(elH,2); 134 128 135 // Radiator 129 // Radiator 136 130 137 density = 0.059 * g / cm3; << 131 density = 0.059*g/cm3; 138 G4Material* Radiator = new G4Material(name = << 132 G4Material* Radiator = new G4Material(name="Radiator",density, nel=2); 139 Radiator->AddElement(elC, 1); << 133 Radiator->AddElement(elC,1); 140 Radiator->AddElement(elH, 2); << 134 Radiator->AddElement(elH,2); 141 135 142 // Carbon Fiber 136 // Carbon Fiber 143 137 144 density = 0.145 * g / cm3; << 138 density = 0.145*g/cm3; 145 G4Material* CarbonFiber = new G4Material(nam << 139 G4Material* CarbonFiber = new G4Material(name="CarbonFiber",density, nel=1); 146 CarbonFiber->AddElement(elC, 1); << 140 CarbonFiber->AddElement(elC,1); 147 141 148 // Lithium 142 // Lithium 149 143 150 density = 0.534 * g / cm3; << 144 density = 0.534*g/cm3; 151 G4Material* Li = new G4Material(name = "Li", << 145 G4Material* Li = new G4Material(name="Li",density, nel=1); 152 Li->AddElement(elLi, 1); << 146 Li->AddElement(elLi,1); 153 147 154 // Beryllium 148 // Beryllium 155 149 156 density = 1.848 * g / cm3; << 150 density = 1.848*g/cm3; 157 G4Material* Be = new G4Material(name = "Be", << 151 G4Material* Be = new G4Material(name="Be",density, nel=1); 158 Be->AddElement(elBe, 1); << 152 Be->AddElement(elBe,1); >> 153 159 154 160 // Mylar 155 // Mylar 161 156 162 density = 1.39 * g / cm3; << 157 density = 1.39*g/cm3; 163 G4Material* Mylar = new G4Material(name = "M << 158 G4Material* Mylar = new G4Material(name="Mylar", density, nel=3); 164 Mylar->AddElement(elO, 2); << 159 Mylar->AddElement(elO,2); 165 Mylar->AddElement(elC, 5); << 160 Mylar->AddElement(elC,5); 166 Mylar->AddElement(elH, 4); << 161 Mylar->AddElement(elH,4); 167 162 168 // Kapton Dupont de Nemur (density: 1.396-1. 163 // Kapton Dupont de Nemur (density: 1.396-1.430, get middle ) 169 164 170 density = 1.413 * g / cm3; << 165 density = 1.413*g/cm3; 171 G4Material* Kapton = new G4Material(name = " << 166 G4Material* Kapton = new G4Material(name="Kapton", density, nel=4); 172 Kapton->AddElement(elO, 5); << 167 Kapton->AddElement(elO,5); 173 Kapton->AddElement(elC, 22); << 168 Kapton->AddElement(elC,22); 174 Kapton->AddElement(elN, 2); << 169 Kapton->AddElement(elN,2); 175 Kapton->AddElement(elH, 10); << 170 Kapton->AddElement(elH,10); 176 171 177 // Kapton (polyimide) ??? since = Mylar C5H4 172 // Kapton (polyimide) ??? since = Mylar C5H4O2 178 173 179 // density = 1.39*g/cm3; 174 // density = 1.39*g/cm3; 180 // G4Material* kapton = new G4Material(name= 175 // G4Material* kapton = new G4Material(name="kapton", density, nel=3); 181 // Kapton->AddElement(elO,2); 176 // Kapton->AddElement(elO,2); 182 // Kapton->AddElement(elC,5); 177 // Kapton->AddElement(elC,5); 183 // Kapton->AddElement(elH,4); 178 // Kapton->AddElement(elH,4); 184 179 185 // Polypropelene 180 // Polypropelene 186 181 187 G4Material* CH2 = new G4Material("CH2", 0.91 << 182 G4Material* CH2 = new G4Material ("CH2" , 0.91*g/cm3, 2); 188 CH2->AddElement(elH, 2); << 183 CH2->AddElement(elH,2); 189 CH2->AddElement(elC, 1); << 184 CH2->AddElement(elC,1); 190 185 191 //////////////////////////// 186 //////////////////////////// 192 // 187 // 193 // Noble gases , STP conditions 188 // Noble gases , STP conditions 194 189 195 // Helium as detector gas, STP 190 // Helium as detector gas, STP 196 191 197 density = 0.178 * mg / cm3; << 192 density = 0.178*mg/cm3; 198 a = 4.0026 * g / mole; << 193 a = 4.0026*g/mole; 199 G4Material* He = new G4Material(name = "He", << 194 G4Material* He = new G4Material(name="He",z=2., a, density ); 200 195 201 // Neon as detector gas, STP 196 // Neon as detector gas, STP 202 197 203 density = 0.900 * mg / cm3; << 198 density = 0.900*mg/cm3; 204 a = 20.179 * g / mole; << 199 a = 20.179*g/mole; 205 new G4Material(name = "Ne", z = 10., a, dens << 200 new G4Material(name="Ne",z=10., a, density ); 206 201 207 // Argon as detector gas, STP 202 // Argon as detector gas, STP 208 203 209 density = 1.7836 * mg / cm3; // STP << 204 density = 1.7836*mg/cm3; // STP 210 G4Material* Argon = new G4Material(name = "A << 205 G4Material* Argon = new G4Material(name="Argon" , density, ncomponents=1); 211 Argon->AddElement(elAr, 1); 206 Argon->AddElement(elAr, 1); 212 207 213 // Krypton as detector gas, STP 208 // Krypton as detector gas, STP 214 209 215 density = 3.700 * mg / cm3; << 210 density = 3.700*mg/cm3; 216 a = 83.80 * g / mole; << 211 a = 83.80*g/mole; 217 G4Material* Kr = new G4Material(name = "Kr", << 212 G4Material* Kr = new G4Material(name="Kr",z=36., a, density ); 218 213 219 // Xenon as detector gas, STP 214 // Xenon as detector gas, STP 220 215 221 density = 5.858 * mg / cm3; << 216 density = 5.858*mg/cm3; 222 a = 131.29 * g / mole; << 217 a = 131.29*g/mole; 223 G4Material* Xe = new G4Material(name = "Xeno << 218 G4Material* Xe = new G4Material(name="Xenon",z=54., a, density ); 224 219 225 ///////////////////////////////// << 220 ///////////////////////////////// 226 // << 221 // 227 // Hydrocarbones, metane and others << 222 // Hydrocarbones, metane and others 228 223 229 // Metane, STP 224 // Metane, STP 230 225 231 density = 0.7174 * mg / cm3; << 226 density = 0.7174*mg/cm3; 232 G4Material* metane = new G4Material(name = " << 227 G4Material* metane = new G4Material(name="CH4",density,nel=2); 233 metane->AddElement(elC, 1); << 228 metane->AddElement(elC,1); 234 metane->AddElement(elH, 4); << 229 metane->AddElement(elH,4); 235 230 236 // Propane, STP 231 // Propane, STP 237 232 238 density = 2.005 * mg / cm3; << 233 density = 2.005*mg/cm3 ; 239 G4Material* propane = new G4Material(name = << 234 G4Material* propane = new G4Material(name="C3H8",density,nel=2); 240 propane->AddElement(elC, 3); << 235 propane->AddElement(elC,3); 241 propane->AddElement(elH, 8); << 236 propane->AddElement(elH,8); 242 237 243 // iso-Butane (methylpropane), STP 238 // iso-Butane (methylpropane), STP 244 239 245 density = 2.67 * mg / cm3; << 240 density = 2.67*mg/cm3; 246 G4Material* isobutane = new G4Material(name << 241 G4Material* isobutane = new G4Material(name="isoC4H10",density,nel=2); 247 isobutane->AddElement(elC, 4); << 242 isobutane->AddElement(elC,4); 248 isobutane->AddElement(elH, 10); << 243 isobutane->AddElement(elH,10); 249 244 250 ///////////////////////// 245 ///////////////////////// 251 // 246 // 252 // Molecular gases 247 // Molecular gases 253 248 254 // Carbon dioxide, STP 249 // Carbon dioxide, STP 255 250 256 density = 1.977 * mg / cm3; << 251 density = 1.977*mg/cm3; 257 G4Material* CO2 = << 252 G4Material* CO2 = new G4Material(name="CO2", density, nel=2, 258 new G4Material(name = "CO2", density, nel << 253 kStateGas,273.15*kelvin,1.*atmosphere); 259 CO2->AddElement(elC, 1); << 254 CO2->AddElement(elC,1); 260 CO2->AddElement(elO, 2); << 255 CO2->AddElement(elO,2); 261 256 262 // Carbon dioxide, STP 257 // Carbon dioxide, STP 263 258 264 density = 1.977 * 273. * mg / cm3 / 293.; << 259 density = 1.977*273.*mg/cm3/293.; 265 G4Material* CarbonDioxide = new G4Material(n << 260 G4Material* CarbonDioxide = new G4Material(name="CO2_2", density, nel=2); 266 CarbonDioxide->AddElement(elC, 1); << 261 CarbonDioxide->AddElement(elC,1); 267 CarbonDioxide->AddElement(elO, 2); << 262 CarbonDioxide->AddElement(elO,2); 268 263 269 // Nitrogen, STP 264 // Nitrogen, STP 270 265 271 density = 1.25053 * mg / cm3; // STP << 266 density = 1.25053*mg/cm3; // STP 272 G4Material* Nitrogen = new G4Material(name = << 267 G4Material* Nitrogen = new G4Material(name="N2" , density, ncomponents=1); 273 Nitrogen->AddElement(elN, 2); 268 Nitrogen->AddElement(elN, 2); 274 269 275 // Oxygen, STP 270 // Oxygen, STP 276 271 277 density = 1.4289 * mg / cm3; // STP << 272 density = 1.4289*mg/cm3; // STP 278 G4Material* Oxygen = new G4Material(name = " << 273 G4Material* Oxygen = new G4Material(name="O2" , density, ncomponents=1); 279 Oxygen->AddElement(elO, 2); 274 Oxygen->AddElement(elO, 2); 280 275 281 /* ***************************** 276 /* ***************************** 282 density = 1.25053*mg/cm3; // STP 277 density = 1.25053*mg/cm3; // STP 283 a = 14.01*g/mole ; // get atomic weigh 278 a = 14.01*g/mole ; // get atomic weight !!! 284 // a = 28.016*g/mole; 279 // a = 28.016*g/mole; 285 G4Material* N2 = new G4Material(name="Nitro 280 G4Material* N2 = new G4Material(name="Nitrogen", z= 7.,a,density) ; 286 281 287 density = 1.25053*mg/cm3; // STP 282 density = 1.25053*mg/cm3; // STP 288 G4Material* anotherN2 = new G4Material(name= 283 G4Material* anotherN2 = new G4Material(name="anotherN2", density,ncomponents=2); 289 anotherN2->AddElement(elN, 1); 284 anotherN2->AddElement(elN, 1); 290 anotherN2->AddElement(elN, 1); 285 anotherN2->AddElement(elN, 1); 291 286 292 // air made from oxigen and nitrogen only 287 // air made from oxigen and nitrogen only 293 288 294 density = 1.290*mg/cm3; // old air from ele 289 density = 1.290*mg/cm3; // old air from elements 295 G4Material* air = new G4Material(name="air" 290 G4Material* air = new G4Material(name="air" , density, ncomponents=2); 296 air->AddElement(elN, fractionmass=0.7); 291 air->AddElement(elN, fractionmass=0.7); 297 air->AddElement(elO, fractionmass=0.3); 292 air->AddElement(elO, fractionmass=0.3); 298 ******************************************** 293 ******************************************** */ 299 294 300 // Dry Air (average composition with Ar), ST 295 // Dry Air (average composition with Ar), STP 301 296 302 density = 1.2928 * mg / cm3; // STP << 297 density = 1.2928*mg/cm3 ; // STP 303 G4Material* Air = new G4Material(name = "Air << 298 G4Material* Air = new G4Material(name="Air" , density, ncomponents=3); 304 Air->AddMaterial(Nitrogen, fractionmass = 0. << 299 Air->AddMaterial( Nitrogen, fractionmass = 0.7557 ); 305 Air->AddMaterial(Oxygen, fractionmass = 0.23 << 300 Air->AddMaterial( Oxygen, fractionmass = 0.2315 ); 306 Air->AddMaterial(Argon, fractionmass = 0.012 << 301 Air->AddMaterial( Argon, fractionmass = 0.0128 ); 307 302 308 //////////////////////////////////////////// 303 //////////////////////////////////////////////////////////////////////////// 309 // 304 // 310 // MWPC mixtures 305 // MWPC mixtures 311 306 312 // 85% Xe + 15% CO2, STP 307 // 85% Xe + 15% CO2, STP 313 308 314 density = 4.9 * mg / cm3; << 309 density = 4.9*mg/cm3; 315 G4Material* Xe15CO2 = new G4Material(name = << 310 G4Material* Xe15CO2 = new G4Material(name="Xe15CO2" , density, ncomponents=2); 316 Xe15CO2->AddMaterial(Xe, fractionmass = 0.97 << 311 Xe15CO2->AddMaterial( Xe, fractionmass = 0.979); 317 Xe15CO2->AddMaterial(CarbonDioxide, fraction << 312 Xe15CO2->AddMaterial( CarbonDioxide, fractionmass = 0.021); 318 313 319 // 80% Xe + 20% CO2, STP 314 // 80% Xe + 20% CO2, STP 320 315 321 density = 5.0818 * mg / cm3; << 316 density = 5.0818*mg/cm3; 322 G4Material* Xe20CO2 = new G4Material(name = << 317 G4Material* Xe20CO2 = new G4Material(name="Xe20CO2" , density, ncomponents=2); 323 Xe20CO2->AddMaterial(Xe, fractionmass = 0.92 << 318 Xe20CO2->AddMaterial( Xe, fractionmass = 0.922 ); 324 Xe20CO2->AddMaterial(CarbonDioxide, fraction << 319 Xe20CO2->AddMaterial( CarbonDioxide, fractionmass = 0.078 ); 325 320 326 // 70% Xe + 27% CO2 + 3% O2, 20 1 atm ATLAS 321 // 70% Xe + 27% CO2 + 3% O2, 20 1 atm ATLAS straw tube mixture 327 322 328 density = 4.358 * mg / cm3; << 323 density = 4.358*mg/cm3; 329 G4Material* Xe27CO23O2 = new G4Material(name << 324 G4Material* Xe27CO23O2 = new G4Material(name="Xe27CO23O2" , density, ncomponents=3); 330 Xe27CO23O2->AddMaterial(Xe, fractionmass = 0 << 325 Xe27CO23O2->AddMaterial( Xe, fractionmass = 0.87671); 331 Xe27CO23O2->AddMaterial(CarbonDioxide, fract << 326 Xe27CO23O2->AddMaterial( CarbonDioxide, fractionmass = 0.11412); 332 Xe27CO23O2->AddMaterial(Oxygen, fractionmass << 327 Xe27CO23O2->AddMaterial( Oxygen, fractionmass = 0.00917); 333 328 334 // 80% Kr + 20% CO2, STP 329 // 80% Kr + 20% CO2, STP 335 330 336 density = 3.601 * mg / cm3; << 331 density = 3.601*mg/cm3; 337 G4Material* Kr20CO2 = new G4Material(name = << 332 G4Material* Kr20CO2 = new G4Material(name="Kr20CO2", density, 338 Kr20CO2->AddMaterial(Kr, fractionmass = 0.89 << 333 ncomponents=2); 339 Kr20CO2->AddMaterial(CarbonDioxide, fraction << 334 Kr20CO2->AddMaterial( Kr, fractionmass = 0.89 ); >> 335 Kr20CO2->AddMaterial( CarbonDioxide, fractionmass = 0.11 ); 340 336 341 // Xe + 55% He + 15% CH4 ; NIM A294 (1990) 4 337 // Xe + 55% He + 15% CH4 ; NIM A294 (1990) 465-472; STP 342 338 343 density = 1.963 * 273. * mg / cm3 / 293.; << 339 density = 1.963*273.*mg/cm3/293.; 344 G4Material* Xe55He15CH4 = new G4Material(nam << 340 G4Material* Xe55He15CH4 = new G4Material(name="Xe55He15CH4",density, >> 341 ncomponents=3); 345 Xe55He15CH4->AddMaterial(Xe, 0.895); 342 Xe55He15CH4->AddMaterial(Xe, 0.895); 346 Xe55He15CH4->AddMaterial(He, 0.050); 343 Xe55He15CH4->AddMaterial(He, 0.050); 347 Xe55He15CH4->AddMaterial(metane, 0.055); << 344 Xe55He15CH4->AddMaterial(metane,0.055); 348 345 349 // 90% Xe + 10% CH4, STP ; NIM A248 (1986) 3 346 // 90% Xe + 10% CH4, STP ; NIM A248 (1986) 379-388 350 347 351 density = 5.344 * mg / cm3; << 348 density = 5.344*mg/cm3; 352 G4Material* Xe10CH4 = new G4Material(name = << 349 G4Material* Xe10CH4 = new G4Material(name="Xe10CH4" , density, 353 Xe10CH4->AddMaterial(Xe, fractionmass = 0.98 << 350 ncomponents=2); 354 Xe10CH4->AddMaterial(metane, fractionmass = << 351 Xe10CH4->AddMaterial( Xe, fractionmass = 0.987 ) ; >> 352 Xe10CH4->AddMaterial( metane, fractionmass = 0.013 ) ; 355 353 356 // 95% Xe + 5% CH4, STP ; NIM A214 (1983) 26 354 // 95% Xe + 5% CH4, STP ; NIM A214 (1983) 261-268 357 355 358 density = 5.601 * mg / cm3; << 356 density = 5.601*mg/cm3; 359 G4Material* Xe5CH4 = new G4Material(name = " << 357 G4Material* Xe5CH4 = new G4Material(name="Xe5CH4" , density, 360 Xe5CH4->AddMaterial(Xe, fractionmass = 0.994 << 358 ncomponents=2); 361 Xe5CH4->AddMaterial(metane, fractionmass = 0 << 359 Xe5CH4->AddMaterial( Xe, fractionmass = 0.994 ); >> 360 Xe5CH4->AddMaterial( metane, fractionmass = 0.006 ); 362 361 363 // 80% Xe + 20% CH4, STP ; NIM A253 (1987) 2 362 // 80% Xe + 20% CH4, STP ; NIM A253 (1987) 235-244 364 363 365 density = 4.83 * mg / cm3; << 364 density = 4.83*mg/cm3; 366 G4Material* Xe20CH4 = new G4Material(name = << 365 G4Material* Xe20CH4 = new G4Material(name="Xe20CH4" , density, 367 Xe20CH4->AddMaterial(Xe, fractionmass = 0.97 << 366 ncomponents=2); 368 Xe20CH4->AddMaterial(metane, fractionmass = << 367 Xe20CH4->AddMaterial( Xe, fractionmass = 0.97 ); >> 368 Xe20CH4->AddMaterial( metane, fractionmass = 0.03 ); 369 369 370 // 93% Ar + 7% CH4, STP ; NIM 107 (1973) 413 370 // 93% Ar + 7% CH4, STP ; NIM 107 (1973) 413-422 371 371 372 density = 1.709 * mg / cm3; << 372 density = 1.709*mg/cm3; 373 G4Material* Ar7CH4 = new G4Material(name = " << 373 G4Material* Ar7CH4 = new G4Material(name="Ar7CH4" , density, 374 Ar7CH4->AddMaterial(Argon, fractionmass = 0. << 374 ncomponents=2); 375 Ar7CH4->AddMaterial(metane, fractionmass = 0 << 375 Ar7CH4->AddMaterial( Argon, fractionmass = 0.971 ); >> 376 Ar7CH4->AddMaterial( metane, fractionmass = 0.029 ); 376 377 377 // 93% Kr + 7% CH4, STP ; NIM 107 (1973) 413 378 // 93% Kr + 7% CH4, STP ; NIM 107 (1973) 413-422 378 379 379 density = 3.491 * mg / cm3; << 380 density = 3.491*mg/cm3; 380 G4Material* Kr7CH4 = new G4Material(name = " << 381 G4Material* Kr7CH4 = new G4Material(name="Kr7CH4" , density, 381 Kr7CH4->AddMaterial(Kr, fractionmass = 0.986 << 382 ncomponents=2); 382 Kr7CH4->AddMaterial(metane, fractionmass = 0 << 383 Kr7CH4->AddMaterial( Kr, fractionmass = 0.986 ); >> 384 Kr7CH4->AddMaterial( metane, fractionmass = 0.014 ); 383 385 384 // 0.5*(95% Xe + 5% CH4)+0.5*(93% Ar + 7% CH 386 // 0.5*(95% Xe + 5% CH4)+0.5*(93% Ar + 7% CH4), STP ; NIM A214 (1983) 261-268 385 387 386 density = 3.655 * mg / cm3; << 388 density = 3.655*mg/cm3; 387 G4Material* XeArCH4 = new G4Material(name = << 389 G4Material* XeArCH4 = new G4Material(name="XeArCH4" , density, 388 XeArCH4->AddMaterial(Xe5CH4, fractionmass = << 390 ncomponents=2); 389 XeArCH4->AddMaterial(Ar7CH4, fractionmass = << 391 XeArCH4->AddMaterial( Xe5CH4, fractionmass = 0.766 ); >> 392 XeArCH4->AddMaterial( Ar7CH4, fractionmass = 0.234 ); 390 393 391 // Silicon as detector material 394 // Silicon as detector material 392 395 393 density = 2.330 * g / cm3; << 396 density = 2.330*g/cm3; 394 a = 28.09 * g / mole; << 397 a = 28.09*g/mole; 395 new G4Material(name = "Si", z = 14., a, dens << 398 new G4Material(name="Si", z=14., a, density); >> 399 >> 400 >> 401 396 402 397 /* 403 /* 398 G4Material* ma; 404 G4Material* ma; 399 ma = new G4Material("H", 1., 1.0*g/mol 405 ma = new G4Material("H", 1., 1.0*g/mole, 1.*g/cm3); 400 ma = new G4Material("D", 1., 2.0*g/mol 406 ma = new G4Material("D", 1., 2.0*g/mole, 1.*g/cm3); 401 ma = new G4Material("Li", 3., 6.941*g/m 407 ma = new G4Material("Li", 3., 6.941*g/mole, 1.*g/cm3); 402 ma = new G4Material("Be", 4., 9.01*g/mo 408 ma = new G4Material("Be", 4., 9.01*g/mole, 1.848*g/cm3); 403 ma = new G4Material("C", 6., 12.00*g/m 409 ma = new G4Material("C", 6., 12.00*g/mole, 2.0*g/cm3); 404 ma = new G4Material("Graphite",6., 12 410 ma = new G4Material("Graphite",6., 12.00*g/mole, 2.265*g/cm3 ); 405 ma->SetChemicalFormula("Graphite"); 411 ma->SetChemicalFormula("Graphite"); 406 ma = new G4Material("Al", 13., 26.98*g/ 412 ma = new G4Material("Al", 13., 26.98*g/mole, 2.7 *g/cm3); 407 ma = new G4Material("Si", 14., 29 413 ma = new G4Material("Si", 14., 29.055*g/mole, 2.33*g/cm3); 408 ma = new G4Material("LAr", 18., 39 414 ma = new G4Material("LAr", 18., 39.95*g/mole, 1.393*g/cm3); 409 ma = new G4Material("Zr", 40., 91 415 ma = new G4Material("Zr", 40., 91.224*g/mole, 4.0*g/cm3); 410 ma = new G4Material("LXe", 54., 131 416 ma = new G4Material("LXe", 54., 131.29*g/mole, 3.02*g/cm3); 411 ma = new G4Material("Fe", 26., 55 417 ma = new G4Material("Fe", 26., 55.85*g/mole, 7.87*g/cm3); 412 ma = new G4Material("Ni", 29., 58 418 ma = new G4Material("Ni", 29., 58.6934*g/mole, 8.00*g/cm3); 413 ma = new G4Material("Cu", 29., 63 419 ma = new G4Material("Cu", 29., 63.55*g/mole, 8.96*g/cm3); 414 ma = new G4Material("Au", 79., 196 420 ma = new G4Material("Au", 79., 196.97*g/mole, 19.32*g/cm3); 415 ma = new G4Material("Ta", 73., 180 421 ma = new G4Material("Ta", 73., 180.9479*g/mole, 16.67*g/cm3); 416 ma = new G4Material("W", 74., 183 422 ma = new G4Material("W", 74., 183.85*g/mole, 19.30*g/cm3); 417 ma = new G4Material("Pb", 82., 207 423 ma = new G4Material("Pb", 82., 207.19*g/mole, 11.35*g/cm3); 418 ma = new G4Material("Bi", 83., 208 424 ma = new G4Material("Bi", 83., 208.98*g/mole, 12.*g/cm3); 419 ma = new G4Material("U", 92., 238 425 ma = new G4Material("U", 92., 238.03*g/mole, 18.95*g/cm3); 420 426 421 G4Element* H = new G4Element ("Hydrogen", 427 G4Element* H = new G4Element ("Hydrogen", "H", 1. , 1.01*g/mole); 422 G4Element* N = new G4Element ("Nitrigen", 428 G4Element* N = new G4Element ("Nitrigen", "N", 7. , 14.00*g/mole); 423 G4Element* O = new G4Element ("Oxygen" , 429 G4Element* O = new G4Element ("Oxygen" , "O", 8. , 16.00*g/mole); 424 G4Element* C = new G4Element ("Carbon" , 430 G4Element* C = new G4Element ("Carbon" , "C", 6. , 12.00*g/mole); 425 G4Element* Cs = new G4Element ("Cesium" , 431 G4Element* Cs = new G4Element ("Cesium" , "Cs", 55. , 132.905*g/mole); 426 G4Element* I = new G4Element ("Iodide" , 432 G4Element* I = new G4Element ("Iodide" , "I", 53. , 126.9044*g/mole); 427 433 428 ma = new G4Material("O2", 8., 16.00*g/mole, 434 ma = new G4Material("O2", 8., 16.00*g/mole, 1.1*g/cm3); 429 ma->SetChemicalFormula("O_2"); 435 ma->SetChemicalFormula("O_2"); 430 ma = new G4Material ("Water" , 1.*g/cm3, 2); 436 ma = new G4Material ("Water" , 1.*g/cm3, 2); 431 ma->AddElement(H,2); 437 ma->AddElement(H,2); 432 ma->AddElement(O,1); 438 ma->AddElement(O,1); 433 ma->SetChemicalFormula("H_2O"); 439 ma->SetChemicalFormula("H_2O"); 434 ma = new G4Material ("Ethane" , 0.4241*g/cm3 440 ma = new G4Material ("Ethane" , 0.4241*g/cm3, 2); 435 ma->AddElement(H,6); 441 ma->AddElement(H,6); 436 ma->AddElement(C,2); 442 ma->AddElement(C,2); 437 ma->SetChemicalFormula("C_2H_6"); 443 ma->SetChemicalFormula("C_2H_6"); 438 ma = new G4Material ("CsI" , 4.53*g/cm3, 2); 444 ma = new G4Material ("CsI" , 4.53*g/cm3, 2); 439 ma->AddElement(Cs,1); 445 ma->AddElement(Cs,1); 440 ma->AddElement(I,1); 446 ma->AddElement(I,1); 441 ma->SetChemicalFormula("CsI"); 447 ma->SetChemicalFormula("CsI"); 442 ma = new G4Material("Air" , 1.290*mg/cm3, 2 448 ma = new G4Material("Air" , 1.290*mg/cm3, 2); 443 // use fraction in mass 449 // use fraction in mass 444 ma->AddElement(N, 0.7); 450 ma->AddElement(N, 0.7); 445 ma->AddElement(O, 0.3); 451 ma->AddElement(O, 0.3); 446 */ 452 */ >> 453 >> 454 >> 455 447 } 456 } 448 457 449 //....oooOO0OOooo........oooOO0OOooo........oo << 450 458 451 G4Material* Materials::GetMaterial(const G4Str 459 G4Material* Materials::GetMaterial(const G4String& name) 452 { << 460 { 453 // const G4MaterialTable* theMaterialTable << 454 461 455 G4Material* ma = G4Material::GetMaterial(nam << 462 // const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable(); 456 463 >> 464 G4Material* ma = G4Material::GetMaterial(name); >> 465 457 G4cout << "Material is selected: " << ma->Ge 466 G4cout << "Material is selected: " << ma->GetName() << G4endl; 458 return ma; 467 return ma; 459 } << 468 } >> 469 >> 470 >> 471 >> 472 >> 473 >> 474 >> 475 >> 476 460 477