Celeritas  0.5.0-86+4a8eea4
Public Types | Public Member Functions | Public Attributes | List of all members
celeritas::DetectorStepOutput Struct Reference

CPU results for many in-detector tracks at a single step iteration. More...

#include <DetectorSteps.hh>

Public Types

using Energy = units::MevEnergy
 
template<class T >
using PinnedVec = std::vector< T, PinnedAllocator< T > >
 

Public Member Functions

size_type size () const
 Number of elements in the detector output.
 
 operator bool () const
 Whether the size is nonzero.
 

Public Attributes

EnumArray< StepPoint, DetectorStepPointOutputpoints
 
PinnedVec< DetectorIddetector
 
PinnedVec< TrackIdtrack_id
 
PinnedVec< EventIdevent_id
 
PinnedVec< TrackIdparent_id
 
PinnedVec< size_typetrack_step_count
 
PinnedVec< real_typestep_length
 
PinnedVec< ParticleIdparticle
 
PinnedVec< Energyenergy_deposition
 
size_type volume_instance_depth {0}
 

Detailed Description

CPU results for many in-detector tracks at a single step iteration.

This convenience class can be used to postprocess the results from sensitive detectors on CPU. The data members will be available based on the selection of the StepInterface class that gathered the data.

Unlike StepStateData, which leaves gaps for inactive or filtered tracks, every entry of these vectors will be valid and correspond to a single DetectorId.


The documentation for this struct was generated from the following file: