CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::StraightTrajectory Class Reference

This implements a straight trajectory between two points. More...

#include <StraightTrajectory.hpp>

Inheritance diagram for corsika::StraightTrajectory:

Public Member Functions

 StraightTrajectory (StraightTrajectory const &)=default
 
 StraightTrajectory (StraightTrajectory &&)=default
 
StraightTrajectoryoperator= (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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ StraightTrajectory() [1/2]

corsika::StraightTrajectory::StraightTrajectory ( Line const &  theLine,
TimeType  timeLength 
)
inline
Parameters
theLineThe geometric Line object that represents a straight-line connection
timeLengthThe time duration to traverse the straight trajectory in units of TimeType

Definition at line 42 of file StraightTrajectory.hpp.

◆ StraightTrajectory() [2/2]

corsika::StraightTrajectory::StraightTrajectory ( Line const &  theLine,
TimeType const  timeLength,
TimeType const  timeStep,
VelocityVector const &  initialV,
VelocityVector const &  finalV 
)
inline
Parameters
theLineThe geometric Line object that represents a straight-line connection
timeLengthThe time duration to traverse the straight trajectory in units of TimeType
timeStepTime duration to folow eventually curved trajectory in units of TimesType
initialVInitial velocity vector at start of trajectory
finalVFinal velocity vector at start of trajectory

Definition at line 64 of file StraightTrajectory.hpp.


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