Class Acts::Experimental::DetectorVolumeFactory

class DetectorVolumeFactory

A detector volume factory which first constructs the detector volume and then constructs the portals.

This ensures that the std::shared_ptr holding the detector volume is not weak when assigning to the portals.

Public Static Functions

template<typename ...Args>
static inline std::shared_ptr<DetectorVolume> construct(const PortalGenerator &portalGenerator, const GeometryContext &gctx, Args&&... args)

Create a detector volume - from factory.

Parameters
  • portalGenerator – the volume portal generator

  • gctx – the geometry context for construction and potential contextual store

  • args – the arguments forwarded to the detector volume contructor

Returns

a shared object DetectorVolume