|
CORSIKA
@c8_version@
The framework to simulate particle cascades for astroparticle physics
|
Class to handle the generation of new secondaries. More...
#include <DefaultSecondaryProducer.hpp>
Public Member Functions | |
| template<typename Particle > | |
| void | new_secondary (Particle &&) const |
| Method is called after a new secondary has been created on the SecondaryView. More... | |
| template<typename Particle > | |
| DefaultSecondaryProducer (Particle const &) | |
| Method is called when a new SecondaryView is being created created. More... | |
Static Public Attributes | |
| static bool constexpr | has_event {false} |
Class to handle the generation of new secondaries.
Used as default mix-in for SecondaryView.
Definition at line 20 of file DefaultSecondaryProducer.hpp.
|
inline |
Method is called when a new SecondaryView is being created created.
Extra logic can be introduced here.
The input Particle is a reference object into the original parent stack! It is not a reference into the SecondaryView itself.
Definition at line 48 of file DefaultSecondaryProducer.hpp.
|
inline |
Method is called after a new secondary has been created on the SecondaryView.
Extra logic can be introduced here.
The input Particle is the new secondary that was produced and is of course a reference into the SecondaryView itself.
Definition at line 35 of file DefaultSecondaryProducer.hpp.