Ignore:
Timestamp:
Jan 8, 2010, 3:02:48 PM (14 years ago)
Author:
garnier
Message:

update to geant4.9.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/extended/electromagnetic/TestEm3/src/DetectorConstruction.cc

    r807 r1230  
    2424// ********************************************************************
    2525//
    26 // $Id: DetectorConstruction.cc,v 1.20 2007/03/19 20:10:38 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-01-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 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    105105  G4Element* H  = manager->FindOrBuildElement(1);
    106106  G4Element* C  = manager->FindOrBuildElement(6);
     107  G4Element* N  = manager->FindOrBuildElement(7);
    107108  G4Element* O  = manager->FindOrBuildElement(8);
    108109  G4Element* Si = manager->FindOrBuildElement(14);
     
    164165  Sci->AddElement(C, natoms=9);
    165166  Sci->AddElement(H, natoms=10);
     167 
     168  Sci->GetIonisation()->SetBirksConstant(0.126*mm/MeV);
    166169
    167170  G4Material* Lct =
     
    199202  BGO->AddElement(Bi, natoms= 4);
    200203
     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
    201211  //
    202212  // define gaseous materials using G4 NIST database
     
    205215 
    206216  G4Material* Air = manager->FindOrBuildMaterial("G4_AIR");
    207   manager->ConstructNewGasMaterial("Air20","G4_AIR",293.*kelvin, 1.*atmosphere);
     217  manager->ConstructNewGasMaterial("Air20","G4_AIR",293.*kelvin,1.*atmosphere);
    208218
    209219  G4Material* lAr = manager->FindOrBuildMaterial("G4_lAr");
     
    242252                  kStateGas, temperature= 273*kelvin, pressure= 1*atmosphere);
    243253  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);
    245257  //
    246258  // examples of vacuum
Note: See TracChangeset for help on using the changeset viewer.