Go to the documentation of this file. 1 #ifndef FASTSIM_STRAIGHTTRAJECTORY_H
2 #define FASTSIM_STRAIGHTTRAJECTORY_H
51 void move(
double deltaTimeC)
override;
bool crosses(const BarrelSimplifiedGeometry &layer) const override
Check if an intersection of the trajectory with a barrel layer exists.
StraightTrajectory(const Trajectory &trajectory)
Use Copy Constructor.
Implementation of a barrel detector layer (cylindrical).
constexpr std::array< uint8_t, layerIndexSize > layer
StraightTrajectory(const Particle &particle)
Constructor.
Definition the generic trajectory of a particle (base class for helix/straight trajectories).
void move(double deltaTimeC) override
Move the particle along the helix trajectory for a given time.
double nextCrossingTimeC(const BarrelSimplifiedGeometry &layer, bool onLayer=false) const override
Return delta time (t*c) of the next intersection of trajectory and barrel layer.
Mathematical representation of a straight trajectory.