|
CORSIKA
@c8_version@
The framework to simulate particle cascades for astroparticle physics
|
This is a CRTP class to provide a generic volume-tree intersection for the purpose of tracking. More...
#include <Intersect.hpp>

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. | |
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.