Commit 1542978c authored by Paul Schütze's avatar Paul Schütze Committed by Simon Spannagel
Browse files

Add diamond to MaterialManager

parent ea9fc832
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -84,6 +84,7 @@ void Materials::set(const std::string& name, G4Material* material) {
 *   - polystyrene
 *   - ppo foam
 *   - cadmium zinc telluride
 *   - diamond
 *   - vacuum
 */
void Materials::init_materials() {
@@ -180,6 +181,9 @@ void Materials::init_materials() {
    CdZnTe->AddElement(Te, 10);
    materials_["cadmium_zinc_telluride"] = CdZnTe;

    auto* Diamond = new G4Material("Diamond", 6, 12.01 * CLHEP::g / CLHEP::mole, 3.52 * CLHEP::g / CLHEP::cm3);
    materials_["diamond"] = Diamond;

    // Add vacuum
    materials_["vacuum"] = new G4Material("Vacuum", 1, 1.008 * CLHEP::g / CLHEP::mole, CLHEP::universe_mean_density);
}
+1 −0
Original line number Diff line number Diff line
@@ -106,6 +106,7 @@ This module can create support layers and passive volumes of the following mater
    * polystyrene
    * ppo foam
    * cadmium zinc telluride
    * diamond
    * vacuum

Furthermore, this module can automatically load any material defined in the Geant4 material database [@g4materials]. This comprises both simple materials and pre-defined NIST compounds.