GGS(GenericGEANT4Simulation)Software
2.6.0
|
Manager for geometry plugin. More...
#include <GGSGeoPluginManager.h>
Public Member Functions | |
~GGSGeoPluginManager () | |
Destructor. | |
bool | LoadGeoPlugin (const std::string &libName) |
Loads the geometry plugin library. More... | |
GGSVGeometryConstruction * | GetGeoConstruction () |
Returns the geometry construction object. More... | |
Static Public Member Functions | |
static GGSGeoPluginManager & | GetInstance () |
Get the singleton instance. More... | |
Manager for geometry plugin.
This singleton dynamically loads a GGS geometry contained in an in external dynamic library. Note that it will not build the geometry, but only create and return (via its GetGeoConstruction method) a GGSVGeometryConstruction object. To actually build the geometry, the user must call the Construct method of this object.
Definition at line 30 of file GGSGeoPluginManager.h.
|
inline |
Returns the geometry construction object.
This method must be called ONLY AFTER a successful call to LoadGeoPlugin. To actually build the geometry, the user must call the Construct method of the returned object.
Definition at line 63 of file GGSGeoPluginManager.h.
|
static |
Get the singleton instance.
Definition at line 30 of file GGSGeoPluginManager.cpp.
bool GGSGeoPluginManager::LoadGeoPlugin | ( | const std::string & | libName | ) |
Loads the geometry plugin library.
This method opens the library and creates the GGSVGeometryConstruction object. Note that at this stage the geometry has still not been built, but any messenger built in GGSVGeometryConstruction constructor will be available to set geometry parameters before geometry construction.
libName | Full path to the library file. |
Definition at line 46 of file GGSGeoPluginManager.cpp.