Celeritas 0.7.0-22+develop.9704a67c5
Loading...
Searching...
No Matches
Macros | Functions
DetectorSteps.cc File Reference
#include "DetectorSteps.hh"
#include "corecel/Assert.hh"
#include "corecel/cont/Range.hh"
#include "corecel/data/Collection.hh"
#include "corecel/sys/ScopedProfiling.hh"
#include "StepData.hh"

Macros

#define DS_ASSIGN(FIELD)    assign_field(&(output->FIELD), state.data.FIELD, is_selected, size)
 

Functions

void celeritas::copy_steps (DetectorStepOutput *output, StepStateData< Ownership::reference, MemSpace::host > const &state)
 Consolidate results from selected tracks.
 

Function Documentation

◆ copy_steps()

void celeritas::copy_steps ( DetectorStepOutput *  output,
StepStateData< Ownership::reference, MemSpace::host > const &  state 
)

Consolidate results from selected tracks.

Tracks are selected if they interacted with a detector or, if no detectors are used, if their track ID was set during gathering. Device step data is copied asynchronously with compact_steps_async and copy_compacted_steps_async.