Celeritas 0.7-develop+a3e14d7
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
celeritas::GeneratorCounters< T > Struct Template Reference

Current sizes of the buffered generator data. More...

#include <GeneratorCounters.hh>

Public Types

using size_type = T
 

Public Member Functions

bool empty () const
 True if any queued generators/tracks exist.
 

Public Attributes

size_type buffer_size {0}
 Number of generators.
 
size_type num_pending {0}
 Number of photons remaining to be generated.
 
size_type num_generated {0}
 Number of photons generated.
 

Detailed Description

template<class T = ::celeritas::size_type>
struct celeritas::GeneratorCounters< T >

Current sizes of the buffered generator data.

During stepping these are updated on device (see GeneratorStateCounters ), and a host copy is updated once stepping completes. To allow accumulation over many steps which each may have many photons, the type is templated.


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