Celeritas 0.6.0-47+develop.b3cbb238
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
celeritas::SDParams Class Referencefinal

Manage params and state data for sensitive detectors. More...

#include <SDParams.hh>

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

Public Types

using VecLabel = std::vector< Label >
 
- Public Types inherited from celeritas::ParamsDataInterface< SDParamsData >
using HostRef = HostCRef< SDParamsData >
 
using DeviceRef = DeviceCRef< SDParamsData >
 

Public Member Functions

 SDParams ()
 Default Constructor.
 
 SDParams (VecLabel const &volume_labels, GeoParamsInterface const &geo)
 Construct from volume labels.
 
DetectorId::size_type size () const
 Number of detectors.
 
DetectorId volume_to_detector_id (VolumeId vol_id)
 Access detector ID based on volume ID.
 
VolumeId detector_to_volume_id (DetectorId det_id)
 Access volume ID based on detector ID.
 
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< SDParamsData >
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

- Protected Member Functions inherited from celeritas::ParamsDataInterface< SDParamsData >
 CELER_DEFAULT_COPY_MOVE (ParamsDataInterface)
 

Detailed Description

Manage params and state data for sensitive detectors.

Constructor & Destructor Documentation

◆ SDParams()

celeritas::SDParams::SDParams ( VecLabel const volume_labels,
GeoParamsInterface const geo 
)

Construct from volume labels.

Construct from list of volume labels.

Member Function Documentation

◆ device_ref()

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

Access sensitive detector properties on the device.

Implements celeritas::ParamsDataInterface< SDParamsData >.

◆ host_ref()

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

Access sensitive detector properties on the host.

Implements celeritas::ParamsDataInterface< SDParamsData >.


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