|
||||
File indexing completed on 2025-01-18 09:55:23
0001 //========================================================================== 0002 // AIDA Detector description implementation 0003 //-------------------------------------------------------------------------- 0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN) 0005 // All rights reserved. 0006 // 0007 // For the licensing terms see $DD4hepINSTALL/LICENSE. 0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS. 0009 // 0010 // Author : M.Frank 0011 // 0012 //========================================================================== 0013 0014 #ifndef DDG4_GEANT4GDMLDETECTOR_H 0015 #define DDG4_GEANT4GDMLDETECTOR_H 0016 0017 #include <G4VUserDetectorConstruction.hh> 0018 #include <string> 0019 0020 /// Namespace for the AIDA detector description toolkit 0021 namespace dd4hep { 0022 0023 /// Namespace for the Geant4 based simulation part of the AIDA detector description toolkit 0024 namespace sim { 0025 0026 /// Class to read Geant4 geometry from GDML file 0027 /** 0028 * \author M.Frank 0029 * \version 1.0 0030 * \ingroup DD4HEP_SIMULATION 0031 */ 0032 class Geant4GDMLDetector : public G4VUserDetectorConstruction { 0033 public: 0034 0035 /// Constructor to open gdml file 0036 Geant4GDMLDetector(const std::string& gdmlFile); 0037 /// Default destructor 0038 virtual ~Geant4GDMLDetector() { 0039 } 0040 G4VPhysicalVolume* Construct(); 0041 private: 0042 std::string m_fileName; 0043 G4VPhysicalVolume* m_world { nullptr }; 0044 }; 0045 } 0046 } 0047 0048 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |