1 #ifndef MARLINMT_GEOMETRYMANAGER_h 2 #define MARLINMT_GEOMETRYMANAGER_h 1 63 std::shared_ptr<GeometryPlugin>
_plugin {
nullptr} ;
74 throw Exception(
"GeometryManager::geometry: geometry plugin not created !" ) ;
77 if (
nullptr == ptr ) {
80 const T *castHandle =
static_cast<const T*
>( ptr ) ;
81 if (
nullptr == castHandle ) {
82 throw Exception(
"GeometryManager::geometry: invalid geometry cast !" ) ;
std::shared_ptr< GeometryPlugin > _plugin
The geometry plugin created on initialization.
void clear()
Clear the geometry content.
const T * geometry() const
Get the underlying geometry handle Example:
std::type_index typeIndex() const
Get the underlying geometry type info.
GeometryManager & operator=(const GeometryManager &)=delete
void initialize() override
Initialize geometry manager.
GeometryManager()
Default constructor.
~GeometryManager()=default
StringParameter _geometryType
The geometry type, read as <geometry type="DD4hepGeometry">