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