Celeritas 0.7.0-dev.79+develop.b3dc2e108
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
celeritas::inp::CorePrimaryGenerator Struct Reference

Generate particles in the core stepping loop. More...

#include <Events.hh>

Inheritance diagram for celeritas::inp::CorePrimaryGenerator:
Inheritance graph
[legend]

Public Member Functions

 operator bool () const
 True if there's at least one primary.
 
- Public Member Functions inherited from celeritas::inp::PrimaryGenerator
 operator bool () const
 True if there's at least one primary.
 

Public Attributes

unsigned int seed {}
 Random number seed.
 
std::vector< PDGNumberpdg
 Sample evenly from this vector of particle types.
 
- Public Attributes inherited from celeritas::inp::PrimaryGenerator
size_type num_events {}
 Number of events to generate.
 
size_type primaries_per_event {}
 Number of primaries per event.
 
ShapeDistribution shape
 Distribution for sampling spatial component (position)
 
AngleDistribution angle
 Distribution for sampling angular component (direction)
 
EnergyDistribution energy
 Distribution for sampling source energy.
 

Detailed Description

Generate particles in the core stepping loop.

Todo:
Allow programmatic setting from particle ID as well:
using Particle = std::variant<PDGNumber, ParticleId>;
Particle data.
Definition Particle.hh:26

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