Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
TrackPropagation
RungeKutta
src
CartesianLorentzForce.cc
Go to the documentation of this file.
1
2
#include "
CartesianLorentzForce.h
"
3
#include "
CartesianStateAdaptor.h
"
4
5
CartesianLorentzForce::Vector
6
CartesianLorentzForce::operator()
(
Scalar
z
,
const
Vector
&
state
)
const
7
{
8
// derivatives in case S is the free parameter
9
CartesianStateAdaptor
start
(state);
10
RKLocalFieldProvider::Vector
bfield =
theField
.
inTesla
(
RKLocalFieldProvider::LocalPoint
(start.
position
()));
11
double
k
= 2.99792458e-3;
// conversion to [cm]
12
14
CartesianStateAdaptor::Vector3D
dpos = start.
momentum
().
unit
();
15
17
CartesianStateAdaptor::Vector3D
dmom = k*
theCharge
* dpos.
cross
( bfield);
18
19
return
CartesianStateAdaptor::rkstate
( dpos, dmom);
20
}
Basic3DVector::unit
Basic3DVector unit() const
Definition:
newBasic3DVector.h:148
Basic3DVector::cross
Basic3DVector cross(const Basic3DVector &lh) const
Vector product, or "cross" product, with a vector of same type.
Definition:
newBasic3DVector.h:202
detailsBasic3DVector::z
double double double z
Definition:
newBasic3DVector.h:17
Basic3DVector
Definition:
newBasic3DVector.h:24
CartesianStateAdaptor::rkstate
static RKSmallVector< double, 6 > rkstate(const Vector3D &pos, const Vector3D &mom)
Definition:
CartesianStateAdaptor.h:24
CartesianStateAdaptor::momentum
const Vector3D & momentum() const
Definition:
CartesianStateAdaptor.h:14
gen::k
int k[5][pyjets_maxn]
Definition:
Cascade2Hadronizer.cc:81
CartesianStateAdaptor.h
RKSmallVector
Definition:
RKSmallVector.h:10
CartesianStateAdaptor
Definition:
CartesianStateAdaptor.h:4
CartesianLorentzForce::Scalar
Base::Scalar Scalar
Definition:
CartesianLorentzForce.h:14
evf::utils::state
char state
Definition:
procUtils.cc:75
Point3DBase< float, LocalTag >
CartesianLorentzForce::operator()
virtual Vector operator()(Scalar z, const Vector &state) const
Definition:
CartesianLorentzForce.cc:6
CartesianStateAdaptor::position
const Vector3D & position() const
Definition:
CartesianStateAdaptor.h:13
CartesianLorentzForce::theCharge
double theCharge
Definition:
CartesianLorentzForce.h:25
CartesianLorentzForce.h
errorMatrix2Lands_multiChannel.start
tuple start
Definition:
errorMatrix2Lands_multiChannel.py:58
CartesianLorentzForce::theField
const RKLocalFieldProvider & theField
Definition:
CartesianLorentzForce.h:24
RKLocalFieldProvider::inTesla
Vector inTesla(const LocalPoint &lp) const
the argument lp is in the local frame specified in the constructor
Definition:
RKLocalFieldProvider.cc:19
Generated for CMSSW Reference Manual by
1.8.5