- Timestamp:
- Jan 8, 2010, 3:02:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/electromagnetic/TestEm3/src/DetectorConstruction.cc
r807 r1230 24 24 // ******************************************************************** 25 25 // 26 // $Id: DetectorConstruction.cc,v 1.2 0 2007/03/19 20:10:38 vnivanchExp $27 // GEANT4 tag $Name: geant4-09-0 1-patch-02$26 // $Id: DetectorConstruction.cc,v 1.23 2009/03/04 18:49:17 maire Exp $ 27 // GEANT4 tag $Name: geant4-09-03-cand-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 105 105 G4Element* H = manager->FindOrBuildElement(1); 106 106 G4Element* C = manager->FindOrBuildElement(6); 107 G4Element* N = manager->FindOrBuildElement(7); 107 108 G4Element* O = manager->FindOrBuildElement(8); 108 109 G4Element* Si = manager->FindOrBuildElement(14); … … 164 165 Sci->AddElement(C, natoms=9); 165 166 Sci->AddElement(H, natoms=10); 167 168 Sci->GetIonisation()->SetBirksConstant(0.126*mm/MeV); 166 169 167 170 G4Material* Lct = … … 199 202 BGO->AddElement(Bi, natoms= 4); 200 203 204 //SiNx 205 density= 3.1 *g/cm3; 206 G4Material* SiNx= new G4Material("SiNx", density, ncomponents=3); 207 SiNx-> AddElement(Si, 300); 208 SiNx-> AddElement(N, 310); 209 SiNx-> AddElement(H, 6); 210 201 211 // 202 212 // define gaseous materials using G4 NIST database … … 205 215 206 216 G4Material* Air = manager->FindOrBuildMaterial("G4_AIR"); 207 manager->ConstructNewGasMaterial("Air20","G4_AIR",293.*kelvin, 217 manager->ConstructNewGasMaterial("Air20","G4_AIR",293.*kelvin,1.*atmosphere); 208 218 209 219 G4Material* lAr = manager->FindOrBuildMaterial("G4_lAr"); … … 242 252 kStateGas, temperature= 273*kelvin, pressure= 1*atmosphere); 243 253 steam->AddMaterial(H2O, fractionmass=1.); 244 254 255 new G4Material("ArgonGas", z=18, a=39.948*g/mole, density= 1.782*mg/cm3, 256 kStateGas, 273.15*kelvin, 1*atmosphere); 245 257 // 246 258 // examples of vacuum
Note: See TracChangeset
for help on using the changeset viewer.