Celeritas 0.6.0-dev.115+3b60a5fd
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
celeritas::TrackInitParams Class Referencefinal

Manage persistent track initializer data. More...

#include <TrackInitParams.hh>

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

Classes

struct  Input
 Track initializer construction arguments. More...
 

Public Member Functions

 TrackInitParams (Input const &)
 Construct with capacity and number of events.
 
size_type capacity () const
 Maximum number of initializers.
 
size_type max_events () const
 Event number cannot exceed this value.
 
TrackOrder track_order () const
 Track sorting strategy.
 
HostRef consthost_ref () const final
 Access primaries for contructing track initializer states.
 
DeviceRef constdevice_ref () const final
 Access data on device.
 
template<MemSpace M>
void reset_track_ids (StreamId stream, TrackInitStateData< Ownership::reference, M > *state) const
 Reset track counters in single-event mode.
 
- Public Member Functions inherited from celeritas::ParamsDataInterface< TrackInitParamsData >
TrackInitParamsData< Ownership::const_reference, M > const & ref () const
 
TrackInitParamsData< Ownership::const_reference, M > const & ref () const
 Dispatch a "ref" call to host or device data.
 

Additional Inherited Members

- Public Types inherited from celeritas::ParamsDataInterface< TrackInitParamsData >
using HostRef = HostCRef< TrackInitParamsData >
 
using DeviceRef = DeviceCRef< TrackInitParamsData >
 
- Protected Member Functions inherited from celeritas::ParamsDataInterface< TrackInitParamsData >
 CELER_DEFAULT_COPY_MOVE (ParamsDataInterface)
 

Detailed Description

Manage persistent track initializer data.

Todo:
max_events could potentially be per thread, not global? And we should differentiate between user events and events in flight.

Member Function Documentation

◆ device_ref()

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

Access data on device.

Implements celeritas::ParamsDataInterface< TrackInitParamsData >.

◆ host_ref()

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

Access primaries for contructing track initializer states.

Implements celeritas::ParamsDataInterface< TrackInitParamsData >.


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