|
CORSIKA
@c8_version@
The framework to simulate particle cascades for astroparticle physics
|
This implements a straight trajectory between two points. More...
#include <StraightTrajectory.hpp>

Public Member Functions | |
| StraightTrajectory (StraightTrajectory const &)=default | |
| StraightTrajectory (StraightTrajectory &&)=default | |
| StraightTrajectory & | operator= (StraightTrajectory const &)=delete |
| StraightTrajectory (Line const &theLine, TimeType timeLength) | |
| StraightTrajectory (Line const &theLine, TimeType const timeLength, TimeType const timeStep, VelocityVector const &initialV, VelocityVector const &finalV) | |
| Line const & | getLine () const |
| Point | getPosition (double const u) const |
| VelocityVector | getVelocity (double const u) const |
| DirectionVector | getDirection (double const u) const |
| TimeType | getDuration (double const u=1) const |
| ! duration along potentially bend trajectory | |
| template<typename Particle > | |
| TimeType | getTime (Particle const &particle, double const u) const |
| ! time at the start (u=0) or at the end (u=1) of the track of a particle | |
| LengthType | getLength (double const u=1) const |
| ! total length along potentially bend trajectory | |
| void | setLength (LengthType const limit) |
| ! set new duration along potentially bend trajectory. | |
| void | setDuration (TimeType const limit) |
| ! set new duration along potentially bend trajectory. | |
Protected Member Functions | |
| LengthType | getDistance (double const u) const |
| ! total length along straight trajectory | |
| void | setFinalVelocity (VelocityVector const &v) |
This implements a straight trajectory between two points.
Note: so far it is assumed that the speed (d|vec{r}|/dt) between start and end does not change and is constant for the entire Trajectory.
Definition at line 27 of file StraightTrajectory.hpp.
|
inline |
| theLine | The geometric Line object that represents a straight-line connection |
| timeLength | The time duration to traverse the straight trajectory in units of TimeType |
Definition at line 42 of file StraightTrajectory.hpp.
|
inline |
| theLine | The geometric Line object that represents a straight-line connection |
| timeLength | The time duration to traverse the straight trajectory in units of TimeType |
| timeStep | Time duration to folow eventually curved trajectory in units of TimesType |
| initialV | Initial velocity vector at start of trajectory |
| finalV | Final velocity vector at start of trajectory |
Definition at line 64 of file StraightTrajectory.hpp.