CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::DefaultSecondaryProducer< T1, T2 > Class Template Reference

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}
 

Detailed Description

template<class T1, template< class > class T2>
class corsika::DefaultSecondaryProducer< T1, T2 >

Class to handle the generation of new secondaries.

Used as default mix-in for SecondaryView.

Definition at line 20 of file DefaultSecondaryProducer.hpp.

Constructor & Destructor Documentation

◆ DefaultSecondaryProducer()

template<class T1 , template< class > class T2>
template<typename Particle >
corsika::DefaultSecondaryProducer< T1, T2 >::DefaultSecondaryProducer ( Particle const &  )
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.

Member Function Documentation

◆ new_secondary()

template<class T1 , template< class > class T2>
template<typename Particle >
void corsika::DefaultSecondaryProducer< T1, T2 >::new_secondary ( Particle &&  ) const
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.


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