9#include <geometry/CreatorManager.h>
10#include <framework/logging/Logger.h>
11#include <framework/utilities/FileSystem.h>
33 if (!library.empty()) {
40 B2ERROR(
"Could not find a geometry creator named " << name);
static bool loadLibrary(std::string library, bool fullname=true)
Load a shared library.
Pure virtual base class for all geometry creators.
Class to manage all creators and provide factory access.
static void registerCreatorFactory(const std::string &name, CreatorFactory *factory)
Register a new creator by providing a name and a pointer to a factory for this kind of creator.
static CreatorBase * getCreator(const std::string &name, const std::string &library="")
Return a new instance of a creator with the given name.
std::map< std::string, CreatorFactory * > m_creatorFactories
Static map to hold all registered factories.
CreatorManager()
singleton, hide constructor
static CreatorManager & getInstance()
getter for the singleton instance
Common code concerning the geometry representation of the detector.
Abstract base class for different kinds of events.
Very simple class to provide an easy way to register creators with the CreatorManager.