39 double sqrtDelta =
sqrt(delta);
46 double tc1 = (-b - sqrtDelta)/a*
momentum_.E();
47 double tc2 = (-b + sqrtDelta)/a*
momentum_.E();
49 if(onLayer && tc2 > 0)
57 if(particleMovesInwards != particleMovesInwards2)
Implementation of a barrel detector layer (cylindrical).
static double constexpr speedOfLight
Speed of light [cm / ns].
math::XYZTLorentzVector position_
position of the particle that was used to create trajectory
double nextCrossingTimeC(const BarrelSimplifiedGeometry &layer, bool onLayer=false) const override
Return delta time (t*c) of the next intersection of trajectory and barrel layer.
const double getRadius() const
Return radius of the barrel layer.
math::XYZTLorentzVector momentum_
momentum of the particle that was used to create trajectory
void move(double deltaTimeC) override
Move the particle along the helix trajectory for a given time.