CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::Intersect< TDerived > Class Template Reference

This is a CRTP class to provide a generic volume-tree intersection for the purpose of tracking. More...

#include <Intersect.hpp>

Inheritance diagram for corsika::Intersect< TDerived >:

Protected Member Functions

template<typename TParticle >
auto nextIntersect (TParticle const &particle, TimeType const step_limit=std::numeric_limits< TimeType::value_type >::infinity() *second) const
 Determines next intersection with any of the geometry volumes.
 

Detailed Description

template<typename TDerived>
class corsika::Intersect< TDerived >

This is a CRTP class to provide a generic volume-tree intersection for the purpose of tracking.

It return the closest distance in time to the next geometric intersection, as well as a pointer to the corresponding new volume.

User may provide an optional global step-length limit as parameter. This may be needd for (simpler) algorithms in magnetic fields, where tracking errors grow linearly with step-length. Obviously, in the case of the step-length limit, the returend "next" volume is just the current one.

Definition at line 37 of file Intersect.hpp.


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