18 if( config.hasSection(
"geometry") ) {
19 const auto §ion = config.
section(
"geometry") ;
23 message() <<
"Loading geometry plugin: " << geomType << std::endl ;
27 MARLINMT_THROW(
"Couldn't find geometry plugin '" + geomType +
"'" ) ;
29 if( config.hasSection(
"geometry") ) {
30 const auto §ion = config.section(
"geometry") ;
31 _plugin->setParameters( section ) ;
void setName(const std::string &n)
Set the component name.
void setParameters(const ConfigSection §ion, bool throwIfNotFound=false)
Set the parameters from the configuration section.
Logging::StreamType message() const
Shortcut for log<MESSAGE>()
#define MARLINMT_THROW(message)
std::shared_ptr< GeometryPlugin > _plugin
The geometry plugin created on initialization.
void clear()
Clear the geometry content.
ConfigSection & section(const std::string &sn)
Get a section by name.
std::type_index typeIndex() const
Get the underlying geometry type info.
void initialize() override
Initialize geometry manager.
const Application & application() const
Get the application in which the component is registered.
T get() const
Get the parameter value.
GeometryManager()
Default constructor.
GeometryPlugin class Responsible for loading geometry in Marlin and providing access to it through th...
StringParameter _geometryType
The geometry type, read as <geometry type="DD4hepGeometry">
static PluginManager & instance()
Get the plugin manager instance.
const Configuration & configuration() const
Get the main application configuration object.