Celeritas  0.5.0-86+4a8eea4
Classes | Public Member Functions | List of all members
celeritas::test::ExampleInstanceCalo Class Referencefinal

Store calorimeter results based on pre-step volume instance names. More...

#include <ExampleInstanceCalo.hh>

Inheritance diagram for celeritas::test::ExampleInstanceCalo:
Inheritance graph
[legend]

Classes

struct  Result
 

Public Types

Type aliases
using SPConstGeo = std::shared_ptr< GeoParams const >
 
using VecLabel = std::vector< Label >
 
- Public Types inherited from celeritas::StepInterface
using HostStepState = StepState< MemSpace::host >
 Detector filtering required for this interface.
 
using DeviceStepState = StepState< MemSpace::device >
 Detector filtering required for this interface.
 
using MapVolumeDetector = std::map< VolumeId, DetectorId >
 Detector filtering required for this interface.
 

Public Member Functions

 ExampleInstanceCalo (SPConstGeo geo, VecLabel vol_labels)
 Construct with geometry.
 
Filters filters () const final
 Map volume names to detector IDs and exclude tracks with no deposition.
 
StepSelection selection () const final
 Only save energy deposition and pre-step volume.
 
void process_steps (HostStepState) final
 Process detector tallies (CPU). More...
 
void process_steps (DeviceStepState) final
 Process CPU-generated hit data.
 
void process_steps (DetectorStepOutput const &)
 Accumulate energy into the volume instance name.
 
Result result () const
 Get unfolded name/energy.
 
- Public Member Functions inherited from celeritas::StepInterface

Additional Inherited Members

- Protected Member Functions inherited from celeritas::StepInterface
 ~StepInterface ()=default
 Detector filtering required for this interface.
 

Detailed Description

Store calorimeter results based on pre-step volume instance names.

Note
This class isn't thread safe, but none of our unit tests use threads.

Member Function Documentation

◆ process_steps()

void celeritas::test::ExampleInstanceCalo::process_steps ( HostStepState  state)
finalvirtual

Process detector tallies (CPU).

Process detector tallies (GPU).

Implements celeritas::StepInterface.


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