|
Celeritas 0.7.0-dev.283+develop.fa64aaf8
|
Map Geant4 sensitive detectors to distinct detector IDs. More...
#include <DetectorParams.hh>

Public Types | |
Type aliases | |
| using | SpanVol = Span< VolumeId const > |
| using | DetectorMap = LabelIdMultiMap< DetectorId > |
Public Types inherited from celeritas::ParamsDataInterface< DetectorParamsData > | |
| using | HostRef = HostCRef< DetectorParamsData > |
| using | DeviceRef = DeviceCRef< DetectorParamsData > |
Public Member Functions | |
| DetectorParams ()=default | |
| Construct without detectors or volumes. | |
| DetectorParams (inp::Detectors detectors, VolumeParams const &volumes) | |
| Construct from geometry and detector input. | |
| bool | empty () const |
| Whether detector mapping is disabled (no volumes specified) | |
| DetectorId::size_type | num_detectors () const |
| Number of detectors. | |
| DetectorMap const & | detector_labels () const |
| Get detector metadata. | |
| DetectorId | detector_id (VolumeId vol_id) const |
| Find the detector ID for a given volume, if any. | |
| SpanVol | volume_ids (DetectorId det_id) const |
| Find all volumes assigned to a detector. | |
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. | |
Public Member Functions inherited from celeritas::ParamsDataInterface< DetectorParamsData > | |
| DetectorParamsData< Ownership::const_reference, M > const & | ref () const |
| DetectorParamsData< Ownership::const_reference, M > const & | ref () const |
| Dispatch a "ref" call to host or device data. | |
Additional Inherited Members | |
Protected Member Functions inherited from celeritas::ParamsDataInterface< DetectorParamsData > | |
| ParamsDataInterface (ParamsDataInterface const &)=default | |
| ParamsDataInterface (ParamsDataInterface &&)=default | |
| ParamsDataInterface & | operator= (ParamsDataInterface const &)=default |
| ParamsDataInterface & | operator= (ParamsDataInterface &&)=default |
Map Geant4 sensitive detectors to distinct detector IDs.
|
inlinefinalvirtual |
Access sensitive detector properties on the device.
Implements celeritas::ParamsDataInterface< DetectorParamsData >.
|
inlinefinalvirtual |
Access sensitive detector properties on the host.
Implements celeritas::ParamsDataInterface< DetectorParamsData >.