Celeritas 0.6.0-109+develop.d7e7e1e9
Loading...
Searching...
No Matches
Classes | Functions
Utils.hh File Reference
#include "corecel/Assert.hh"
#include "corecel/OpaqueId.hh"
#include "corecel/Types.hh"
#include "corecel/data/Collection.hh"
#include "corecel/math/Atomics.hh"
#include "corecel/sys/ThreadId.hh"
#include "celeritas/global/CoreTrackData.hh"
#include "celeritas/phys/ParticleView.hh"
#include "TrackInitData.hh"

Classes

struct  celeritas::IsNeutral
 Predicate for sorting charged from neutral tracks. More...
 

Functions

CELER_FORCEINLINE_FUNCTION size_type celeritas::index_before (size_type size, ThreadId tid)
 Get an initializer index where thread 0 has the last valid element.
 
CELER_FUNCTION TrackId celeritas::make_track_id (NativeCRef< TrackInitParamsData > const &, NativeRef< TrackInitStateData > &state, EventId event)
 Create a unique track ID for the given event.
 

Function Documentation

◆ make_track_id()

CELER_FUNCTION TrackId celeritas::make_track_id ( NativeCRef< TrackInitParamsData > const ,
NativeRef< TrackInitStateData > &  state,
EventId  event 
)
inline

Create a unique track ID for the given event.

Todo:
This is nondeterministic; we need to calculate the track ID in a reproducible way.