CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CartesianLorentzForce.cc
Go to the documentation of this file.
1 
4 
7 {
8  // derivatives in case S is the free parameter
11  double k = 2.99792458e-3; // conversion to [cm]
12 
15 
17  CartesianStateAdaptor::Vector3D dmom = k*theCharge * dpos.cross( bfield);
18 
19  return CartesianStateAdaptor::rkstate( dpos, dmom);
20 }
Basic3DVector unit() const
Basic3DVector cross(const Basic3DVector &lh) const
Vector product, or "cross" product, with a vector of same type.
double double double z
static RKSmallVector< double, 6 > rkstate(const Vector3D &pos, const Vector3D &mom)
const Vector3D & momentum() const
int k[5][pyjets_maxn]
char state
Definition: procUtils.cc:75
virtual Vector operator()(Scalar z, const Vector &state) const
const Vector3D & position() const
const RKLocalFieldProvider & theField
Vector inTesla(const LocalPoint &lp) const
the argument lp is in the local frame specified in the constructor