14 #ifndef DD4HEP_DDG4_GEANT4VOLUMEMANAGER_H
15 #define DD4HEP_DDG4_GEANT4VOLUMEMANAGER_H
30 namespace Simulation {
33 class Geant4VolumeManager;
34 class Geant4GeometryInfo;
106 #endif // DD4HEP_DDG4_GEANT4VOLUMEMANAGER_H
Geant4GeometryInfo Object
static const VolumeID Insensitive
bool checkValidity() const
Check the validity of the information before accessing it.
Handle class holding a placed volume (also called physical volume)
Geant4VolumeManager(const Geometry::Handle< Q > &e)
Constructor to be used when reading the already parsed object.
The Geant4VolumeManager to facilitate optimized lookups of cell IDs from touchables.
DetectorTools::PlacementPath PlacementPath
VolumeID volumeID(const PlacementPath &path) const
Access CELLID by placement path.
bool m_isValid
Optimization flag to shortcut object checks.
std::vector< const G4VPhysicalVolume * > Geant4PlacementPath
Geometry::PlacedVolume PlacedVolume
void volumeDescriptor(const PlacementPath &path, VolIDDescriptor &volume_desc) const
Accessfully decoded volume fields by placement path.
Geant4GeometryMaps::Geant4PlacementPath PlacementPath
Geometry::IDDescriptor IDDescriptor
Geant4VolumeManager(const Geant4VolumeManager &e)
Constructor to be used when reading the already parsed object.
Geant4VolumeManager & operator=(const Geant4VolumeManager &c)
Assignment operator.
static const VolumeID InvalidPath
std::pair< VolumeID, VolIDFields > VolIDDescriptor
Handle: a templated class like a shared pointer, which allows specialized access to tgeometry objects...
Geant4VolumeManager()
Default constructor.
Geant4VolumeManager(const Base &e)
Constructor to be used when reading the already parsed object.
The main interface to the DD4hep detector description package.
Concreate class holding the relation information between geant4 objects and dd4hep objects...
PlacementPath placementPath(const G4VTouchable *touchable, bool exception=true) const
Helper: Generate placement path from touchable object.
static const VolumeID NonExisting
T * m_element
Single and only data member: Reference to the actual element.
IDDescriptor::VolIDFields VolIDFields
std::vector< VolIDField > VolIDFields
Class implementing the ID encoding of detector response.
Geometry::Handle< Geant4GeometryInfo > Base