1 #ifndef CartesianLorentzForce_H 2 #define CartesianLorentzForce_H 30 constexpr
float k = 2.99792458e-3;
33 auto dpos =
start.momentum().unit();
36 auto dmom = (
k *
theCharge) * dpos.cross(bfield);
ROOT::Math::Plane3D::Vector Vector
RKSmallVector< double, N > Vector
Derivative calculation for the 6D cartesian case.
RKDerivative< double, 6 > Base
Base class for derivative calculation.
CartesianLorentzForce(const RKLocalFieldProvider &field, float ch)
virtual Vector operator()(Scalar startPar, const Vector &startState) const =0
Vector operator()(Scalar z, const Vector &state) const override
Vector inTesla(const LocalPoint &lp) const
the argument lp is in the local frame specified in the constructor
static RKSmallVector< double, 6 > rkstate(const Vector3D &pos, const Vector3D &mom)
const RKLocalFieldProvider & theField