DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Geant4GDMLDetector.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 
14 #ifndef DDG4_GEANT4GDMLDETECTOR_H
15 #define DDG4_GEANT4GDMLDETECTOR_H
16 
17 #include <G4VUserDetectorConstruction.hh>
18 #include <string>
19 
21 namespace dd4hep {
22 
24  namespace sim {
25 
27 
33  public:
34 
36  Geant4GDMLDetector(const std::string& gdmlFile);
38  virtual ~Geant4GDMLDetector() {
39  }
40  G4VPhysicalVolume* Construct() override;
41  private:
42  std::string m_fileName;
43  G4VPhysicalVolume* m_world { nullptr };
44  };
45  }
46 }
47 
48 #endif
dd4hep::sim::Geant4GDMLDetector
Class to read Geant4 geometry from GDML file.
Definition: Geant4GDMLDetector.h:32
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::sim::Geant4GDMLDetector::Geant4GDMLDetector
Geant4GDMLDetector(const std::string &gdmlFile)
Constructor to open gdml file.
Definition: Geant4GDMLDetector.cpp:26
G4VUserDetectorConstruction
Class of the Geant4 toolkit. See http://www-geant4.kek.jp/Reference.
Definition: Geant4Classes.h:67
dd4hep::sim::Geant4GDMLDetector::m_fileName
std::string m_fileName
Definition: Geant4GDMLDetector.h:42
dd4hep::sim::Geant4GDMLDetector::m_world
G4VPhysicalVolume * m_world
Definition: Geant4GDMLDetector.h:43
dd4hep::sim::Geant4GDMLDetector::~Geant4GDMLDetector
virtual ~Geant4GDMLDetector()
Default destructor.
Definition: Geant4GDMLDetector.h:38
dd4hep::sim::Geant4GDMLDetector::Construct
G4VPhysicalVolume * Construct() override
Definition: Geant4GDMLDetector.cpp:30