Celeritas 0.7+960a30e
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
celeritas::optical::StepDiagnostic Class Referencefinal

Tally number of steps taken by each photon in the optical stepping loop. More...

#include <StepDiagnostic.hh>

Inheritance diagram for celeritas::optical::StepDiagnostic:
Inheritance graph
[legend]

Public Member Functions

 StepDiagnostic (ActionId id, size_type max_bins, size_type num_streams)
 Construct with ID and counts.
 
StepAction interface
void step (CoreParams const &, CoreStateHost &) const final
 Execute action with host data.
 
void step (CoreParams const &, CoreStateDevice &) const final
 Execute action with device data.
 
ActionId action_id () const final
 ID of the action.
 
std::string_view label () const final
 Short name for the action.
 
std::string_view description () const final
 Get a long description of the action.
 
StepActionOrder order () const final
 Dependency ordering of the action.
 
- Public Member Functions inherited from celeritas::StepDiagnosticBase
 StepDiagnosticBase (size_type num_particles, size_type max_bins, size_type num_streams)
 Construct with counts.
 
 ~StepDiagnosticBase ()
 Default destructor.
 
VecVecCount calc_steps () const
 Get the diagnostic results accumulated over all streams.
 
size_type state_size () const
 Size of diagnostic state data (number of bins times number of particles)
 
StoreTstore () const
 
void clear ()
 Reset diagnostic results.
 
Category category () const final
 Category of data to write.
 
void output (JsonPimpl *) const final
 Write output to the given JSON object.
 
- Public Member Functions inherited from celeritas::StepActionInterface< P, S >
virtual void step (P const &, S< MemSpace::host > &) const =0
 Execute the action with host data.
 
virtual void step (P const &, S< MemSpace::device > &) const =0
 Execute the action with device data.
 
- Public Member Functions inherited from celeritas::ActionInterface
virtual ~ActionInterface () noexcept=0
 Default destructor.
 

Static Public Member Functions

static std::shared_ptr< StepDiagnosticmake_and_insert (CoreParams const &core, size_type max_bins)
 Construct and add to core params.
 

Additional Inherited Members

- Public Types inherited from celeritas::StepDiagnosticBase
using StoreT = StreamStore< ParticleTallyParamsData, ParticleTallyStateData >
 
using VecVecCount = std::vector< std::vector< size_type > >
 
- Public Types inherited from celeritas::OutputInterface
enum class  Category {
  input , result , system , internal ,
  size_
}
 Output category (TODO: could replace with string/cstring?)
 
- Public Types inherited from celeritas::ActionTypeTraits< P, S >
using CoreParams = P
 
using CoreStateHost = S< MemSpace::host >
 
using CoreStateDevice = S< MemSpace::device >
 
using SpanCoreStateHost = Span< S< MemSpace::host > *const >
 
using SpanCoreStateDevice = Span< S< MemSpace::device > *const >
 
- Protected Member Functions inherited from celeritas::ActionInterface
 ActionInterface (ActionInterface const &)=default
 
ActionInterfaceoperator= (ActionInterface const &)=default
 
 ActionInterface (ActionInterface &&)=default
 
ActionInterfaceoperator= (ActionInterface &&)=default
 

Detailed Description

Tally number of steps taken by each photon in the optical stepping loop.

Member Function Documentation

◆ action_id()

ActionId celeritas::optical::StepDiagnostic::action_id ( ) const
inlinefinalvirtual

ID of the action.

Implements celeritas::ActionInterface.

◆ description()

std::string_view celeritas::optical::StepDiagnostic::description ( ) const
finalvirtual

Get a long description of the action.

Implements celeritas::ActionInterface.

◆ label()

std::string_view celeritas::optical::StepDiagnostic::label ( ) const
inlinefinalvirtual

Short name for the action.

Implements celeritas::OutputInterface.

◆ order()

StepActionOrder celeritas::optical::StepDiagnostic::order ( ) const
inlinefinalvirtual

Dependency ordering of the action.

Implements celeritas::StepActionInterface< P, S >.


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