Celeritas 0.7.0-dev.79+develop.b3dc2e108
|
Map Geant4 sensitive detectors to distinct detector IDs. More...
#include <SDParams.hh>
Public Types | |
Type aliases | |
using | VecVolId = std::vector< VolumeId > |
![]() | |
using | HostRef = HostCRef< SDParamsData > |
using | DeviceRef = DeviceCRef< SDParamsData > |
Public Member Functions | |
SDParams ()=default | |
Default constructor: no detectors. | |
SDParams (GeoParamsInterface const &geo, VecVolId &&volume_ids) | |
Construct from canonical volume IDs. | |
bool | empty () const |
Whether any detectors are present. | |
DetectorId::size_type | size () const |
Number of detectors. | |
DetectorId | volume_to_detector_id (ImplVolumeId iv_id) |
Access detector ID based on implementation volume ID. | |
VolumeId | detector_to_volume_id (DetectorId det_id) |
Access volume ID based on detector ID. | |
Data interface | |
HostRef const & | host_ref () const final |
Access sensitive detector properties on the host. | |
DeviceRef const & | device_ref () const final |
Access sensitive detector properties on the device. | |
![]() | |
SDParamsData< Ownership::const_reference, M > const & | ref () const |
SDParamsData< Ownership::const_reference, M > const & | ref () const |
Dispatch a "ref" call to host or device data. | |
Additional Inherited Members | |
![]() | |
CELER_DEFAULT_COPY_MOVE (ParamsDataInterface) | |
Map Geant4 sensitive detectors to distinct detector IDs.
celeritas::VolumeIdBuilder
for how to construct these easily. celeritas::SDParams::SDParams | ( | GeoParamsInterface const & | geo, |
VecVolId && | volume_ids | ||
) |
Construct from canonical volume IDs.
Construct from list of volume labels.
|
inlinefinalvirtual |
Access sensitive detector properties on the device.
Implements celeritas::ParamsDataInterface< SDParamsData >.
|
inlinefinalvirtual |
Access sensitive detector properties on the host.
Implements celeritas::ParamsDataInterface< SDParamsData >.