Celeritas 0.6.0-129+develop.846910afa
|
#include "VolumeParams.hh"
#include "corecel/io/Logger.hh"
#include "VolumeVisitor.hh"
#include "inp/Model.hh"
Functions | |
void | celeritas::global_volumes (std::shared_ptr< VolumeParams const > const &gv) |
Set global geometry instance. | |
std::weak_ptr< VolumeParams const > const & | celeritas::global_volumes () |
Access the global canonical volume metadata. | |
std::weak_ptr< VolumeParams const > const & celeritas::global_volumes | ( | ) |
Access the global canonical volume metadata.
This can be used by geometry-related helper functions throughout the code base.
void celeritas::global_volumes | ( | std::shared_ptr< VolumeParams const > const & | gv | ) |
Set global geometry instance.
This allows many parts of the codebase to independently access Geant4 metadata. It should be called during initialization of any Celeritas front end that integrates with Geant4. We can't use shared pointers here because of global initialization order issues (the low-level Geant4 objects may be cleared before a static celeritas::VolumeParams is destroyed).