|
SHiP Geometry Service
Framework-agnostic C++20 library wrapping the SHiP GeoModel geometry behind a stable interface.
|
Framework-agnostic interface to the SHiP detector geometry. More...
#include <IGeometryService.h>

Public Member Functions | |
| virtual | ~IGeometryService ()=default |
| virtual const GeoVPhysVol * | geoModelWorld () const =0 |
| GeoModel world physical volume (const — tree is immutable after build). | |
| virtual G4LogicalVolume * | geant4WorldLogical ()=0 |
| G4LogicalVolume* for the world. | |
| virtual G4LogicalVolume * | getLogicalVolume (const std::string &name) const =0 |
| Look up a G4LogicalVolume by name (via G4LogicalVolumeStore). | |
Framework-agnostic interface to the SHiP detector geometry.
Ownership of all returned pointers stays with the service.
|
virtualdefault |
|
pure virtual |
G4LogicalVolume* for the world.
Triggers GeoModel2G4 on first call. Must be called from within G4VUserDetectorConstruction::Construct().
Implemented in ship::SHiPGeometryService.
|
pure virtual |
GeoModel world physical volume (const — tree is immutable after build).
Implemented in ship::SHiPGeometryService.
|
pure virtual |
Look up a G4LogicalVolume by name (via G4LogicalVolumeStore).
Valid only after geant4WorldLogical() has been called.
Implemented in ship::SHiPGeometryService.