Celeritas  0.5.0-56+6b053cd
Public Member Functions | List of all members
celeritas::GeantStepDiagnostic Class Referencefinal

Tally the steps per track transported with Geant4 for each particle type. More...

#include <GeantStepDiagnostic.hh>

Inheritance diagram for celeritas::GeantStepDiagnostic:
Inheritance graph
[legend]

Public Types

Type aliases
using VecCount = std::vector< size_type >
 
using VecVecCount = std::vector< VecCount >
 
using MapIntVecCount = std::unordered_map< int, VecCount >
 
- Public Types inherited from celeritas::OutputInterface
enum class  Category {
  input , result , system , internal ,
  size_
}
 Output category (TODO: could replace with string/cstring?)
 

Public Member Functions

 GeantStepDiagnostic (size_type num_bins, size_type num_threads)
 Construct with number of bins and threads. More...
 
void Update (G4Track const *track)
 Update the step count from the given track.
 
VecVecCount CalcSteps () const
 Get the diagnostic results accumulated over all threads.
 
std::vector< int > GetPDGs () const
 Get a sorted vector of PDGs.
 
Output interface

Category of data to write

Category category () const final
 Key for the entry inside the category.
 
std::string_view label () const final
 Key for the entry inside the category.
 
void output (JsonPimpl *) const final
 Write output to the given JSON object.
 

Detailed Description

Tally the steps per track transported with Geant4 for each particle type.

For the diagnostic class that collects the same result for tracks transported with Celeritas, see:

See also
StepDiagnostic.

Constructor & Destructor Documentation

◆ GeantStepDiagnostic()

celeritas::GeantStepDiagnostic::GeantStepDiagnostic ( size_type  num_bins,
size_type  num_threads 
)

Construct with number of bins and threads.

The final bin is for overflow.


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