DD4hep
1.30.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... | |
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 64 of file Geant4Mapping.cpp.
|
protected |
When resolving pointers, we must check for the validity of the data block.
Definition at line 41 of file Geant4Mapping.cpp.
|
inline |
Access to the data pointer.
Definition at line 58 of file Geant4Mapping.h.
Geant4GeometryInfo * Geant4Mapping::detach | ( | ) |
Release data and pass over the ownership.
Definition at line 57 of file Geant4Mapping.cpp.
|
inline |
Accesor to the Detector instance.
Definition at line 53 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 48 of file Geant4Mapping.cpp.
|
static |
Possibility to define a singleton instance.
Definition at line 35 of file Geant4Mapping.cpp.
dd4hep::PlacedVolume Geant4Mapping::placement | ( | const G4VPhysicalVolume * | node | ) | const |
Accessor to resolve geometry placements.
Definition at line 81 of file Geant4Mapping.cpp.
|
inline |
Access to the data pointer.
Definition at line 63 of file Geant4Mapping.h.
Geant4VolumeManager Geant4Mapping::volumeManager | ( | ) | const |
Access the volume manager.
Definition at line 69 of file Geant4Mapping.cpp.
|
protected |
Definition at line 38 of file Geant4Mapping.h.
|
protected |
Definition at line 37 of file Geant4Mapping.h.