DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
dd4hep::sim::Geant4Mapping Class Reference

Geometry mapping from dd4hep to Geant 4. More...

#include <Geant4Mapping.h>

Inheritance diagram for dd4hep::sim::Geant4Mapping:
dd4hep::detail::GeoHandlerTypes dd4hep::sim::Geant4Converter

Public Member Functions

 Geant4Mapping (const Detector &description)
 Initializing Constructor. More...
 
virtual ~Geant4Mapping ()
 Standard destructor. More...
 
const DetectordetectorDescription () const
 Accesor to the Detector instance. More...
 
Geant4GeometryInfodata () const
 Access to the data pointer. More...
 
Geant4GeometryInfoptr () const
 Access to the data pointer. More...
 
Geant4GeometryInfoinit ()
 Create and attach new data block. Delete old data block if present. More...
 
Geant4GeometryInfodetach ()
 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 Geant4Mappinginstance ()
 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 Detectorm_detDesc
 
Geant4GeometryInfom_dataPtr
 

Detailed Description

Geometry mapping from dd4hep to Geant 4.

Author
M.Frank
Version
1.0

Definition at line 35 of file Geant4Mapping.h.

Constructor & Destructor Documentation

◆ Geant4Mapping()

Geant4Mapping::Geant4Mapping ( const Detector description)

Initializing Constructor.

Definition at line 23 of file Geant4Mapping.cpp.

◆ ~Geant4Mapping()

Geant4Mapping::~Geant4Mapping ( )
virtual

Standard destructor.

Definition at line 28 of file Geant4Mapping.cpp.

Member Function Documentation

◆ attach()

void Geant4Mapping::attach ( Geant4GeometryInfo data)

Set a new data block.

Definition at line 64 of file Geant4Mapping.cpp.

◆ checkValidity()

void Geant4Mapping::checkValidity ( ) const
protected

When resolving pointers, we must check for the validity of the data block.

Definition at line 41 of file Geant4Mapping.cpp.

◆ data()

Geant4GeometryInfo& dd4hep::sim::Geant4Mapping::data ( ) const
inline

Access to the data pointer.

Definition at line 58 of file Geant4Mapping.h.

◆ detach()

Geant4GeometryInfo * Geant4Mapping::detach ( )

Release data and pass over the ownership.

Definition at line 57 of file Geant4Mapping.cpp.

◆ detectorDescription()

const Detector& dd4hep::sim::Geant4Mapping::detectorDescription ( ) const
inline

Accesor to the Detector instance.

Definition at line 53 of file Geant4Mapping.h.

◆ init()

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.

◆ instance()

Geant4Mapping & Geant4Mapping::instance ( )
static

Possibility to define a singleton instance.

Definition at line 35 of file Geant4Mapping.cpp.

◆ placement()

dd4hep::PlacedVolume Geant4Mapping::placement ( const G4VPhysicalVolume *  node) const

Accessor to resolve geometry placements.

Definition at line 81 of file Geant4Mapping.cpp.

◆ ptr()

Geant4GeometryInfo* dd4hep::sim::Geant4Mapping::ptr ( ) const
inline

Access to the data pointer.

Definition at line 63 of file Geant4Mapping.h.

◆ volumeManager()

Geant4VolumeManager Geant4Mapping::volumeManager ( ) const

Access the volume manager.

Definition at line 69 of file Geant4Mapping.cpp.

Member Data Documentation

◆ m_dataPtr

Geant4GeometryInfo* dd4hep::sim::Geant4Mapping::m_dataPtr
protected

Definition at line 38 of file Geant4Mapping.h.

◆ m_detDesc

const Detector& dd4hep::sim::Geant4Mapping::m_detDesc
protected

Definition at line 37 of file Geant4Mapping.h.


The documentation for this class was generated from the following files: