CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::Cascade< TTracking, TProcessList, TOutput, TStack > Class Template Reference

The Cascade class is constructed from template arguments making it very versatile. More...

#include <Cascade.hpp>

Public Member Functions

void setNodes ()
 set the nodes for all particles on the stack according to their numerical position.
 
void run ()
 The Run function is the main simulation loop, which processes particles from the Stack until the Stack is empty.
 
void forceInteraction ()
 Force an interaction of the top particle of the stack at its current position. More...
 
constructors

Cascade class cannot be default constructed, but needs a valid list of physics processes for configuration at construct time.

 Cascade ()=delete
 
 Cascade (Cascade const &)=default
 
 Cascade (Cascade &&)=default
 
 ~Cascade ()=default
 
Cascadeoperator= (Cascade const &)=default
 
 Cascade (Environment< medium_interface_type > const &env, TTracking &tr, TProcessList &pl, TOutput &out, TStack &stack)
 

Detailed Description

template<typename TTracking, typename TProcessList, typename TOutput, typename TStack>
class corsika::Cascade< TTracking, TProcessList, TOutput, TStack >

The Cascade class is constructed from template arguments making it very versatile.

Via the template arguments physics models are plugged into the cascade simulation.

TTracking must be a class according to the TrackingInterface providing the functions:

auto getTrack(particle_type const& p)</auto>,
with the return type <code>geometry::Trajectory<Line>

TProcessList must be a ProcessSequence. * Stack is the storage object for particle data, i.e. with particle class type Stack::particle_type.

Definition at line 52 of file Cascade.hpp.

Member Function Documentation

◆ forceInteraction()

template<typename TTracking , typename TProcessList , typename TOutput , typename TStack >
void corsika::Cascade< TTracking, TProcessList, TOutput, TStack >::forceInteraction ( )

Force an interaction of the top particle of the stack at its current position.

Note that setNodes() or an equivalent procedure needs to be called first if you want to call forceInteraction() for the primary interaction.


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