![]() |
DD4hep
1.35.0
Detector Description Toolkit for High Energy Physics
|
Geometry mapping from dd4hep to Geant 4. More...
#include <Geant4Mapping.h>
Public Member Functions | |
| Geant4Mapping (const Detector &description) | |
| Initializing Constructor. More... | |
| virtual | ~Geant4Mapping () |
| Standard destructor. More... | |
| const Detector & | detectorDescription () const |
| Accesor to the Detector instance. More... | |
| Geant4GeometryInfo & | data () const |
| Access to the data pointer. More... | |
| Geant4GeometryInfo * | ptr () const |
| Access to the data pointer. More... | |
| Geant4GeometryInfo & | init () |
| Create and attach new data block. Delete old data block if present. More... | |
| Geant4GeometryInfo * | detach () |
| Release data and pass over the ownership. More... | |
| void | attach (Geant4GeometryInfo *data) |
| Set a new data block. More... | |
| Geant4VolumeManager | volumeManager () const |
| Access the volume manager. More... | |
| PlacedVolume | placement (const G4VPhysicalVolume *node) const |
| Accessor to resolve geometry placements. More... | |
Static Public Member Functions | |
| static Geant4Mapping & | instance () |
| Possibility to define a singleton instance. More... | |
Public Attributes | |
| bool | debugVolManager { false } |
| Debug flag when populating the Geant4 volume manager (Option set by Geant4DetectorGeometryConstruction) More... | |
| bool | haveVolManager { true } |
| Disable building Geant4 voilume manager. Throw exception when accessed. More... | |
Protected Member Functions | |
| void | checkValidity () const |
| When resolving pointers, we must check for the validity of the data block. More... | |
Protected Attributes | |
| const Detector & | m_detDesc |
| Geant4GeometryInfo * | m_dataPtr |
| Geant4Mapping::Geant4Mapping | ( | const Detector & | description | ) |
Initializing Constructor.
Definition at line 23 of file Geant4Mapping.cpp.
|
virtual |
Standard destructor.
Definition at line 28 of file Geant4Mapping.cpp.
| void Geant4Mapping::attach | ( | Geant4GeometryInfo * | data | ) |
Set a new data block.
Definition at line 65 of file Geant4Mapping.cpp.
|
protected |
When resolving pointers, we must check for the validity of the data block.
Definition at line 42 of file Geant4Mapping.cpp.
|
inline |
Access to the data pointer.
Definition at line 65 of file Geant4Mapping.h.
| Geant4GeometryInfo * Geant4Mapping::detach | ( | ) |
Release data and pass over the ownership.
Definition at line 58 of file Geant4Mapping.cpp.
|
inline |
Accesor to the Detector instance.
Definition at line 60 of file Geant4Mapping.h.
| Geant4GeometryInfo & Geant4Mapping::init | ( | ) |
Create and attach new data block. Delete old data block if present.
Create new data block. Delete old data block if present.
Definition at line 50 of file Geant4Mapping.cpp.
|
static |
Possibility to define a singleton instance.
Definition at line 36 of file Geant4Mapping.cpp.
| dd4hep::PlacedVolume Geant4Mapping::placement | ( | const G4VPhysicalVolume * | node | ) | const |
Accessor to resolve geometry placements.
Definition at line 87 of file Geant4Mapping.cpp.
|
inline |
Access to the data pointer.
Definition at line 70 of file Geant4Mapping.h.
| Geant4VolumeManager Geant4Mapping::volumeManager | ( | ) | const |
Access the volume manager.
Definition at line 70 of file Geant4Mapping.cpp.
| bool dd4hep::sim::Geant4Mapping::debugVolManager { false } |
Debug flag when populating the Geant4 volume manager (Option set by Geant4DetectorGeometryConstruction)
Definition at line 45 of file Geant4Mapping.h.
| bool dd4hep::sim::Geant4Mapping::haveVolManager { true } |
Disable building Geant4 voilume manager. Throw exception when accessed.
Definition at line 47 of file Geant4Mapping.h.
|
protected |
Definition at line 38 of file Geant4Mapping.h.
|
protected |
Definition at line 37 of file Geant4Mapping.h.
1.8.18