|
Celeritas 0.7.0-dev.194+develop.0df4cab59
|
Tally the steps per track transported with Geant4 for each particle type. More...
#include <GeantStepDiagnostic.hh>

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. | |
| 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 | category () const final |
| Category of data to write. | |
| 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. | |
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:
Construct with number of bins and threads.
The final bin is for overflow.
|
inlinefinalvirtual |
Category of data to write.
Implements celeritas::OutputInterface.
|
inlinefinalvirtual |
Key for the entry inside the category.
Implements celeritas::OutputInterface.
Write output to the given JSON object.
Implements celeritas::OutputInterface.