Celeritas 0.7.0-dev.283+develop.fa64aaf8
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::DetectorParams Class Referencefinal

Map Geant4 sensitive detectors to distinct detector IDs. More...

#include <DetectorParams.hh>

Inheritance diagram for celeritas::DetectorParams:
Inheritance graph
[legend]

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 constdetector_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 consthost_ref () const final
 Access sensitive detector properties on the host.
 
DeviceRef constdevice_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
 
ParamsDataInterfaceoperator= (ParamsDataInterface const &)=default
 
ParamsDataInterfaceoperator= (ParamsDataInterface &&)=default
 

Detailed Description

Map Geant4 sensitive detectors to distinct detector IDs.

Member Function Documentation

◆ device_ref()

DeviceRef const & celeritas::DetectorParams::device_ref ( ) const
inlinefinalvirtual

Access sensitive detector properties on the device.

Implements celeritas::ParamsDataInterface< DetectorParamsData >.

◆ host_ref()

HostRef const & celeritas::DetectorParams::host_ref ( ) const
inlinefinalvirtual

Access sensitive detector properties on the host.

Implements celeritas::ParamsDataInterface< DetectorParamsData >.


The documentation for this class was generated from the following files: